Skip to main content
Version: 0.17.0

moveMouse

production

Moves the mouse to an arbitrary absolute x and y coordinates.

If you want to move your mouse cursor to an element, use moveMouseTo().

caution

macOS only: Due to the higher pixel density of the retina display, the input coordinates must be doubled in order to move the mouse as expected. For example, if you want to move the mouse for 100 pixels, use 200.

Example:

await aui.moveMouse(500, 500).exec();

  • @param {number} x_coordinate - A (positive/negative) x coordinate.
  • @param {number} y_coordinate - A (positive/negative) y coordinate.