Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use SkypeCallMsg? #217

Open
Kryptonh opened this issue Dec 17, 2022 · 4 comments
Open

How to use SkypeCallMsg? #217

Kryptonh opened this issue Dec 17, 2022 · 4 comments

Comments

@Kryptonh
Copy link

I want to track the moment of an outgoing call (when im press call) using SkypeCallMsg, but I can't, I'm following the documentation: https://skpy.t.allofti.me/_modules/skpy/msg.html#SkypeCallMsg

Please help.

P.S: Sorry if this question does not belong to this section

@Terrance
Copy link
Owner

Please re-read the contributing guide and fill in the issue template as requested, as the only thing I've got to go on so far is:

I can't

@maru-koch
Copy link

maru-koch commented Dec 30, 2022

To track any call, use the onEvent method. Check if the event is an instance of a SkypeCallEvent:

E.g

import skpy
class SkypeCallHandler(skpy.SkypeEventLoop):
   
    def __init__(self, username, password) -> None:
        super(SkypeCallHandler, self).__init__(username, password)

    def onEvent(self, event):
     
        if isinstance(event, skpy.SkypeCallEvent):
            # your code
            pass
            
if __name__=="__main__":
    username = "your_username"
    password = "your_password"
    main = SkypeCallHandler(username, password)
    main.loop()

@Terrance
Copy link
Owner

From a quick test, it looks like Skype doesn't actually send a message event for initiating calls any more, only afterwards with a summary (what shows as the call duration or "Missed call"), so SkPy won't be able to tell when a call starts.

@Terrance Terrance added the bug label Dec 30, 2022
@maru-koch

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants