Sign in to follow this  
Followers 0
ksmith247

[Solved] Internet Explorer parent and child processes

2 posts in this topic

#1 ·  Posted (edited)

I have a similar issue to what Aktonius described here...

I have a script that launches IE to a particular portal page. When that page is closed, the script will kill off some other executables that are running and then relaunch the webportal page. All of this works just fine provided that there is only one instance of IE running,

If a user decides to open another IE instance, the original instance becomes the parent process and all other instances become children of the original. If the user then closes the original window, the process is still running (as the parent) even though the visible IE window is closed. (This fails when using ProcessExists to identify the PID of Internet Explorer)

This whole thing baffled me until I watched Process Explorer while running the script. Does anyone have any ideas how to accomplish this?

Edited by ksmith247

Support bacteria; it's the only culture most people have.LxP's Learning to Script with AutoIt 3 - Excellent starting placeVolly's Links Page - Links to cool and useful scriptsAutoIt Wrappers - Valuater's AutoIt Wrappers post. Lots of good stuff.Support AutoIt - Make a donation here; I did.[size="2"]#include <Guinness.pint>[/size]

Share this post


Link to post
Share on other sites



After several hours of beating my head against the wall I found my own answer. I moved from using PIDs and ProcessExists to WinGetHandle and WinExists. This allows for watching the individual instance of IE that the script calls despite the process itself still being active. Maybe this can help someone else.


Support bacteria; it's the only culture most people have.LxP's Learning to Script with AutoIt 3 - Excellent starting placeVolly's Links Page - Links to cool and useful scriptsAutoIt Wrappers - Valuater's AutoIt Wrappers post. Lots of good stuff.Support AutoIt - Make a donation here; I did.[size="2"]#include <Guinness.pint>[/size]

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