Function Reference


MouseMove

Moves the mouse pointer.

MouseMove ( x, y [, speed = 10] )

Parameters

x The screen x coordinate to move the mouse to.
y The screen y coordinate to move the mouse to.
speed [optional] the speed to move the mouse in the range 1 (fastest) to 100 (slowest). A speed of 0 will move the mouse instantly. Default speed is 10.

Return Value

None.

Remarks

User mouse movement is hindered during a non-instantaneous MouseMove() operation.
If MouseCoordMode is relative positioning, numbers may be negative.

Related

MouseClick, MouseClickDrag, MouseGetPos, MouseCoordMode (Option), MouseDown, MouseUp, MouseWheel

Example

MouseMove(10, 100) ; Move the mouse cursor to the x, y position of 10, 100.
MouseMove(700, 700, 0) ; Move the mouse cursor to the x, y position of 700, 700 and move instantly.