Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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

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
  • Recently Browsing   0 members

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