AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Internet Explorer Page Loads

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Hound



Joined: 15 Apr 2005
Posts: 4

PostPosted: Mon Apr 25, 2005 12:01 am    Post subject: Internet Explorer Page Loads Reply with quote

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. Crying or Very sad
Back to top
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5390
Location: /b/

PostPosted: Mon Apr 25, 2005 12:30 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Hound



Joined: 15 Apr 2005
Posts: 4

PostPosted: Mon Apr 25, 2005 1:21 am    Post subject: Reply with quote

Wow....I dont even want to respond cuz i feel like such an idiot. Thanks Razz
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group