Sign in to follow this  
Followers 0
bills

Close all IE windows except the ones named "Hotmail" and "Trafiksidan"?

3 posts in this topic

Hello.

I want my script to close all IE windows except the ones named "Trafiksidan" and "Hotmail".

How do I do that?

//Bill

Share this post


Link to post
Share on other sites



No one knows?

Share this post


Link to post
Share on other sites

Hmm

WinWaitActive()

can detect a title of a particular window, and act on it, ideally you want to wait for any IE window, then get its full title:

WinGetTitle()

Then check that full title with a list of titles

If .. Then !

And close them:

WinClose()

Hardest part of it all, is going to be waiting for an active window based on the latter half of a window name, IE allways adds "Microsoft Internet Explorer" and firefox "Mozilla Firefox"

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