RE: Num Lock, Scroll Lock, Caps Lock

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu