Jump to content

Totaly noob


Recommended Posts

Hello everyone,

I am totaly noob to this. So i have a very basic question.

#include <IE.au3>
$oIE = _IE_Example ("basic")
_IELinkClickByText ($oIE, "user forum")

This is from the help file and works great. But if i add

_IELinkClickByText ($oIE, "User Moderation") it doesnt click that text.

and there is this warning,

--> IE.au3 V2.4-0 Warning from function _IELinkClickByText, $_IEStatus_NoMatch

What am i doing wrong ?

Thanks in advance.

Link to comment
Share on other sites

Like this :

#include <IE.au3>

$oIE = _IE_Example("basic")
_IELinkClickByText($oIE, "user forum")
_IELoadWait($oIE)
_IELinkClickByText($oIE, "User Moderation ")

Edit : Wakillon was faster than me Posted Image

Edited by Jayson
Link to comment
Share on other sites

alfa

the next time you want use _IELinkClickByText function and it doesn't work

Do like this

#include <IE.au3>

$oIE = _IE_Example ("basic")
_IELinkClickByText ($oIE, "user forum")
$oLinks = _IELinkGetCollection ( $oIE)
For $oLink In $oLinks
    If StringInStr ( $oLink.innertext, "User Moderation" ) <> 0 Then
        ConsoleWrite ( "->--- Link innertext ->" & $oLink.innertext & '<- ' & @Crlf )
        _IELinkClickByText ( $oIE, "User Moderation " )
        ExitLoop
    EndIf
Next

->--- Link innertext ->User Moderation <-

and you will see exact text ! Posted Image

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

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