vcrocca Posted April 21, 2008 Share Posted April 21, 2008 I do not see an easy way to do this in the manuals or after searching this forum. I am automating the login to a web site so I can measure the per page load time. This page spawns numerous pages after logging in. These pages are usually frames and subframes. I would like to be able to close all Internet Explorer Windows without having to attach to each window. Any ideas would be appreciated. Thanks Link to comment Share on other sites More sharing options...
monoceres Posted April 21, 2008 Share Posted April 21, 2008 while ProcessExists("iexplore.exe") ProcessClose("iexplore.exe") WEnd The hardcore way Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
vcrocca Posted April 21, 2008 Author Share Posted April 21, 2008 while ProcessExists("iexplore.exe") ProcessClose("iexplore.exe") WEnd The hardcore way Thanks Link to comment Share on other sites More sharing options...
Swift Posted April 21, 2008 Share Posted April 21, 2008 Or: Do ProcessClose("Iexplore.exe") Until Not ProcessExists("Iexplore.exe") Link to comment Share on other sites More sharing options...
monoceres Posted April 21, 2008 Share Posted April 21, 2008 Or: Do ProcessClose("Iexplore.exe") Until Not ProcessExists("Iexplore.exe")Wow Swift, I'm impressed, you totaly beated the crap out of my script Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
danielkza Posted April 21, 2008 Share Posted April 21, 2008 Wow Swift, I'm impressed, you totaly beated the crap out of my script Actually,yours beats his: If the process doesn't exists,your won't try to close,but his will.Not pointless at all Link to comment Share on other sites More sharing options...
Swift Posted April 21, 2008 Share Posted April 21, 2008 It doesn't matter, it wont do anything if it doesn't exist...how bout this then? Do If ProcessExists("iexplore.exe") Then ProcessClose("Iexplore.exe") Until Not ProcessExists("Iexplore.exe") Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now