Jump to content

Recommended Posts

Posted

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)
Posted

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

 

Posted (edited)
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

 

Posted

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

Posted

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

 

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
×
×
  • Create New...