AutoIt MouseCoordMode Option

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

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)