Jump to content

Window/client area coordinates differ from AutoIt Window Info Tool

Recommended Posts


I'm relatively new to AutoIt so forgive me if I'm missing something.

The ControlClick Coords from AutoIt Window Info Tool don't seem to be correct!

I'm trying to access an area on a web page and have simplified my problem to the following script:

WinWaitActive("Forums - AutoIt Forums","",10) ; Wait till loaded


Opt("MouseCoordMode", 2)


The coordinates are those given in the AutoIt Window Info Tool  but the area chosen is above what I selected. I chose the opening page of this forum:

Announcements and Site News

AutoIt releases and site announcements.

I was trying to select the 2nd line (AutiIt ..) but the first line is selected.

Obviously I can experiment and get it right but I would like to find out what I'm doing wrong.


Share this post

Link to post
Share on other sites

You would be better off referring to the HTML elements directly than using mouse clicks which as you can see can be a bit snarly ... that said, the option you set is for relative coordinates to the client area of the active window.  Have you tried to use the default for the absolute coordinate value (change 2 to a 1)?


MouseCoordMode Sets the way coords are used in the mouse functions, either absolute coords or coords relative to the current active window:
0 = relative coords to the active window
1 = (default) absolute screen coordinates
2 = relative coords to the client area of the active window


Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now