Description: This function returns the X window coordinate of the locator (mouse).
Returns: Numeric
Usage: Script or Steady State
Format: XLoc()
Parameters: None
Comments: If the locator is an IBM™ or Microsoft™ mouse and it is not installed, the function will return an invalid value.
Example:
ZBox(10, YLoc(), XLoc(), 10, 11);
This statement will draw a box in the window whose upper left corner is fixed at (10, 10), but whose lower right corner follows the mouse.
See Also: