Jump to content

what fails with this code?


c4mpi
 Share

Recommended Posts

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

Link to comment
Share on other sites

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

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...