Jump to content
Sign in to follow this  
c4mpi

what fails with this code?

Recommended Posts

c4mpi

#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?

Share this post


Link to post
Share on other sites
mistersquirrle

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


RAWR! I'm hungry :( Feed the panda squirrle

Share this post


Link to post
Share on other sites
c4mpi

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

Okey thanks, I want to make a script that sends you to another page if found the word that Im searching for

Share this post


Link to post
Share on other sites
mistersquirrle

Ah, all right. That's what it seemed like kinda. Good luck with your code.


RAWR! I'm hungry :( Feed the panda squirrle

Share this post


Link to post
Share on other sites
c4mpi

Ah, all right. That's what it seemed like kinda. Good luck with your code.

Thanks, it works now tho :mellow:

Share this post


Link to post
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
Sign in to follow this  

×