Sign in to follow this  
Followers 0
FireFox

Check new topic v1.2.5 [newsfeed]

15 posts in this topic

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

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

i getan error on line 12

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

Edited by unixu

Share this post


Link to post
Share on other sites

#3 ·  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

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

#4 ·  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

Share this post


Link to post
Share on other sites

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


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

#6 ·  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

Share this post


Link to post
Share on other sites

@unixu

it works fine for me, perhaps you've problem with the index.php ...

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

EDIT : It only works when im NOT loggedin ^^

Edited by unixu

Share this post


Link to post
Share on other sites

@unixu

:P that sucks I can't say to you wtf...

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

Version 1.1 available ! (see first post for update)

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#12 ·  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

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

#14 ·  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

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0