R4yB4d
11th August 2008, 01:05 AM
First of all, I want to say thanks to all the developers in this great community. The talent here, is 2nd to none.
I am not a programer, just someone who enjoys messing with his wm6.1pro.
I turn the phone off frequently when using my wifi connection. So much, my better half never knows when I can be reached. So, I created this script so she would know if my phone is on or off.
The script requires SKScheMa. It is made of 2 parts. The main script called SMS phone status.sksc, and a watch-function.
Here is the script:
#sendkey(#R)
#r(:SKSW) #p(#install #stop)
#todaytext(Checking phone status) #sleep(6000)
#chkgsm()
#eval(gsm=SYSVAR)
#chkcondition(gsm==1)
#IFTRUE(phoneon)
#todaytext(Phone is off) #sleep(2000)
#todaytext(Turning phone on to send SMS) #sleep(2000)
#gsmon() #sleep(5000)
#sms(My phone is turned off) #phone(+8005551234) #+(1) #d(9)
#todaytext(Sending SMS phone off) #sleep(4000)
#gsmoff() #sleep(10000)
#goto(finish)
#label(phoneon)
#todaytext(Sending SMS phone is on) #sleep(4000)
#sms(My phone is on) #phone(+8005551234) #+(1) #d(9)
#label(finish)
#todaytext(Operation successful) #sleep(8000)
#todaytext()
#r(:SKSW) #p(#install #start)
The first line closes my phone on/off notification and can be left out. Change the phone #s and message as necessary. Save the script in "My Documents".
Open SKScheMa. Change to Watch mode screen. Create a new function with the following:
Watch for = Phone
Event title = Phone activity state changed
Execute = script
Choose the script file named SMS phone status.sksc
Save the watch file for easy access.
Turn watch mode on and you are set. Now every time your phone radio turns on or off, an SMS I sent to let someone know. :)
I hope someone finds it useful.
I am not a programer, just someone who enjoys messing with his wm6.1pro.
I turn the phone off frequently when using my wifi connection. So much, my better half never knows when I can be reached. So, I created this script so she would know if my phone is on or off.
The script requires SKScheMa. It is made of 2 parts. The main script called SMS phone status.sksc, and a watch-function.
Here is the script:
#sendkey(#R)
#r(:SKSW) #p(#install #stop)
#todaytext(Checking phone status) #sleep(6000)
#chkgsm()
#eval(gsm=SYSVAR)
#chkcondition(gsm==1)
#IFTRUE(phoneon)
#todaytext(Phone is off) #sleep(2000)
#todaytext(Turning phone on to send SMS) #sleep(2000)
#gsmon() #sleep(5000)
#sms(My phone is turned off) #phone(+8005551234) #+(1) #d(9)
#todaytext(Sending SMS phone off) #sleep(4000)
#gsmoff() #sleep(10000)
#goto(finish)
#label(phoneon)
#todaytext(Sending SMS phone is on) #sleep(4000)
#sms(My phone is on) #phone(+8005551234) #+(1) #d(9)
#label(finish)
#todaytext(Operation successful) #sleep(8000)
#todaytext()
#r(:SKSW) #p(#install #start)
The first line closes my phone on/off notification and can be left out. Change the phone #s and message as necessary. Save the script in "My Documents".
Open SKScheMa. Change to Watch mode screen. Create a new function with the following:
Watch for = Phone
Event title = Phone activity state changed
Execute = script
Choose the script file named SMS phone status.sksc
Save the watch file for easy access.
Turn watch mode on and you are set. Now every time your phone radio turns on or off, an SMS I sent to let someone know. :)
I hope someone finds it useful.