I can't find how I can check if the capslock is on or off.
state := GetKeyState("Capslock", "T") ; True if CapsLock is ON, false otherwise.
state := GetKeyState("CapsLock", "T")
MsgBox CapsLock is Enabled
MsgBox CapsLock is Disabled
if GetKeyState("Capslock", "T")
;do something because Caps Lock is on
;Caps Lock is off
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
4 years ago