bandersen Posted December 15, 2009 Posted December 15, 2009 Hi I have a problem, when adding a computer to the domain on windows 7, with an autoit script. There are two windows by the same name, and I can´t winwait for the new window cause it catches the existing window by the same name. I would like to solve this by counting all the windows over and over again, and then send the activation to the window when the values are different. But how do I count all the windows? Or are there a better way? BR Benjamin Andersen
jvanegmond Posted December 15, 2009 Posted December 15, 2009 You can get information about all the existing windows in an array with WinList. You can then count the array with Ubound. And yes, there are better ways: Use another way to match the window. github.com/jvanegmond
bandersen Posted December 15, 2009 Author Posted December 15, 2009 You can get information about all the existing windows in an array with WinList. You can then count the array with Ubound. And yes, there are better ways: Use another way to match the window.Use another way to match the window.?? Other then winwait ? WinWaitActive ? There are no uniqe ID on the windows.BRBenjamin
jvanegmond Posted December 15, 2009 Posted December 15, 2009 See this page in the help file: Window Titles and Text (Advanced) github.com/jvanegmond
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