Detecting the Num lock key in Windows

Ken Ray kray at sonsothunder.com
Fri Jun 20 16:43:00 EDT 2003


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: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/ 

-----Original Message-----
From: use-revolution-admin at lists.runrev.com
[mailto:use-revolution-admin at lists.runrev.com] On Behalf Of
STKing42 at aol.com
Sent: Friday, June 20, 2003 3:59 PM
To: use-revolution at lists.runrev.com
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





More information about the use-livecode mailing list