Jump to content

Recommended Posts

Posted (edited)

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
Posted

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.

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
×
×
  • Create New...