Jump to content
Sign in to follow this  
Walls192

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

Recommended Posts

Walls192

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

as I wand to build an adbux auto clicker.

Share this post


Link to post
Share on other sites
Thatsgreat2345

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

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  

×