c4mpi Posted February 24, 2010 Posted February 24, 2010 #include <IE.au3> $oIE = _IECreate("http://www.autoitscript.com") $sMyString = "wallpaper" $oLinks = _IELinkGetCollection($oIE) For $oLink in $oLinks $sLinkText = _IEPropertyGet($oLink, "innerText") If StringInStr($sLinkText, $sMyString) Then _IENavigate( $oLink, "www.google.com") ExitLoop EndIf Next What fails?
mistersquirrle Posted February 24, 2010 Posted February 24, 2010 What are you trying to do in this script? This is what's failing though: _IENavigate( $oLink, "www.google.com") It should be _IENavigate( $oIE, "www.google.com") to navigate correctly We ought not to misbehave, but we should look as though we could.
c4mpi Posted February 24, 2010 Author Posted February 24, 2010 What are you trying to do in this script? This is what's failing though: _IENavigate( $oLink, "www.google.com")It should be _IENavigate( $oIE, "www.google.com") to navigate correctlyOkey thanks, I want to make a script that sends you to another page if found the word that Im searching for
mistersquirrle Posted February 24, 2010 Posted February 24, 2010 Ah, all right. That's what it seemed like kinda. Good luck with your code. We ought not to misbehave, but we should look as though we could.
c4mpi Posted February 24, 2010 Author Posted February 24, 2010 Ah, all right. That's what it seemed like kinda. Good luck with your code.Thanks, it works now tho
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now