Jump to content

Can get IE collection working. Why?


Recommended Posts

I am trying the following example from the help:

#include <IE.au3>
$oIE = _IE_Example ("basic")
$oLinks = _IELinkGetCollection ($oIE)
$iNumLinks = @extended
MsgBox(0, "Link Info", $iNumLinks & " links found")
For $oLink In $oLinks
    MsgBox(0, "Link Info", $oLink.href)
Next

A box correctly pops up informing me that there are 3 links on the page. However the boxes from the For loop (with links) are never displayed, and it looks like that the loop is not executed once.

Link to comment
Share on other sites

  • Moderators

I am trying the following example from the help:

#include <IE.au3>
$oIE = _IE_Example ("basic")
$oLinks = _IELinkGetCollection ($oIE)
$iNumLinks = @extended
MsgBox(0, "Link Info", $iNumLinks & " links found")
For $oLink In $oLinks
    MsgBox(0, "Link Info", $oLink.href)
Next

A box correctly pops up informing me that there are 3 links on the page. However the boxes from the For loop (with links) are never displayed, and it looks like that the loop is not executed once.

This works fine for me, I get 4 msgboxes total.
Link to comment
Share on other sites

Ah, I see now.

I did not install my version (I have no admin rights on my office PC), just extracted the .zip archive to my hard drive. So I have all my stuf in C:\Apps\Mine\Software\autoit-3.1.1.132 folder and run AutoIt from there. So far I did not have any problems, but I never tried to work with IE before.

What is the good way to cofigure AutoIt without running a setup program?

Edited by hukilai
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...