1) Sometimes loading could stuck and that stops the script
2) Sometimes IEload waits for a loaded page forever which stops the script as well unless you reload the page
3) Sometimes IE starts to have memory leaks. Don't know is it a website/IE/AHK's fault though.
4) Sometimes IE freezes and that also that stops the script
So, is there way to
1) Implement timer into IEload to fix issue 1 and 2
2) Detect IE memory usage and status and in case it's using too much RAM/frozen - restart it?
That's IEload I'm using:
Code: Select all
IEload(wb) ;You need to send the IE handle to the function unless you define it as global.
{
If !wb ;If wb is not a valid pointer then quit
Return False
Loop ;Otherwise sleep for .1 seconds untill the page starts loading
Sleep,100
Until (wb.busy)
Loop ;Once it starts loading wait until completes
Sleep,100
Until (!wb.busy)
Loop ;optional check to wait for the page to completely load
Sleep,100
Until (wb.Document.Readystate = "Complete")
Return True