Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 743 Bytes

File metadata and controls

35 lines (28 loc) · 743 Bytes

Command

Description

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 BOOLEAN

Examples

resultOK := 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')

Version

Availability: from All Versions

Category