Jump to content

Detect Multiple Instances Of A Window?


Recommended Posts

I have a script that opens command line ftp windows to transfer files. I have it set to open 6 at a time and wait for the last to close before opening another 6. Is it possible to detect that there are now only 5 open and open 1 to replace it to keep 6 open at all times?

Link to comment
Share on other sites

I have a script that opens command line ftp windows to transfer files. I have it set to open 6 at a time and wait for the last to close before opening another 6. Is it possible to detect that there are now only 5 open and open 1 to replace it to keep 6 open at all times?

Use WinList() to list them, and operate on them using handles instead of title/text. The handle is always unique and doesn't change over the life of the window. Title/Text can be duplicates and can change. Stick with the handles wherever possible.

:D

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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...