Retrieves the current position of the mouse cursor.
MouseGetPos ( )
Parameters
None.
Return Value
Returns a two-element array that containing the mouse coordinates:
Remarks
See MouseCoordMode for relative/absolute position settings. If relative positioning, numbers may be negative.
Related
MouseClick, MouseClickDrag, MouseMove, MouseCoordMode (Option)
Example
$pos = MouseGetPos()
MsgBox(0, "Mouse x,y:", $pos[0] & "," & $pos[1])