Commands & Syntax > Commands > Mouse Commands >

www.MacroToolworks.com

MOVE - < mm >() ... [Free]

 

Mouse MOVE
<mm>(x,y,Time to move (ms))
Available in: Free edition

Moves mouse cursor to required position. The position is in absolute screen coordinates by default. There are these three commands that can precede the command and change the mouse move coordinates meaning: - mouse cursor position is in absolute screen coordinates - mouse cursor position is relative to currently active window - mouse cursor position is relative to current mouse cursor position

 

#

Parameter name

Parameter description

1

x

X-coordinate of the new mouse cursor position.

2

y

Y-coordinate of the new mouse cursor position.

3

Time to move (ms)

Time in milliseconds it is required the mouse move takes. Longer time means slower speed of the mouse. The time is adjusted by the macro playback speed settings.

 

Example (Macro Steps):

 

1

<#> <#> This macro moves the mouse cursor to position (100,100)

2

<#> <#> and than - after 2 seconds - to position (-10, -10) relative to

3

<#> <#> position (100, 100)

4

Macro execution: ONLY COMMANDS

5

Mouse MOVE position [ x=100, y=100 ]

6

WAIT wait "2000" ms (time is constant: "")

7

Mouse COORDINATES are now RELATIVE to current MOUSE position

8

Mouse MOVE position [ x=-10, y=-10 ]

Example (Plain Text):

 

<#> This macro moves the mouse cursor to position (100,100)

<#> and than - after 2 seconds - to position (-10, -10) relative to

<#> position (100, 100)

<cmds>

 

<mm>(100,100)

 

<wx>(2000)

 

<mousemove_relative_pos>

<mm>(-10,-10)