thelaughingtre Posted April 5, 2010 Share Posted April 5, 2010 (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 April 5, 2010 by thelaughingtre Link to comment Share on other sites More sharing options...
ForsakenGod Posted April 5, 2010 Share Posted April 5, 2010 WinGetPos() ? Link to comment Share on other sites More sharing options...
jpierson Posted April 7, 2010 Share Posted April 7, 2010 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now