The website I am talking about is one that has no Rss feeds.
I would like the computer to beep if new messages are posted in the forum. Also I want a message box to pop up and you have to push a button to close it before you can continue using the computer.
Please could you write a script that will do that. I am not very good at programming.
Auto check forum updates
Started by
Jag02
, Oct 27 2008 04:07 PM
12 replies to this topic
#1
-
Posted 27 October 2008 - 04:07 PM
you can use yahoo pipes service and code a rss feed for it
#2
-
Posted 27 October 2008 - 04:08 PM
What do you mean by "yahoo pipes service and code a rss feed for it" ?
#3
-
Posted 27 October 2008 - 04:16 PM
#4
-
Posted 28 October 2008 - 03:19 AM
The website I am talking about is one that has no Rss feeds.
I would like the computer to beep if new messages are posted in the forum. Also I want a message box to pop up and you have to push a button to close it before you can continue using the computer.
Please could you write a script that will do that. I am not very good at programming.
#SingleInstance, force #Persistent URL = www.somesite.com ; put your url address here urlDataFile = %A_Temp%\urlTEMPfile.txt SetTimer, CheckChange, 30000 ;check for change every 30 seconds return CheckChange: UrlDownLoadToFile, %URL%, %urlDataFile% FileRead, newURLdata, %urlDataFile% if (newURLdata != oldURLdata) { MsgBox, %URL% has changed. New data is:`n%newURLdata% oldURLdata := newURLdata } returnIf you really want "you have to push a button to close it before you can continue using the computer", replace the msgbox line in the above code with this:
MsgBox,4096,, %URL% has changed. New data is:`n%newURLdata%
#5
-
Posted 28 October 2008 - 05:08 AM
An enhanced version of my previous script.
When testing the below script, I notice that if you enter an AHK forum url, there are frequent changes detected that do no appear on the screen (although it does settle down after a while).
Investigating that, apparently some html format code changes - I don't know why. If you enter a web page or the portable-apps forum (as setup in the script) it works well.
#SingleInstance, force #Persistent URL = http://portableapps.com/forums/development/portable_app_development ; put your url address here ;URL = http://www.autohotkey.com/forum/forum-1.html ; put your url address here ;URL = http://www.autohotkey.com/docs/Variables.htm ; put your url address here urlDataFile = %A_Temp%\urlTEMPfile.txt OnExit, CleanUP ; delete temp file on script exit UrlDownLoadToFile, %URL%, %urlDataFile% ; get a copy of url data to compare against FileRead, oldURLdata, %urlDataFile% SetTimer, CheckChange, 30000 ;check for change every 30 seconds return CheckChange: UrlDownLoadToFile, %URL%, %urlDataFile% FileRead, newURLdata, %urlDataFile% if (newURLdata != oldURLdata) { MsgBox, %URL% has changed. ; MsgBox New data is:`n%newURLdata% ; uncomment this line if you want to see the new data in a message box oldURLdata := newURLdata } return CleanUp: FileDelete, %urlDataFile% exitapp
When testing the below script, I notice that if you enter an AHK forum url, there are frequent changes detected that do no appear on the screen (although it does settle down after a while).
Investigating that, apparently some html format code changes - I don't know why. If you enter a web page or the portable-apps forum (as setup in the script) it works well.
#6
-
Posted 28 October 2008 - 08:25 AM
What is not working.Your scripts are not working.
I tested the above code and it works well. I used URL = URL = <!-- m -->http://www.autohotkey.com/forum/<!-- m --> and everytime anything on the page changed (current time, anything in stats area, or any of the sub-forum summeries) the change was detected.
#8
-
Posted 30 October 2008 - 08:42 AM
"Your scripts are not working for me." That's something different. In 9 of 10 cases the error is sitting in front of the screen. How you can prove that it's definitely the script that isn't working - if you're 'not good at programming'?Please could you write a script that will do that. I am not very good at programming.
#9
-
Posted 30 October 2008 - 08:50 AM
I don't want script to check for time or anything else.
I just want it to check for new messages in the forum e.g <!-- w -->www.autohotkey.com/forum/<!-- w -->
I just want it to check for new messages in the forum e.g <!-- w -->www.autohotkey.com/forum/<!-- w -->
#10
-
Posted 30 October 2008 - 11:01 AM
#11
-
Posted 30 October 2008 - 11:15 AM
Think about what you are asking. You want to compare the content of the page from one sample to the next, while filtering out what you are not interested in (in addition to html stuff). In any case it would be very site specific (depending on the forum software, etc).I don't want script to check for time or anything else.
I just want it to check for new messages in the forum e.g <!-- w -->www.autohotkey.com/forum/<!-- w -->
That is a significant (even major) software task. IMHO, someone writing this for you isn't going to happen.
If you want to get 'good at programming' the code posted by a buddy gives you two variables containing the page samples - all you have to do is just filter it. Open the help file and start learning programming.
#12
-
Posted 30 October 2008 - 12:03 PM
Use a Firefox extension: http://www.iopus.com/iMacros/firefox/
Its kind of like AHK for the browser
=> Write a short macro that checks on the website
Its kind of like AHK for the browser
=> Write a short macro that checks on the website
#13
-
Posted 31 October 2008 - 12:44 PM