这是今天在google时看到一个国外朋友的作品,转过来分享一下。
基本意思先解释一下,保持AvantGo在使用wifi同步数据时系统不要自动挂起。AvantGo在使用wifi同步数据过程中,我的PDA由于等待时间过长而自动挂起。即使AvantGo还在下载过程中,仍然这样。所以我使用Skschema保持pda激活,然后在下载数据结束后再挂起。使用这个脚本,我不需要改变PDA系统中挂起时间的设置。按一下键就能为我做所有工作了。
p.s.Sks脚本的可读性是成问题的,大体意思都明白,读起来还是要上翻一下,下翻一下!
[转自:http://kckoay.blogspot.com/2008/08/skschema-script-avantgo-sync-via-wifi.html]
When I sync the Avantgo data viawifi, my PDA will suspend if it is idle for too long. Even the Avantgostill downloading data. So I usethe SKSchema to keep the PDA alive and suspend my PDA after Avantgo haddownloaded the data. With this script, I dont have to change my PDAauto suspend setting. One button click and everything will be done forme.#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)