[JASJAR, XDA Exec, MDA Pro Accessories] Digs:
Here is my Skchema code for Stay Connected to web.

Further Reference

http://s-k-tools.com/skschema/skssample.html

http://s-k-tools.com/skschema/skschema.0409.htm

I have no idea if the code follows best practice, but it works for me. It will also help newbies out the SkSchema tool.

I have slightly updated the PPCPing.exe file to change the out put string a little.

***EXAMPLE LOG FILE OUTPUT

20060715 12:02:01 : Internet Connection Ok *StayConnected*

20060715 00:02:11 : Ping pass, Sec:5 (google.com / 64.233.187.99 / 80)

20060715 01:02:01 : Internet Connection Ok *StayConnected*

20060715 01:02:10 : Ping pass, Sec:5 (google.com / 64.233.187.99 / 80)

20060715 02:02:01 : Internet Connection Ok *StayConnected*

20060715 02:02:11 : Ping pass, Sec:6 (google.com / 72.14.207.99 / 80)

20060715 03:02:01 : Internet Connection Ok *StayConnected*

20060715 03:02:11 : Ping pass, Sec:7 (google.com / 64.233.167.99 / 80)

Below is my SkSchema code for my *StayConnected* script that I run every hour, using PPCPing.exe as ISP data check.

All below scripts required a text file at: \Storage Card\SchemaLog.txt

***Code for StayConnectedCode.

NOTE: VFNZ Internet is the name of my data connection.

#r(#chkprocess) #p(repllog.exe)

#r(#iffalse) #p(GSMCheck)

#r(#appendstr) #p(\Storage Card\SchemaLog.txt) #wait(1) #d(@Date(yyyyMMdd) @Time(hh:mm:ss) : Fail - Active Sync running *StayConnected* #R)

#r(#script) #p(\Program Files\SK Software\ActiveSyncWav.sksc)

#r(#goto) #p(End)

#r(#label) #p(GSMCheck)

#r(#chkgsm)

#r(#iftrue) #p(IntCheck)

#r(#appendstr) #p(\Storage Card\SchemaLog.txt) #wait(1) #d(@Date(yyyyMMdd) @Time(hh:mm:ss) : GSM Off, Internet check aborted *StayConnected* #R)

#r(#goto) #p(End)

#r(#label) #p(IntCheck)

#r(#chkconnection) #p(VFNZ Internet)

#r(#iftrue) #p(Ok2)

#r(#connect) #wait(1)

#r(#chkconnection) #p(VFNZ Internet)

#r(#iftrue) #p(Ok1)

#r(#gsmoff) #wait(1)

#r(#gsmon) #wait(1)

#r(#connect) #wait(1)

#r(#chkconnection) #p(VFNZ Internet)

#r(#iftrue) #p(Ok3)

#r(#appendstr) #p(\Storage Card\SchemaLog.txt) #wait(1) #d(@Date(yyyyMMdd) @Time(hh:mm:ss) : Internet Connection Failed *StayConnected* #R)

#r(\Program Files\PPCPing\PPCPing.exe) #waitfor(1)

#r(#goto) #p(chkPPC)

#r(#label) #p(Ok1)

#r(#appendstr) #p(\Storage Card\SchemaLog.txt) #wait(1) #d(@Date(yyyyMMdd) @Time(hh:mm:ss) : Internet Reconnected *StayConnected* #R)

#r(#script) #p(\Program Files\SK Software\EmailConnCheck.sksc) #wait(1)

#r(\Program Files\PPCPing\PPCPing.exe) #waitfor(1)

#r(#goto) #p(chkPPC)

#r(#label) #p(Ok2)

#r(#appendstr) #p(\Storage Card\SchemaLog.txt) #wait(1) #d(@Date(yyyyMMdd) @Time(hh:mm:ss) : Internet Connection Ok *StayConnected* #R)

#r(\Program Files\PPCPing\PPCPing.exe) #waitfor(1)

#r(#goto) #p(chkPPC)

#r(#label) #p(Ok3)

#r(#appendstr) #p(\Storage Card\SchemaLog.txt) #wait(1) #d(@Date(yyyyMMdd) @Time(hh:mm:ss) : Internet GSM/Reconnected *StayConnected* #R)

#r(#script) #p(\Program Files\SK Software\EmailConnCheck.sksc) #wait(1)

#r(\Program Files\PPCPing\PPCPing.exe) #waitfor(1)

#r(#label) #p(chkPPC)

#r(#rgget) #p(HKLM;software\ppcping\pingresult;result;SZ;var3)

#r(#iftrue) #p(RegVarOk)

#r(#appendstr) #p(\Storage Card\SchemaLog.txt) #wait(1) #d(****************************************************************** #R)

#r(#appendstr) #p(\Storage Card\SchemaLog.txt) #wait(1) #d(@Date(yyyyMMdd) @Time(hh:mm:ss) : PPCPing Error - Could not read registry *StayConnected* #R)

#r(#appendstr) #p(\Storage Card\SchemaLog.txt) #wait(1) #d(****************************************************************** #R)

#r(#goto) #p(End)

#r(#label) #p(RegVarOk)

#r(#eval) #p(res = @var3)

#r(#chkcondition) #p(res == 99)

#r(#iftrue) #p(End)

#r(#appendstr) #p(\Storage Card\SchemaLog.txt) #wait(1) #d(****************************************************************** #R)

#r(#appendstr) #p(\Storage Card\SchemaLog.txt) #d(@Date(yyyyMMdd) @Time(hh:mm:ss) : +PPCPing Reset Started *StayConnected* #R)

#r(#appendstr) #p(\Storage Card\SchemaLog.txt) #wait(1) #d(@Date(yyyyMMdd) @Time(hh:mm:ss) : PPCPing Error = #res# *StayConnected* #R)

#r(#sr) #wait(1)

#r(#appendstr) #p(\Storage Card\SchemaLog.txt) #sleep(60000) #wait(1) #d(@Date(yyyyMMdd) @Time(hh:mm:ss) : Soft Reset Completed *StayConnected* #R)

#r(#script) #p(\Program Files\SK Software\GSMCheck.sksc) #sleep(1000) #wait(1)

#r(#script) #p(\Program Files\SK Software\InternetCheck.sksc) #sleep(1000) #wait(1)

#r(#script) #p(\Program Files\SK Software\EmailConnCheck.sksc) #sleep(1000) #wait(1)

#r(\Program Files\PPCPing\PPCPing.exe) #waitfor(1)

#r(#appendstr) #p(\Storage Card\SchemaLog.txt) #sleep(1000) #wait(1) #d(@Date(yyyyMMdd) @Time(hh:mm:ss) : +PPCPing Reset Completed *StayConnected* #R)

#r(#appendstr) #p(\Storage Card\SchemaLog.txt) #wait(1) #d(***************************************************************** #R)

#r(#label) #p(End)

*** CODE FOR ActiveSyncWav

#r(#chkfile) #p(\Windows\notify.wav)

#r(#ifunknown) #p(nofile)

#r(#iffalse) #p(nofile)

#r(#playwav) #p(\Windows\notify.wav)

#r(#goto) #p(End)

#r(#label) #p(nofile)

#r(#appendstr) #p(\Storage Card\SchemaLog.txt) #wait(1) #d(@Date(yyyyMMdd) @Time(hh:mm:ss) : Error - Wav File Missing *ActiveSyncWav* #R)

#r(#label) #p(End)

*** Code for EmailConnCheck

NOTE : EmailSync.lnk is a shortcut to run your email account, see this example : #r(\Windows\tmail.exe) #p(-Service "MyBox" -Sync)

#r(#chkprocess) #p(repllog.exe)

#r(#iffalse) #p(IntCheck)

#r(#appendstr) #p(\Storage Card\SchemaLog.txt) #wait(1) #d(@Date(yyyyMMdd) @Time(hh:mm:ss) : Fail - Active Sync running *EmailConnCheck* #R)

#r(#script) #p(\Program Files\SK Software\ActiveSyncWav.sksc)

#r(#goto) #p(End)

#r(#label) #p(IntCheck)

#r(#chkconnection) #p(VFNZ Internet)

#r(#ifunknown) #p(Post)

#r(#iffalse) #p(Post)

#r(\Program Files\SK Software\EmailSync.lnk) #waitfor(1)

#r(#appendstr) #p(\Storage Card\SchemaLog.txt) #wait(1) #d(@Date(yyyyMMdd) @Time(hh:mm:ss) : Email Check Ok *EmailConnCheck* #r)

#r(#gototoday) #wait(1)

#r(#goto) #p(End)

#r(#label) #p(Post)

#r(#appendstr) #p(\Storage Card\SchemaLog.txt) #d(@Date(yyyyMMdd) @Time(hh:mm:ss) : Email Check Failed - No Internet Connection *EmailConnCheck* #R)

#r(#label) #p(End)

*** Code for InternetCheck

#r(#chkconnection) #p(VFNZ Internet)

#r(#iftrue) #p(End)

#r(#connect)

#r(#appendstr) #p(\Storage Card\SchemaLog.txt) #wait(1) #d(@Date(yyyyMMdd) @Time(hh:mm:ss) : Internet Reconnected *InternetCheck* #R)

#r(#label) #p(End)

** Code for GSMCheck

#r(#chkgsm)

#r(#iftrue) #p(End)

#r(#gsmon)

#r(#appendstr) #p(\Storage Card\SchemaLog.txt) #wait(1) #d(@Date(yyyyMMdd) @Time(hh:mm:ss) : GSM Reconnected *GSMCheck* #R)

#r(#label) #p(End)

This took me several months to get write, hope it helps out other newbies.

IF ANY OF YOU CAN ADD VALUE TO THE ABOVE CODE PLEASE REPAY ME BY POSTING IT HERE, Thanks.