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
http://www.autoitscript.com/forum/topic/118144-processgetwindow-for-turning-a-process-id-into-a-window-handle/
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!
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
http://www.autoitscript.com/forum/topic/118144-processgetwindow-for-turning-a-process-id-into-a-window-handle/
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!