Python Forum
How to check if Skype call is connected or disconnected in Python?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to check if Skype call is connected or disconnected in Python?
#1
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')
buran write Dec-28-2023, 08:31 AM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Reply
#2
Do you have a question/problem related to this specific code snippet?
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  When is stdin not connected to a tty, but can still be used interactively? stevendaprano 1 1,017 Sep-24-2022, 05:06 PM
Last Post: Gribouillis
  Printing to a printer connected to pi 4 alan 2 2,457 Oct-04-2020, 10:08 PM
Last Post: alan
  python skype issue heehaa 1 1,613 Jul-07-2020, 12:24 PM
Last Post: heehaa
  Call pip3 from python folder build by me call pip3 from the /usr/bin Suryavarman 3 3,710 Oct-07-2019, 10:23 PM
Last Post: Suryavarman
  How to detect wireless modem connected serially to my laptop in python barry76 3 3,559 Jan-08-2019, 06:18 AM
Last Post: Gribouillis
  Arduino Uno connected to PI 0 W - Sensor Data MQTT runboy 4 3,079 Nov-07-2018, 03:55 AM
Last Post: runboy
  Skype BOT project with backend as MS Excel spreadsheet uunniixx 0 1,797 Aug-16-2018, 01:43 PM
Last Post: uunniixx
  help with showing wifi symbol when connected bowen73 8 6,281 Aug-03-2017, 01:57 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020