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.
|0||Relative coordinates to the active window|
|1||Absolute screen coordinates (default)|
|2||Relative coordinates to the client area of the active window|
How to change the MouseCoordMode
Simply place the below somewhere in your script.