Move Mouse

Moves the mouse pointer to the given position relative to the element's top-left corner; optionally presses a mouse button before the movement. By default, Element uses the element found by the Get Element activity.


⬅️INPUT

Parameter

Type

Required

Description

AnimateMouse

Boolean

❌ No

If True, the pointer travels to the target with a short movement (at most 300 ms) instead of jumping.

OffsetX

Int32

✅ Yes

Horizontal distance from the element's left edge (pixels). Default: 5. If the element is empty (null), it is used as the distance from the left edge of the screen.

OffsetY

Int32

✅ Yes

Vertical distance from the element's top edge (pixels). Default: 5. If the element is empty (null), it is used as the distance from the top edge of the screen.

Element

IElement

✅ Yes

The element the position is calculated from.

PostWait

TimeSpan

❌ No

Time to wait after the movement. A new activity gets the default wait time from the configuration; this time is initially 0.

MouseButton

MouseButton

❌ No

If set (Left, Middle, Right), this button is pressed before the pointer moves. Default: empty (None), no button is pressed.