Kero Posted November 9, 2007 Share Posted November 9, 2007 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 More sharing options...
Generator Posted November 9, 2007 Share Posted November 9, 2007 _IELinkGetCollection() and Random() Link to comment Share on other sites More sharing options...
Kero Posted November 9, 2007 Author Share Posted November 9, 2007 (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 November 9, 2007 by Kero Link to comment Share on other sites More sharing options...
Generator Posted November 10, 2007 Share Posted November 10, 2007 (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 November 10, 2007 by Generator Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now