When I sync the Avantgo data via wifi, my PDA will suspend if it is idle for too long. Even the Avantgo still downloading data. So I use the SKSchema to keep the PDA alive and suspend my PDA after Avantgo had downloaded the data. With this script, I dont have to change my PDA auto suspend setting. One button click and everything will be done for me.
#r(#yesno) #p(Sync AvantGo? ) #rmt(5000)
#r(#iffalse) #p(end)
#r(#ifunknown) #p(end)
#r(#playwav) #p(\my documents\h_start.wav)
#r(#wlanon)
#r(\Storage Card\Program Files\AvantGo\avantgo.exe)
#r(#chkwlan) #sleep(18500)
#r(#iffalse) #p(done)
#r(#ifunknown) #p(done)
#r(#findwindow) #p(AvantGo)
#r(#activatewindow)
#r(#tap) #p(199;305) #sleep(250)
#r(#tap) #p(196;161) #sleep(250)
#r(#yesno) #p(off screen?) #rmt(5000)
#r(#iffalse) #p(syncwait)
#r(#scr)
#r(#label) #p(syncwait)
#r(#chkwlan)
#r(#iffalse) #p(done)
#r(#ifunknown) #p(done)
#r(#tap) #p(96;157)
#r(#0) #sleep(4000)
#r(#playwav) #p(\my documents\attn.wav)
#r(#0) #sleep(4000)
#r(#yesno) #p(stop sync? ) #rmr(1) #rmt(3000)
#r(#iftrue) #p(done)
#r(#findwindow) #p(Error during sync)
#r(#iftrue) #p(attention)
#r(#findwindow) #p(AvantGo (sync.avantgo.com:80))
#r(#iffalse) #p(done)
#r(#label) #p(istimeout)
#r(#chkcondition) #p(a == 25)
#r(#iftrue) #p(attention)
#r(#eval) #p(a=a+1)
#r(#goto) #p(syncwait)
#r(#label) #p(attention)
#r(#chkcondition) #p(b == 6)
#r(#iftrue) #p(done)
#r(#eval) #p(b=b+1)
#r(#playwav) #p(\my documents\h_attn.wav)
#r(#0) #sleep(5000)
#r(#yesno) #p(stop sync? ) #rmr(1) #rmt(5000)
#r(#iffalse) #p(attention)
#r(#label) #p(done)
#r(#playwav) #p(\my documents\h_finish.wav)
#r(#scn)
#r(#findwindow) #p(AvantGo)
#r(#iffalse) #p(wlanoff)
#r(#activatewindow) #p(AvantGo)
#r(#postmessage) #p(0x10;0;0) #sleep(2500)
#r(#label) #p(wlanoff)
#r(#wlanoff) #sleep(1500)
#r(#yesno) #p(suspend? ) #sleep(1000) #rmt(5000)
#r(#iffalse) #p(end)
#r(#ifunknown) #p(end)
#r(#playwav) #p(\my documents\attn.wav)
#r(#0) #sleep(2000)
#r(\program files\pocketplus\actionsender.exe) #p(-key PLUSACTION{000600000000} Suspend)
#r(#label) #p(end)
Thursday, August 28, 2008
SKSchema script: Avantgo Sync via wifi
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment