Jump to content
Sign in to follow this  
RickB75

Getting "undefined" Links with IELinkGetCollection

Recommended Posts

RickB75

Guys,

      I'm trying to figure out why I get "Undefined" links returned with this simple script. I get "undefined" links 85% of the time. 

#include <IE.au3>

$oIE = _IECreate("http://www.toyotaofcoolsprings.com/searchnew.aspx?make=Toyota&model=RAV4")

Local $oLinks = _IELinkGetCollection($oIE)
Local $iNumLinks = @extended

Local $sTxt = $iNumLinks & " links found" & @CRLF & @CRLF
For $oLink In $oLinks
    $sTxt &= $oLink.href & @CRLF
Next

ConsoleWrite( "Link Info:" & $sTxt)

Share this post


Link to post
Share on other sites
MikahS

ran it 5 times and got 234 links every time.


Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Share this post


Link to post
Share on other sites
RickB75

MikahS,

      What version of Autoit are you running??

 

BTW - Thank you for testing :)

Edited by RickB75

Share this post


Link to post
Share on other sites
MikahS
BTW - Thank you for testing :)

 

Absolutely, my pleasure ;)

Latest and Greatest 3.3.12.0

Edited by MikahS

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Share this post


Link to post
Share on other sites
RickB75

I've got the same version. I just sent you a PM. 

Share this post


Link to post
Share on other sites
RickB75

Thanks lorenkinzel. I'm having an issue with my main script. This was just a snip from it. Something is causing the IE window to return undefined links and I can't figure it out. 

Thank you for testing this piece for me!!

Share this post


Link to post
Share on other sites
MikahS

Sent you the fixed code in the PM. ;)


Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

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  

×