WinXGetMousePos


WinXGetMousePos (hWnd, @x, @y)

Gets the position of the mouse

Parameter Description
hWnd The handle to the window to get the coordinates relative to. If this parameter is 0 the returned coordinates are relative to the screen.
@x A variable to receive the x coordinate of the mouse position
@y A variable to receive the y coordinate of the mouse position

Returns

$$TRUE on success or $$FALSE on fail

Remarks

none

Examples

' Find out where the mouse is
WinXGetMousePos (#hMain, @x, @y)
PRINT "The mouse is at: ";x;", ";y

Related Links

WinXIsMousePressed
onMouseMove (Callback)
onItem (Callback)