Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Pressed key check

2 posts in Powerscript Last posting was on 2009-11-02 15:08:09.0Z
Tomaz Posted on 2009-11-02 12:12:54.0Z
From: "Tomaz" <kralj.soft4you@gmail.com>
Newsgroups: sybase.public.powerbuilder.powerscript
Subject: Pressed key check
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-EsetScannerBuild: 5951
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4aeeccc6$1@forums-1-dub>
Date: 2 Nov 2009 04:12:54 -0800
X-Trace: forums-1-dub 1257163974 10.22.241.152 (2 Nov 2009 04:12:54 -0800)
X-Original-Trace: 2 Nov 2009 04:12:54 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.powerscript:27144
Article PK: 793585

Hello!

PB 11.2

I have to check if user has just pressed key on keyboard or is holding this
key.

Is there any PB function or WinAPI to check this?

Regards

Tomaz


Chris Pollach Posted on 2009-11-02 15:08:09.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.powerbuilder.powerscript
References: <4aeeccc6$1@forums-1-dub>
Subject: Re: Pressed key check
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4aeef5d9$1@forums-1-dub>
Date: 2 Nov 2009 07:08:09 -0800
X-Trace: forums-1-dub 1257174489 10.22.241.152 (2 Nov 2009 07:08:09 -0800)
X-Original-Trace: 2 Nov 2009 07:08:09 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.powerscript:27146
Article PK: 793586

Hi Tomaz;

I normally use the pbm_keydown/up mapped user events and then the
KeyDown ( ) method to figure this one out in the application if I need this
type of low level control.

HTH

--
Regards ... Chris
ISUG - NA RUG Director
Blog: http://chrispollach.pbdjmagazine.com
SourceForge: http://sourceforge.net/projects/stdfndclass

"Tomaz" <kralj.soft4you@gmail.com> wrote in message
news:4aeeccc6$1@forums-1-dub...
>
> Hello!
>
> PB 11.2
>
> I have to check if user has just pressed key on keyboard or is holding
> this key.
>
> Is there any PB function or WinAPI to check this?
>
> Regards
>
> Tomaz
>
>