prestonmcafee
8th October 2006, 05:49 PM
Updating twenty RSS feeds takes a lot of data; moreover I have my rss program (newsbreak) on the minisd with nothing in main memory, which means it won't automatically update (but also means I don't have to re-install it when I rebuild after a hard reset). I wanted to create a program to update it and my weather program when I connect by activesync. This program does that.
#r(#yesno) #p(Update Weather and RSS? silence=no) #rmr(1) #rmt(10000)
#r(#ifunknown) #p(stop)
#r(#iffalse) #p(stop)
#r(\Storage Card\Program Files\HandyWeather\HandyWeather.exe) #sleep(300)
#r(#tap) #p(197;309) #sleep(6000)
#r(#sendkey) #p(U) #sleep(300)
#r(\Storage Card\Program Files\NewsBreak\NewsBreak.exe) #sleep(5000)
#r(#tap) #p(197;309) #sleep(7000)
#r(#sendkey) #p(R) #sleep(300)
#r(#kill) #p(HandyWeather.exe) #sleep(180000)
#r(#kill) #p(NewsBreak.exe) #sleep(1000)
#r(#gototoday) #sleep(1000)
#r(#label) #p(stop)
I create a program (update.sksc) with this code and then use Memmaid to create a notification, which runs the program whenever activesync completes a synchronization (notification tab, Add, AppRunAfterSync). (for some reason, creating a notification when an rs232 connection is made is not working on my MDA).
The first three lines asks whether you want to update and stops the program if you do not say yes; this is because I've set it to run after every synch, and that happens pretty frequently if you leave it connected to the pc; it fails nicely. You have ten seconds to say yes if you want to sync. The second three lines update the weather program (handyweather, in my case) and the next group update my rss feed. I give it three minutes to update (more than enough) and then kill both programs and return to the today screen.
#r(#yesno) #p(Update Weather and RSS? silence=no) #rmr(1) #rmt(10000)
#r(#ifunknown) #p(stop)
#r(#iffalse) #p(stop)
#r(\Storage Card\Program Files\HandyWeather\HandyWeather.exe) #sleep(300)
#r(#tap) #p(197;309) #sleep(6000)
#r(#sendkey) #p(U) #sleep(300)
#r(\Storage Card\Program Files\NewsBreak\NewsBreak.exe) #sleep(5000)
#r(#tap) #p(197;309) #sleep(7000)
#r(#sendkey) #p(R) #sleep(300)
#r(#kill) #p(HandyWeather.exe) #sleep(180000)
#r(#kill) #p(NewsBreak.exe) #sleep(1000)
#r(#gototoday) #sleep(1000)
#r(#label) #p(stop)
I create a program (update.sksc) with this code and then use Memmaid to create a notification, which runs the program whenever activesync completes a synchronization (notification tab, Add, AppRunAfterSync). (for some reason, creating a notification when an rs232 connection is made is not working on my MDA).
The first three lines asks whether you want to update and stops the program if you do not say yes; this is because I've set it to run after every synch, and that happens pretty frequently if you leave it connected to the pc; it fails nicely. You have ten seconds to say yes if you want to sync. The second three lines update the weather program (handyweather, in my case) and the next group update my rss feed. I give it three minutes to update (more than enough) and then kill both programs and return to the today screen.