![]() |
|
[Python] Skype4py receiving chat messages - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Python] Skype4py receiving chat messages (/showthread.php?tid=5564933) |
Skype4py receiving chat messages - TheWarOwl - Mar 2, 2017 Hello! I have some code that's supposed to run when Skype receives new messages, the code looks like this: PHP Code 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? * - (╯°□°)╯︵ ┻━━┻ - Mar 2, 2017 Try changing it to: Code def RecievedMessage(msg, status):Does that work at all? * - TheWarOwl - Mar 2, 2017 (Mar 2, 2017 04:28 PM)(╯°□°)╯︵ ┻━━┻ Wrote: Try changing it to: The console just stays empty. It doesn't seem like skype.OnMessageStatus is functional, that or something else is going wrong? * - (╯°□°)╯︵ ┻━━┻ - Mar 2, 2017 (Mar 2, 2017 04:35 PM)Piero-Bird Wrote: The console just stays empty. It doesn't seem like skype.OnMessageStatus is functional, that or something else is going wrong? Did you accept the skype connection request in skype itself first? * - TheWarOwl - Mar 2, 2017 (Mar 2, 2017 05:09 PM)(╯°□°)╯︵ ┻━━┻ Wrote: Did you accept the skype connection request in skype itself first? Of course, I'm pretty familiar with using the module actually, I can't find anything on it online or in the documentation * - obby - Mar 2, 2017 OP, correct me if I'm wrong, but didn't Skype totally remove their API? * - TheWarOwl - Mar 2, 2017 (Mar 2, 2017 06:47 PM)obby Wrote: OP, correct me if I'm wrong, but didn't Skype totally remove their API? They did, but a lot of the features still work. I mentioned that in my post Yo guys, I logged into my main account and the script is working ._. thanks for the help! I've just looked into what was going on, It was because I was using an alt account through the web based skype making it so skype4com couldn't work with it, receiving messages from friends worked because they're using the actual skype client |