Python Forum

Full Version: How to check if Skype call is connected or disconnected in Python?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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')
Do you have a question/problem related to this specific code snippet?