By using this site you agree to the use of cookies by Brugbart and our partners.

Learn more

AutoIt MouseCoordMode Option

Reference on the MouseCoordMode Option of AutoIt, and example of how to use it.

Edited: 2014-12-31 03:20

The AutoIt MouseCoordMode Option controls the coordinate system to be used, and can be set to either relative or absolute.

Note. Changing the value of this Option will effect Mouse operations, such as MouseClicks.

Possible Values

0Relative coordinates to the active window
1Absolute screen coordinates (default)
2Relative coordinates to the client area of the active window

How to change the MouseCoordMode

Simply place the below somewhere in your script.

Opt("MouseCoordMode", 1)