Jump to content

Recommended Posts

Posted (edited)

Is it possible to close duplicate windows from using an array ?

What I mean is that using winlist I got an array that contains a list of duplicate windows. I cannot use the process because these are all children of the same multiple exe. I only want to leave open the first one and close all the duplicates that come after. Can you help me, please?

 

thanks

regards

Edited by ronald82
Posted
2 minutes ago, ronald82 said:

how can I close windows in rows 1 to 4 and leave only row 0 open ?

That doesn't make sense, row 0 is the number of windows open !

 

11 minutes ago, ronald82 said:

cani use something like winclose($array[1][1]) ?

Yes you can. You need to create a double loop to check duplicates, and close the ones you want...

Posted
39 minutes ago, ronald82 said:

Is it possible to close duplicate windows from using an array ?

In your example, only Bloc-notes is duplicated.  Why do you want to close all windows except Excel ?  I do not understand what you want to achieve.  It is not coherent with your previous statement...

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...