Skip to content

Instantly share code, notes, and snippets.

@mmisono
Created April 11, 2010 13:43
Show Gist options
  • Save mmisono/362720 to your computer and use it in GitHub Desktop.
Save mmisono/362720 to your computer and use it in GitHub Desktop.
import socket
import Skype4Py
PORT = 50000
skype = Skype4Py.Skype()
skype.Attach()
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.bind(('localhost',PORT))
while True:
s.listen(1)
conn,addr = s.accept()
mes = conn.recv(1024)
if mes:
skype.RecentChats[0].SendMessage(mes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment