Jump to content
Sign in to follow this  
ratacat

How to tell which autoit process loaded iexplore windows?

Recommended Posts

ratacat

So I have about 10 separate copies of the same autoit script running on my windows server. They all basically manage a couple of iexplore.exe windows. They are data scrapers. Occasionally one or more of them come across problems which cause them to load dozens of new windows(and not do anything with them). I have been trying to isolate this bug for months, and have made very little progress.

It wouldn't be a problem except it often can bring down my server until I restart it.

I have an observer script which watches the number of windows, and logs it for debugging purposes. My question is, do you know of a way I can tell which autoit process loaded which iexplore windows?

Ideally I am thinking if I see one process loading dozens of new windows, I could have the observer kill them, and restart the script.

Thanks for your input! (I realize that the best solution may be to just get my scraping scripts tightened down and working, I've certainly been trying...they are kind of large, so I am thinking this might be a good step)

I found this _udf

But I get the feeling that it would just return the pid of iexplore.exe, going to go try it out in a few minutes.

Thanks for your time, and looking forward to some input!

Share this post


Link to post
Share on other sites
water

Do you know the window title of the process started by your script? If yes use WinGetProcess to get the PID of the process, add the PID of the running AutoIt script and write it to a log file.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
ratacat

They all use the exact same window title =/

I will look into those John, thanks!

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  

×