Detecting the Num lock key in Windows

STKing42 at aol.com STKing42 at aol.com
Sun Jun 22 14:06:01 EDT 2003


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" <kray at sonsothunder.com>
> To: <use-revolution at lists.runrev.com>
> 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: use-revolution at lists.runrev.com
> 
> 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
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.runrev.com/pipermail/use-livecode/attachments/20030622/61145dbb/attachment.html>


More information about the use-livecode mailing list