Jump to content

Clicking on a window - window pops up in diferent locations


Recommended Posts

Hello,

I'm learning autoit & have spent a few hours trying figure out something that I'm sure you all think is pretty simple... If you could help me, then that would be greatly appreciated.

I'm writing a script that at one point a window is opened - This window opens in random locations. What I'm trying to do, is to locate the coordinates of the maximize button which will position the window in a spot where the next clicks I program will be in a set position.

It is a window within a program, so when I use the autoit Window info, it displays the new window (title / class / position / size / etc) the same as the other window of the program. Also keyboard shortcuts dont work on this window.

Is there a way to identify the coordinates so i can tell it to maximize the window? Or maybe a different way?

Edited by thelaughingtre
Link to comment
Share on other sites

So this sounds like its a child window.

Depending on the situation this could be problematic.

wingetpos() is definately worth a try.

If that fails...

Check if the main application has the option to cascade windows. With that, you should be able to get its location fixed, if you want to "click" the maximize button.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...