Clash
Joined: 27 Jun 2006 Posts: 182
|
Posted: Tue Apr 22, 2008 12:11 pm Post subject: Auto check forum updates |
|
|
Here's a way to check if there's a new post on a forum. It'd work equally well for RSS feeds or any kind of online page. However, i think it might screw someone's website stats up if you used it on an average page.
| Code: | #singleinstance force
loop {
urldownloadtofile, http://www.publicdemands.co.uk/forum/external.php?type=RSS2, forum.txt
filegetsize, size, forum.txt
iniread, logged_size, forumdata.ini, forums, PublicDemands.co.uk
if(logged_size!=size){
msgbox, New forum update!
iniwrite, %size%, forumdata.ini, forums, PublicDemands.co.uk
}
sleep, 900000 ;15 minutes
} |
forumdata.ini:
| Code: | [forums]
PublicDemands.co.uk= |
You need to get the RSS feed of the forum to download. This can be a single forum, or all forums depending on the forum make. Do not set it to download very often or you'll steal the website's bandwidth. The forums normally only update the feed at least every 10 minutes anyway, if it's set up to automatically update at all. _________________
 |
|