Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 825 Bytes

File metadata and controls

41 lines (33 loc) · 825 Bytes

Option

Description

Option return TRUE if the Option key (Mac) or Alt key (Windows) was depressed during the last user event. This function operates with the MouseDown, KeyDown, AutoKey, GetPt, GetPtL, GetLine, and GetRect calls.

FUNCTION Option : BOOLEAN;
def vs.Option():
    return BOOLEAN

Examples

resultOK := Option;
import vs

# Option return TRUE if the Option key (Mac) or Alt key (Windows) was
# depressed during the last user event.
ok = vs.Option()
if ok:
    vs.Message('Option succeeded')
else:
    vs.Message('Option failed')

See Also

VS Functions: MouseDown | KeyDown | AutoKey

Version

Availability: from All Versions

Category