Jump to content

Count windows


 Share

Recommended Posts

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

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.

BR

Benjamin

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...