CapsLock returns TRUE if the Caps Lock was depressed during the last user event. This function operates with the MouseDown, KeyDown, AutoKey, GetPt, GetPtL, GetLine, and GetRect calls.
FUNCTION CapsLock : BOOLEAN;def vs.CapsLock():
return BOOLEANresultOK := CapsLock;import vs
# CapsLock returns TRUE if the Caps Lock was depressed during the last user
# event.
ok = vs.CapsLock()
if ok:
vs.Message('CapsLock succeeded')
else:
vs.Message('CapsLock failed')Availability: from All Versions