First of all, i'm sorry for my bad english.
I've got a bunch of hotkeys that make a set of automated clicks in my browser.
It's litterally as basic as:
Code: Select all
click, 200, 250
sleep 200
click 250, 200
sleep 1200
click, 200, 200
send sometext
I've built in the sleep timers because the browser needs to load the new page before clicking again. This is prone to failure if the page takes longer to load. Or sometimes makes the script take too long as the page had already been loaded.
So i tried googling for solutions to wait untill page is loaded. But all i could find is COM codes that looks as such:
Code: Select all
webpage = whatever the url is
ie := comobjcreate("internetexplorer.application")
ie.navigate(webpage)
While ie.busy
Sleep 10
ie.visible := true
Is there a way to make AHK, wait until the page on the active window has finished loading, before continuing? (this is in Internet Explorer)