bandersen Posted December 15, 2009 Share 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 Link to comment Share on other sites More sharing options...
jvanegmond Posted December 15, 2009 Share 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 Link to comment Share on other sites More sharing options...
bandersen Posted December 15, 2009 Author Share 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 Link to comment Share on other sites More sharing options...
jvanegmond Posted December 15, 2009 Share Posted December 15, 2009 See this page in the help file: Window Titles and Text (Advanced) github.com/jvanegmond 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