AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Auto check forum updates

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Clash



Joined: 27 Jun 2006
Posts: 182

PostPosted: Tue Apr 22, 2008 11:11 am    Post subject: Auto check forum updates Reply with quote

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.
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group