RE: Num Lock, Scroll Lock, Caps Lock
- Posted by Don Phillips <EuNexus at yahoo.com> Oct 18, 2002
- 345 views
robsz1 at netzero.net wrote: > Hello list. > > I was wondering if anyone knew how to get ths status of the Num Lock, > Scroll > Lock and Caps Lock keys. I am using win32lib 57.9. Maybe there is > something in there for this *shrug*. > > Anyone ? > > > Thanks, > Robert Szalay I was (am) using this code for the Caps Lock key. I am sure the other keys would be similar... CapState = w32Func( xGetKeyState, {VK_CAPITAL} ) bits = int_to_bits( CapState, 8 ) if bits[1] = 1 then -- caps down else -- caps up end if Don