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