Python Forum
How to check if Skype call is connected or disconnected in Python? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: How to check if Skype call is connected or disconnected in Python? (/thread-41349.html)



How to check if Skype call is connected or disconnected in Python? - boral - Dec-28-2023

def call_number(number):
try:
    print(f"Calling number: {number}")

    # Generate Skype URI for the number
    skype_uri = f"skype:{number}?call"

    # Open the Skype URI in a new tab of the default web browser
    webbrowser.open_new_tab(skype_uri)

    #.... Logic to check if skype call is connected or not.

except Exception as e:
    print(f"Error calling number: {number}")
    print(str(e))

call_number('skype.test.user.1')



RE: How to check if Skype call is connected or disconnected in Python? - buran - Dec-28-2023

Do you have a question/problem related to this specific code snippet?