Mar 2, 2017 04:19 PM
(This post was last modified: Mar 2, 2017 04:19 PM by TheWarOwl.)
Hello! I have some code that's supposed to run when Skype receives new messages, the code looks like this:
I am aware Skype has cut skype4com which is what skype4py uses, hence why you can no longer send messages with it (even though there's a workaround)
I've tried tons of different ways of doing this, all of which fail to work without errors even occurring. Is there something wrong with my code? Or could this also no longer be supported?
PHP Code
<?php
import Skype4Py
def RecievedMessage(msg, status):
if status == Skype4Py.cmsReceived:
print "I got your message!"
skype = Skype4Py.Skype()
skype.OnMessageStatus = RecievedMessage
skype.Attach()
while True: #This just keeps the script alive
pass
I am aware Skype has cut skype4com which is what skype4py uses, hence why you can no longer send messages with it (even though there's a workaround)
I've tried tons of different ways of doing this, all of which fail to work without errors even occurring. Is there something wrong with my code? Or could this also no longer be supported?
![[Image: 5BgQiIm.gif]](https://i.imgur.com/5BgQiIm.gif)



![[Image: ouURNlq.png]](https://i.imgur.com/ouURNlq.png)
![[Image: IqK5FY6.png]](https://i.imgur.com/IqK5FY6.png)