|

WndHandle


(number) An optional numeric window handle of a window to get the relative mouse position of. This value will only be used if ClientCoordinates is set to true and a valid window handle is passed. If this value is nil the application's client area will be used.


Re t u r n s


(table) A table containing the current position of the mouse, either relative to the entire screen (screen coordinates), relative to the application (client coordinates), or to a specific window, indexed by the following keys:



KEY


TYPE DESCRIPTION


X


number


The horizontal position of the mouse cursor.


Y


number


The vertical position of the mouse cursor.

If this information cannot be determined, or an error occurs, nil is returned. You can use

Application.GetLastError to determine whether this action failed, and why.


|