Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 10:40, 15 April 2008.

Sms Spammer - small app using Pys60

From Forum Nokia Wiki

This is a small working messaging application using PyS60. The script can be converted to a standalone selfsigned application by using py2sis tool or ensymble.

This application "Sms Spammer" can be used to send multiple messages to a recipient with the same or different text as chosen by the user.

This script can also be worked upon to create an automatic SMS Voter for some purpose.

This application doesn't use any special capabilities

#SMS Spammer
#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 Spammer"
 
 
# Define exit function
def exit_key_handler():
    app_lock.signal()
 
#Function for sending multiple SMS to the same number with the same text.
def stext():
    data = appuifw.query(u"Input Spam Text", "text")
    nbr = appuifw.query(u"Number to Spam", "text")
    spam = appuifw.query(u"Enter Spam quantity", "number")
    i=0
    while i<spam:
        messaging.sms_send(nbr, data)
        print i
        i=i+1
 
#Function for sending multiple SMS to the same number with a different text 
@every time so that it doesn't duplicate any text.
 
def dtext():
    data = appuifw.query(u"Input Spam Text", "text")
    nbr = appuifw.query(u"Number to Spam", "text")
    spam = appuifw.query(u"Enter Spam quantity", "number")
    i=0
    while i<spam:
        data=data+str(i)
        messaging.sms_send(nbr, data)
        print i
        i=i+1
 
app_lock = e32.Ao_lock()
 
#Lists the available options
appuifw.app.menu = [(u"Same Text", stext),
                    (u"Different Text ", dtext),(u"Exit", exit_key_handler)]
 
appuifw.app.exit_key_handler = exit_key_handler
app_lock.wait()


Here are some screenshots of the application for better understanding of the working of the application,


Image:Screenshot0050.jpgImage:Screenshot0051.jpgImage:Screenshot0052.jpgImage:Screenshot0054.jpg


Following as shown in the screenshots, the recipient gets 5 SMS with the same text "This is a test message"

Related Discussions
Thread Thread Starter Forum Replies Last Post
Launch URL in SMS Zapdance General Browsing 1 2002-10-25 05:28
PushRegistry - SMS wakeup problem. akchaudhury Mobile Java General 6 2007-02-02 01:33
big custom listbox ajaykapur Symbian User Interface 4 2006-07-12 10:53
pyS60 and NOKIA N91 lfd Python 5 2006-06-15 15:22
Question about Contact and SMS zhangwei_Nirvana General Symbian C++ 2 2007-12-11 19:05
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZpythonQ
     qfnZtopicQUqfnTopicZseriesE5f60Q
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX