Jump to content

Clicking a topic in a forum


Kero
 Share

Recommended Posts

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

Link to comment
Share on other sites

_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
Link to comment
Share on other sites

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
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...