Browse the docs

Move pointer by

Moves the mouse pointer by a distance from where it is now.

Move the pointer by dx, dy

Keyboard Maestro: MouseMoveAndClick

Details #

Moves the pointer dx points right and dy points down from its current position. Negative values go left and up. Nothing is clicked. The output holds the new x and y.

Use it to hover, to nudge the pointer off a spot, or to set up a Scroll. To move to a fixed place, use Click with count set to 0 and a position.

Parameters #

ParameterTypeRequiredValuesWhat it does
dxnumberYesPoints to move right. Required.
dynumberYesPoints to move down. Required.

Every step also accepts label, onFailure, timeout and dryRunSafe.

Examples #

Nudge the pointer 50 points right and 20 down (really moves the pointer)
Do
  1. Move the mouse by (50, 20)
Open in Switchboard to try it

Gotchas #

  • The pointer stops at the edge of the screen.

  • Switchboard needs the Accessibility permission to move the pointer.

See also #

Click, Drag mouse, Scroll