Categories: Python | S60 | Code Examples | How To
This page was last modified 18:40, 10 April 2008.
Sms Timer - small app using Pys60
From Forum Nokia Wiki
This is a small working messaging application using Python. As name suggests "SMS Timer" is used to send a predefined SMS to the recipient at a specific time.
Below is the code for the same.
#SMS Timer #import the module inbox (that handles incoming sms things) import inbox #import the module e32 import e32 #import the module appuifw import appuifw #import the module messaging import messaging #set application title appuifw.app.title=u"SMS Timer" # Define exit function def exit_key_handler(): app_lock.signal() def run(): # define the list of items (items must written in unicode! -> put a u in front) L = [u'Set Timer',u'Exit'] # create the selection list index = appuifw.selection_list(choices=L , search_field=1) #Trigger action upon index if index == 0: data = appuifw.query(u"Enter SMS text","text") number=appuifw.query(u"Enter recepient number","text") appuifw.note(u"Enter time to wait before sending !", "info") t=appuifw.query(u"Send after time (in mins) :","number") t=t*60 while t>0: e32.ao_sleep(1) t=t-1 messaging.sms_send(number, data) appuifw.note(u"Message sent!", "info") run() # Again call the main function if index == 1: exit_key_handler() #calls the main function run() app_lock = e32.Ao_lock() appuifw.app.exit_key_handler = exit_key_handler app_lock.wait()
Here are some screenshots that demonstrate the working of the application - SMS timer
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to start sms UI app ?? | jend_rommel | General Symbian C++ | 4 | 2006-02-14 13:24 |
| PyS60 1.4.3 | JOM | Python | 14 | 2008-05-02 02:15 |
| how to send Flash SMS with Python for S60? | cnstar9988 | Python | 1 | 2006-04-13 11:34 |
| Privacy statement (3rd ed.) | microsoft2 | General Symbian C++ | 25 | 2007-01-19 16:16 |
| N70 - getting rid of sms text announcement | kazza12 | General Messaging | 0 | 2006-07-07 12:39 |





