AutoHotkey Community

It is currently May 27th, 2012, 11:54 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: September 15th, 2010, 3:21 pm 
Offline

Joined: November 14th, 2007, 2:47 pm
Posts: 335
Location: London, England
I'm creating a script that will check to see that an internet explorer window is refreshing.

Does anyone know what the OnMessage command I will need to use to monitor this?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 15th, 2010, 4:40 pm 
Offline
User avatar

Joined: May 24th, 2009, 5:35 am
Posts: 2099
Location: Iowa, USA
I'm not sure about sure about monitoring with OnMessage, but you could watch the IE BeforeNavigation2 & DocumentComplete events (AutHotkey_L):
Code:
#Persistent
pwb := ComObjCreate("InternetExplorer.Application")
pwb.Visible := true
ComObjConnect(pwb,"IE_")
pwb.Navigate2("www.google.com")
OnExit, Exit
return

IE_BeforeNavigate2() {
   SetTimer, BeforeNavigate2, -10
}
   BeforeNavigate2:
   TrayTip, , Navigating...
   Return
   
IE_DocumentComplete() {
   SetTimer, DocumentComplete, -10
}
   DocumentComplete:
   MsgBox, 262144, Document Loaded, DocumentComplete Event
   TrayTip
   return

Exit:
   ComObjError(false) ; in case the IE Window is Closed
   ComObjConnect(pwb)
   ExitApp
Note - this could be written for Vanilla AHK if requested.

_________________
Image
Recommended: AutoHotkey_L
Basic Webpage Controls


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey and 16 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group