Jump to content

_IELinkClickByIndex


Recommended Posts

hi all

i need to find the url of a link by index and then to navigate to it.

with this code i find all the url in a page

CODE
$oLinks = _IELinkGetCollection ($oIE)

$iNumLinks = @extended

MsgBox(0, "Link Info", $iNumLinks & " links found")

For $oLink In $oLinks

MsgBox(0, "Link Info", $oLink.href)

Next

i know that my url is number 12 but i'm not able to write in _IENavigate($0IE, "the url number 12)), the url i need is always number 12 but change every time a call the page.

i tried in several ways but no one works

thanks in advance

Edited by scooper
Link to comment
Share on other sites

thank you very much Authenticity

now it works

you solved my problem

the problem was when i use _IELinkClickByIndex() or imgbyclick(), i don't know why(maybe because is a frame site) the browser open me another page and when i tried to find forms and elements autoit gave me that in first page.

now using this code it works

CODE
_IELinkClickByIndex ($oIE, 12)

$oLinks = _IELinkGetCollection ($oIE, 12)

_IENavigate($oIE, $oLinks)

thankyou again

autoit is great :):party:

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