Method Reference
MouseGetPosY
Retrieves the current Y position of the mouse cursor
MouseGetPosY
Return Value
Returns the current Y position of the mouse cursor.Remarks
See MouseCoordMode for relative/absolute position settings. If relative positioning, numbers may be negative.
Related
MouseClick, MouseClickDrag, MouseCoordMode (Option), MouseGetPosX, MouseMove
Example
Set oAutoIt = WScript.CreateObject("AutoItX3.Control") posx = oAutoIt.MouseGetPosX() posy = oAutoIt.MouseGetPosX() WScript.Echo "Mouse x,y:" & posx & "," & posy