2.22 Keyboard and Mouse Components

You can find out the position of the mouse using the value of the #SYS_MOUSE component and you can find out whether the Shift, Alt or Ctrl key is pressed down using the #SYS_KEYBD component.

These two components are not visible in the Repository tab. Typically you would use the values of their properties in a Change command to assign a value to a field:

change #Std_Num #SYS_MOUSE.HorPosition

#SYS_MOUSE has these properties:

HorPosition   

Horizontal position is the number of pixels from the left

VerPosition

Vertical position is the number of pixels from the top

#SYS_KEYBD has these properties:

AltKeyDown

True or False. Indicates whether the Alt key is pressed down.

ShiftKeyDown

True or False. Indicates whether the Shift key is pressed down.

ControlKeyDown  

True or False. Indicates whether the Control key is pressed down.