Jump to content

Edit for me this. It can't do once!


Recommended Posts

I have this script. Please edit help me. Because when IE (http://google.com) exist, it will do many times and IE won't work. Can you help me edit this script: when IE(http://google.com) exist. It will do once time.

#include<ie.au3>
While 1
$oIE = _IEAttach("http://www.google.com", "URL")
If $oIE = 0 then
$oEvt = ObjEvent($oIE, "IEEvent_", "DWebBrowserEvents2")
EndIf 
Sleep(10)
WEnd

Func IEEvent_BeforeNavigate2($notsurewhatthisis, $url, $TargetFrameName, $PostData, $Headers, $Cancel)
    ConsoleWrite($url & @CR)
EndFunc  ;==>IEEvent_BeforeNavigate2
Edited by JackyChan
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...