Jump to content
Sign in to follow this  

[IE.au3] track link in a table

Recommended Posts


Hi all, (Im French, so my english ...)

I need to open a link contained in a table... but I have to cross the result with information in the same row where the link came from

This table doesn't have an ID or a name, same with the link.

Like this :

      <td> <a href="my super link"> IMG </a> </td>
      <td> Mr Banana</td>
      <td> ID 09068465 </td>
      <td> Status : youpi ! </td>

Here is how I get informations from my table :

$output = ""     ; initialisation de la varibable contenant les informations a écrire dans le fichier TXT
$oTableTEST = _IETableGetCollection ($oIE, 29)    ; le 29 ème tableau représente la liste des informations sur les ressources ainsi que leur timesheet respectif
$aTableDataTEST = _IETableWriteToArray ($oTableTEST)

; récupération de la taille des dimenssion du tableau
For $r = 2 to UBound($aTableDataTEST,2) - 2  ; les lignes 2 a total - 2 correspondent au contenu exploitable par le robot
    For $c = 3 to 5   ; les colonnes 3 à 5 nous interessent     
        $output = $output & $aTableDataTEST[$c][$r] & @TAB
    $output = $output & @CRLF

; écriture du contenu récupéré dans un fichier cible
$script = FileOpen("C:\TEST.txt", 8 + 1)

Here is how I get informations from the link in the previous table :

$oLinks = _IELinkGetCollection ($oIE)
$iNumLinks = @extended
$Count = 0
Local $listeSIE[20] 

For $i = 0 to $iNumLinks - 1
    $oLink = _IELinkGetCollection ($oIE, $i)
    if StringInstr($oLink.href, "app?action=timeadmin.editTimesheet", 1) then
        $Count = $Count + 1

My table always contain 20 rows ...

I think my code is too nasty ... I would like to pick the link direclty from the result of IETableGetCollection, but I dunno' how to :/


Edited by Hergonoway

Share this post

Link to post
Share on other sites

Sorry, I don't understand -- what problem are you trying to solve? what is your question?


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

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