AutoIt MouseMove Function

The MouseMove function moves the mouse pointer to the specified coordinates.

3763 views

Edited: 2021-02-14 02:25

The AutoIt MouseMove Function can be used to move the mouse pointer to a specified location on the screen; the optional speed parameter is used to control the movement speed of the pointer.

This will move the mouse instantly:

MouseMove(10, 200, 0) ; Left-Top (X and Y)

This will move the mouse at moderate speed:

MouseMove(10, 200, 50) ; Left-Top (X and Y)

Parameters

The MouseMove function takes three parameters, the two first are the x and y position wheres to move the pointer, the third is the movement speed.

pixelsThe (x) position from the left in pixels.
pixelsThe (y) position from the top in pixels.
0-100The movement speed between 1-100, a value of 0 will move the mouse instantly.

Tell us what you think:

  1. How to declare and work with variables in AutoIt, as well as some background information.
  2. Everything you need to know about working with minimized windows.
  3. How to set the request headers when performing HTTP requests.
  4. This Tutorial will focus on post requests in AutoIt, using the Winhttprequest.5.1 object.
  5. How to use while, for, and do until loops, and how to loop through arrays and object in AutoIt.

More in: AutoIt Tutorials