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
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<<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.
>>
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.
ASKER
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
a second is jsut about ok (havnt tested with all functionality yet) but anything shorter and the display starts to go craszy.
thanks again
ASKER
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() ).