| View previous topic :: View next topic |
| Author |
Message |
Hound
Joined: 15 Apr 2005 Posts: 4
|
Posted: Mon Apr 25, 2005 12:01 am Post subject: Internet Explorer Page Loads |
|
|
I've been trying to come up with a way to have an AHK script detect when IE is finished loading a web page after the script has sent it to one because using Sleep is machine/connection dependent and I want this to be as efficient and as portable to my other machines as possible.
Ive tried code in the script to check when the page has changed URL's in the address bar , but this fails simply because the URL changes before most if not all of the html has been parsed by the browser....so ive sadly resorted to the forums for a solution....again.  |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5390 Location: /b/
|
Posted: Mon Apr 25, 2005 12:30 am Post subject: |
|
|
This can be done by getting the Status Bar Text.
Example #1 | Code: | StatusBarGetText, Var, 1, Microsoft Internet Explorer
If Var = Done
MsgBox, The page has finished loading
else
MsgBox, The page hasn't finished loading |
Example #2 | Code: | Loop
{
StatusBarGetText, Var, 1, Microsoft Internet Explorer
If Var = Done
Break
Else
Continue
}
MsgBox, The page has finished loading |
_________________
 |
|
| Back to top |
|
 |
Hound
Joined: 15 Apr 2005 Posts: 4
|
Posted: Mon Apr 25, 2005 1:21 am Post subject: |
|
|
Wow....I dont even want to respond cuz i feel like such an idiot. Thanks  |
|
| Back to top |
|
 |
|