SetXLoc

(Engine-Level Function)

Description: Sets the X screen location of the locator (mouse).
Returns: Nothing
Usage: Script or steady state.
Function Groups: Graphics,  Locator
Related to: SetYLoc | XLoc | YLoc
Format: SetXLoc(X)
Parameters:  
X
Required. Any numeric expression giving the new X coordinate of the locator (mouse) on the screen.
Comments: This statement has no effect if the locator is not installed.

Example:

If XLoc() < 400;
[
  SetXLoc(400);
]

This action keeps the cursor in the right 400 pixels of the screen.