Jump to content

Recommended Posts

Posted (edited)

Check new topic v1.2.5

Update :

CODE

Version 1.1

Added General help and Support forum

Version 1.1.5

Fixed advert error

Now refresh every 10sec

Version 1.2.0

Added edit for enter refresh time

Version 1.2.5

Added status bar to see how many people are browsing the forum

Description :

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 :

Posted Image

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 by Jos
Attachments removed. We do not want these type of scripts on this forum.
Posted (edited)

i getan error on line 12

check_new_topic.au3 (12) : ==> Subscript used with non-Array variable.:

Edited by unixu
Posted (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 by FireFox
Posted (edited)

sorry still not working :P 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 by unixu
Posted

@unixu

check this one :

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

Posted (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 by unixu
  • Developers
Posted

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

Posted (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 :P

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 by FireFox
Posted (edited)

@Jos

I can't find the 'newsfeed' if its a script :P

And if its not, whats the problem ?

Edit : Version 1.2.5 available (see first post for update)

Cheers, FireFox.

Edited by FireFox
  • Developers
Posted

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...