Jump to content

question about objevent


erezlevi
 Share

Recommended Posts

$oIE=ObjCreate("InternetExplorer.Application")

$SinkObject=ObjEvent($oIE,"IEEvent_","DWebBrowserEvents2") 

sleep(3000) 

;$oIE.Navigate( "http://www.AutoItScript.com/" )

sleep(3000) 

Func IEEvent_ProgressChange()
  MsgBox (0,"works","")
EndFunc

this code is from the help file, why without the $oIE.Navigate line I can't get the func to work? I did create the object an assing DWebBrowserEvents2 to it, so why? it should work for every web page I am opening? no?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...