Sign in to follow this  
Followers 0
mpcluever

Detect Multiple Instances Of A Window?

2 posts in this topic

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?

Share this post


Link to post
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

Share this post


Link to post
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
Sign in to follow this  
Followers 0