Sign in to follow this  
Followers 0
Kero

Clicking a topic in a forum

4 posts in this topic

I have a script that opens IE and go to different forums in a message board. Now, I want it to randomly go to a topic in a forum. How do I go about doing this? Let's use Autoit's forum as an example. I am using ie.au3 library.

Thanks

Share this post


Link to post
Share on other sites

_IELinkGetCollection() and Random()

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

_IELinkGetCollection() and Random()

How do I make sure it doesn't click on other links other than the threads only? Also, _IELinkGetCollection returns an object. I do not know how to manipulate objects but I tried to think of it as an array and it doesn't work.

$oLinks = _IELinkGetCollection ($oIE)

$numLinks = UBound($oLinks,1)

Edited by Kero

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Example:

$oLinks = _IELinkGetCollection ($oIE)
$iNumLinks = @extended
For $oLink In $oLinks
    If StringInStr($oLink.herf,"http://www.autoitscript.com/forum/index.php?showtopic=") Then
            _IENavigate($oIE,$oLink.herf)
           ExitLoop
       EndIf
Next

I am not very good with IE.au3, but this will work.

Edited by Generator

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  
Followers 0