Thanks for the explanantion Ken.

Shame about this as the Numlock state can be quite important for laptop apps. Maybe the RunRev guys may like to think about it.

In the meantime, I think I'll just go for an answer box and let the user check!

Thanks for the help.

Steve



From: "Ken Ray" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: RE: Detecting the Num lock key in Windows
Date: Fri, 20 Jun 2003 16:34:44 -0500
Organization: Sons of Thunder Software
Reply-To: [EMAIL PROTECTED]

Steve,

You need to trap either the rawKeyDown or rawKeyUp messages which carry
with it a parameter for the key pressed. For the numLock key, the # is
65407.

The problem is that you can only tell if the key was pressed, not what
the state is of the key. Rev supports getting the state of the caps lock
key, but not the numlock key.

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 3:59 PM
To: [EMAIL PROTECTED]
Subject: Detecting the Num lock key in Windows


Dear All,

Does anyone know how to detect if the Numlock key is On or set the state
of the Numlock key in Windows using Rev?
I can find commands for the capslock but no mention of numlock.

Regards
Steve


Reply via email to