Beep on WIndows 11

Y Y mickey_yang9 at msn.com
Sat Nov 11 18:44:19 EST 2023


I am curious and humble to ask: What is the purpose of a BEEP?


-----Original Message-----
From: Python-list <python-list-bounces+mickey_yang9=msn.com at python.org> On Behalf Of Rob Cliffe via Python-list
Sent: Sunday, November 12, 2023 6:50 AM
To: Python <python-list at python.org>
Subject: Beep on WIndows 11

  Apologies if this is not a Python question.
I  recently moved from a WIndows 10 laptop to a Windows 11 one.
Although there is nothing wrong with the sound on the new machine (I can listen to podcasts and watch videos), I find that outputting "\a" to the console (aka stdout) no longer beeps (or makes any sound).  This is true whether I print "\a" from a python program, or "type <a-file-containing-a-bell-character>".
I have found via Google workarounds such as
     os.system("rundll32 user32.dll,MessageBeep") but it is a trifle annoying to have to modify all of my programs that beep.
Can anyone shed light on this, and perhaps give a simpler fix?
Best wishes
Rob Cliffe
--
https://mail.python.org/mailman/listinfo/python-list


More information about the Python-list mailing list