|XP is just a number|
Controlling IE and making it QUIT !!by BrianP6 (Initiate)
|on Feb 17, 2013 at 12:32 UTC||Need Help??|
BrianP6 has asked for the
wisdom of the Perl Monks concerning the following question:
Hopefully this will be relatively straight forward, but I'm tearing my hair out at the moment. I am trying to automate a simple lookup to a web page for a game that I'm on. I need to increase my hits to one of my status pages. I have found out that a 'hit' seems to be related to the browser session, and that the best thing to do is to hit the web page, close explorer and wait 30 minutes before trying again. So, I've googled, and found out how to control IE via OLE and use the Events triggered to catch where the DocumentComplete and OnQuit events are triggered. As below
The problem is that the OnQuit event fires before IE quits and even with the OnQuit event handler only terminating the message loop, so that it goes back to the perl script to fire another IE after the timeout, the IE window only really quits at the point that the new window is opened.
I want the IE window to quit, then wait for 30 minutes before opening a new window to do the same thing.
Any wisdom you can supply would be most welcome