tobject Posted February 10, 2010 Share Posted February 10, 2010 Do you guys know how to initiate Twitter Follow button click ? <button href="/friendships/create/" class="btn" value="Actions" title="Follow worldfinance"><i></i></button> This one does not work for $oLink in $oLinks $sTmp=String($oLink.innerText); if (StringInStr($sTmp, "Follow user") > 0 ) and (StringInStr($sTmp, "Unfollow user") = 0) Then ;MsgBox(0,"Found Link", $sTmp); _IEAction($oLink,"click"); endif; endif; next; Link to comment Share on other sites More sharing options...
Steveiwonder Posted February 10, 2010 Share Posted February 10, 2010 (edited) #include <ie.au3> $oIE = _IEcreate("http://twitter.com/Falcubar") $tags = _IETagNameAllGetCollection($oIE) For $tag in $tags If $tag.tagname = "button" and $tag.outertext = "Follow" Then $tag.click ExitLoop EndIf Next Edited February 10, 2010 by Steveiwonder They call me MrRegExpMan Link to comment Share on other sites More sharing options...
tobject Posted February 10, 2010 Author Share Posted February 10, 2010 love it! Thanks! for some reson I have looks like infinite loop it scrolls whole page and starts again anyway I can do a count first Link to comment Share on other sites More sharing options...
Steveiwonder Posted February 10, 2010 Share Posted February 10, 2010 This is better.. #include <ie.au3> $oIE = _IEAttach("Twitter") $tags = _IETagNameGetCollection($oIE, "button") For $tag in $tags If $tag.outertext = "Follow" Then $tag.click EndIf Next They call me MrRegExpMan 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