# WWW.ZANGOOLE.COM # http://sourceforge.net/projects/skype4py/ # Coded by Babak M OCT2009 # Babak.mn[at]gmail.com # Published under GNU general public license v2.0 import sys, Skype4Py if len(sys.argv)==3: plat = Skype4Py.Skype() plat.Attach() contacts={} f=open('contacts.txt','rU') for i in f: friends=i.split(":") if "\n" in friends[1]: tempstr=friends[1] contacts[friends[0]]=tempstr.replace("\n","") else: contacts[friends[0]]=friends[1] to=contacts[sys.argv[1].lower()] text = plat.CreateSms(Skype4Py.smsMessageTypeOutgoing, to) text.Body = sys.argv[2] text.Send() else: print "Usage: sms recipient text Example: sms Cyrus Hello"