Jump to content

Using "_IELinkGetCollection" to get links only containing "viewad.php?ad="


Recommended Posts

along these lines

copied and pasted from help file, and then added slight modifications

#include <IE.au3>
#include <Array.au3>
$oIE = _IECreate()
$oLinks = _IELinkGetCollection ($oIE)
$iNumLinks = @extended
Global $Link_Array[$iNumLinks]
For $oLink In $oLinks
    If StringInStr($oLink.href,'viewad.php?ad=') Then
        _ArrayAdd($Link_Array,$oLink.href)
    EndIf
    
Next
_ArrayDisplay($Link_Array)
Edited by Thatsgreat2345
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...