FireFox Posted February 25, 2009 Share Posted February 25, 2009 (edited) Check new topic v1.2.5Update :CODEVersion 1.1Added General help and Support forumVersion 1.1.5Fixed advert errorNow refresh every 10secVersion 1.2.0Added edit for enter refresh timeVersion 1.2.5Added status bar to see how many people are browsing the forumDescription :Get infos from the 'Example Scripts' and 'General help and Support' forums for the new topic !this script can check for new topic every 10sec !Screenshot :Note :This script won't work in the future if there are changes in the sticky...Auto refresh time will only work if you check for the Advert !Attachments :Check_topic : Check_topic : Check_topic : Cheers, FireFox. Edited February 27, 2009 by Jos Attachments removed. We do not want these type of scripts on this forum. Link to comment Share on other sites More sharing options...
unixu Posted February 26, 2009 Share Posted February 26, 2009 (edited) i getan error on line 12 check_new_topic.au3 (12) : ==> Subscript used with non-Array variable.: Edited February 26, 2009 by unixu Link to comment Share on other sites More sharing options...
FireFox Posted February 26, 2009 Author Share Posted February 26, 2009 (edited) @unixu Replace $title[1] by $title[0] but sometimes its 1 or 0, I will add Ubound to check the array later Cheers, FireFox. Edited February 26, 2009 by FireFox Link to comment Share on other sites More sharing options...
unixu Posted February 26, 2009 Share Posted February 26, 2009 (edited) sorry still not working i could use this snippet for a little script i am making to check forum topics ^^ ich denke es liegt daran weil zeile 333 nur ein <tr> enthält du aber nach etwas zwischen "> und </a> suchst Edited February 26, 2009 by unixu Link to comment Share on other sites More sharing options...
FireFox Posted February 26, 2009 Author Share Posted February 26, 2009 @unixu check this one : expandcollapse popup#include <String.au3> InetGet('http://www.autoitscript.com/forum/index.php?showforum=9.index.php', @TempDir & '\index9.php', 1, 0) #Region 333 ConsoleWrite('! FileReadLine 333' & @CRLF) $333 = FileReadLine(@TempDir & '\index9.php', 333) ConsoleWrite('-CODE> ' & $333 & @CRLF) $title = _StringBetween($333, '">', '</a>') ConsoleWrite('-TITLE> ' & $title[UBound($title) - 1] & @CRLF) $topic = StringLeft(StringTrimLeft($333, 105), 5) ConsoleWrite('-TOPIC> ' & $topic & @CRLF) $url = 'http://www.autoitscript.com/forum/index.php?showtopic=' ConsoleWrite('-URL> ' & $url & $topic & @CRLF) #EndRegion 333 ; #Region 334 ConsoleWrite('! FileReadLine 333' & @CRLF) $334 = FileReadLine(@TempDir & '\index9.php', 334) ConsoleWrite('-CODE> ' & $334 & @CRLF) $description = _StringBetween($334, "'>", '</span>') ConsoleWrite('-DESCRIPTION> ' & $description[0] & @CRLF) #EndRegion 334 ; #Region 338 ConsoleWrite('! FileReadLine 338' & @CRLF) $338 = FileReadLine(@TempDir & '\index9.php', 338) ConsoleWrite('-CODE> ' & $338 & @CRLF) $post = _StringBetween($338, ';">', '</a>') ConsoleWrite('-POST(S)> ' & $post[0] & @CRLF) #EndRegion 338 ; #Region 342 ConsoleWrite('! FileReadLine 342' & @CRLF) $342 = FileReadLine(@TempDir & '\index9.php', 342) ConsoleWrite('-CODE> ' & $342 & @CRLF) $views = _StringBetween($342, ">", "</td>") ConsoleWrite('-VIEW(S)> ' & $views[0] & @CRLF) #EndRegion 342 ; #Region 343 ConsoleWrite('! FileReadLine 343' & @CRLF) $343 = FileReadLine(@TempDir & '\index9.php', 343) ConsoleWrite('-CODE> ' & $343 & @CRLF) $last_p = _StringBetween($343, "'>", "</a></b>") ConsoleWrite('-LASR POSTER> ' & $last_p[0] & @CRLF) $time = _StringBetween($343, '"lastaction">', "<br />") ConsoleWrite('-TIME> ' & $time[0] & @CRLF) FileDelete(@TempDir & '\index9.php') #EndRegion 343 ; #Region Example MsgBox(64, 'Example Script - new topic', 'Title : ' & $title[UBound($title) - 1] _ & @CRLF & 'Topic number : ' & $topic _ & @CRLF & 'Topic url : ' & $url & $topic _ & @CRLF & 'Description : ' & $description[0] _ & @CRLF & 'Post(s) : ' & $post[0] _ & @CRLF & 'View(s) : ' & $views[0] _ & @CRLF & 'Last poster : ' & $last_p[0] _ & @CRLF & 'Last action : ' & $time[0]) #EndRegion Example Cheers, FireFox. Link to comment Share on other sites More sharing options...
unixu Posted February 26, 2009 Share Posted February 26, 2009 (edited) i think the error is you are searching line 333 but it only contains a <TR> instead of what you are searching "> and </a> btw tested new script and same error EDit: the same happens on line 29 with the $description EDit2: Ok i tested all it happens to almost every variable using the $var[1 or 0] properity Edited February 26, 2009 by unixu Link to comment Share on other sites More sharing options...
FireFox Posted February 26, 2009 Author Share Posted February 26, 2009 @unixu it works fine for me, perhaps you've problem with the index.php ... Cheers, FireFox. Link to comment Share on other sites More sharing options...
unixu Posted February 26, 2009 Share Posted February 26, 2009 (edited) EDIT : It only works when im NOT loggedin ^^ Edited February 26, 2009 by unixu Link to comment Share on other sites More sharing options...
FireFox Posted February 26, 2009 Author Share Posted February 26, 2009 @unixu that sucks I can't say to you wtf... Cheers, FireFox. Link to comment Share on other sites More sharing options...
FireFox Posted February 27, 2009 Author Share Posted February 27, 2009 Version 1.1 available ! (see first post for update) Cheers, FireFox. Link to comment Share on other sites More sharing options...
Developers Jos Posted February 27, 2009 Developers Share Posted February 27, 2009 Why a refresh evey 5 secs? Are you trying to have it eat as much resources as possible? This really should be a news feed in stead of what you are trying here! Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
FireFox Posted February 27, 2009 Author Share Posted February 27, 2009 (edited) @Jos I dont understand what you mean, this script only check for you if there is a new reply or a new topic.... I think its better to use it instead of always refreshing the browser page Edit1 : new version (see first post for update) Edit2 : I've understood, I've put the refresh to every 10sec, Edit3 : new version (see first post for update) Cheers, FireFox. Edited February 27, 2009 by FireFox Link to comment Share on other sites More sharing options...
Developers Jos Posted February 27, 2009 Developers Share Posted February 27, 2009 The newsfeed does exactly what you are saying. it will report all new topic and posts. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
FireFox Posted February 27, 2009 Author Share Posted February 27, 2009 (edited) @Jos I can't find the 'newsfeed' if its a script And if its not, whats the problem ? Edit : Version 1.2.5 available (see first post for update) Cheers, FireFox. Edited February 27, 2009 by FireFox Link to comment Share on other sites More sharing options...
Developers Jos Posted February 27, 2009 Developers Share Posted February 27, 2009 We do not want these type of script hitting the forums eating away unnecessary resources and we will actively remove them from now on. Use the available RSS feeds for notification of new Posts and Topics. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts