MOUSEMOVE

MOUSEMOVE(<x>, <y>)

Move the mouse to the desired position. X and Y specify the position of the mouse to move to.

Example:

'-- Get the current mouse position
x = GETMOUSEPOS("X")
y = GETMOUSEPOS("Y")
PRINT "Your mouse is at: ", x, y
'-- Calculate the center of the desktop

w = GETDESKTOP("W")/2
h = GETDESKTOP("H")/2
'-- Move the mouse there
MOUSEMOVE(w, h)
PRINT "Mouse is now moved to center of desktop: ", w, h


See Also

GETMOUSEPOS

MOUSECLICKABS

MOUSECLICKREL

MOUSESAVE / MOUSERESTORE

Tools

Shortcut Script Syntax