Categories: Python | SMS | Code Examples
Sms Assistant - small app using Pys60
From Forum Nokia Wiki
This is a small working messaging application using Python. This application assists in sending predefined SMS auto replies, to the recipient. The script can be converted to a SIS installation file using ensymble for 3rd Ed devices.
#SMS Assistant #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 appuifw.app.title=u"SMS Assistant" # Sets application titile # Defines exit function def exit_key_handler(): app_lock.signal() #Define autoreply function def read_sms(id): e32.ao_sleep(0.1) # create once more an instance of the inbox() class i=inbox.Inbox() # read the content out of the message that has just arrived sms_text = str(i.content(id)) # display the content inside a pop-up note print sms_text m = i.sms_messages() # all message ID's if sms_text: messaging.sms_send(i.address(m[0]),data) L = [u'Set AutoReply', u'Exit'] # create the selection list index = appuifw.selection_list(choices=L , search_field=1) # Trigger action on index selection if index == 0: data = appuifw.query(u"Type autoreply text:","text") i=inbox.Inbox() print "Waiting for Incomming SMS" i.bind(read_sms) if index == 1: exit_key_handler() 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 Assistant
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SMS | mreaves | Mobile Java Networking & Messaging & Security | 1 | 2005-11-03 16:38 |
| [announce] Game "Tricky Mirrors" updated | goetz_s | Python | 1 | 2008-08-19 06:52 |
| SMS | mreaves | Mobile Java General | 3 | 2005-11-03 16:37 |
| Extending the native SMS client | tumadafe | Symbian Networking & Messaging | 2 | 2007-03-14 21:54 |
| Opening New sms on 9210 | Dazler | Symbian Tools & SDKs | 0 | 2002-06-14 10:21 |



