Link to home
Start Free TrialLog in
Avatar of russelldav
russelldav

asked on

status of caps lock and num lock

how can i get the status of the num lock and caps lock keys from a vba function and hence include them on a form as either a label or a textbox.

thanks
ASKER CERTIFIED SOLUTION
Avatar of Jim Dettman (EE MVE)
Jim Dettman (EE MVE)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of russelldav
russelldav

ASKER

great little function,

thanks there.

my only problem now is that obviously if the key state changes you have to re-run that function to get the change noticed.

is there any way of putting an ontimer event that will re-draw my form. i can then use this to check the status of the keys and also update the time (currently =Time() ).

<<is there any way of putting an ontimer event that will re-draw my form. i can then use this to check the status of the keys and also update the time (currently =Time() ).
>>

 Sure.  ou can use OnTimer to do all that.  I would not set the interval for much less then a second or two though.

Jim.
sorted.

a second is jsut about ok (havnt tested with all functionality yet) but anything shorter and the display starts to go craszy.

thanks again