i've installed skype4py. ( http://skype4py.sourceforge.net/doc/html/ )
i don't know python. i need a simple example script, that takes the first cmd argument as username and the second argument as message. this instant message should then be sent to the skype username.
does anyone know how to do this?
thanks a lot in advance
Should work based on the docs.
from Skype4Py import Skype import sys client = Skype() client.Attach() user = sys.argv message = ' '.join(sys.argv[2:] client.SendMessage(user, message)
$ python message.py someuser This is my message
You better not use this to spam people :D
If you need to do anything further with this, you better learn Python. For educational purposes, here's a line by line breakdown:
sys.argv[2:]), using a space as a separator