PC Speaker

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
nanowiz
Posts: 17
Joined: 05 May 2020, 22:33

PC Speaker

05 May 2021, 21:39

Looks like SoundBeep outputs to the soundcard and only outputs to the PC Speakers when there is no sound card. I would like to output to the PC Speaker bypassing the sound card. Is there a way within AutoHotKey to do that? Or are there any .exe that I can RUN from AutoHotKey to do that? I found some C programs to do that but I do not have a C compiler to make the .exe.
I am using a TV monitor for my PC via HDMI which also takes care of the sound output. I am using AutoHotKey to run a long program while I switch the TV's input source to something else like Netflix. But if the script runs into an issue, there is no way to alert me since the TV is no longer looking at the input from the PC. So I am searching if there is a way to send an alert beep to the PC speaker while the sound output is still directed to the HDMI output. Any suggestions?
User avatar
mikeyww
Posts: 26849
Joined: 09 Sep 2014, 18:38

Re: PC Speaker

05 May 2021, 22:10

I'm sure the gurus will chime in with the exact method, but you can always try nircmd stdbeep, in case it works. There may also be a way to run ComSpec to echo the BEL or ^G or Chr(007), though I am not sure that I can test that at my end. I read that some newer computers do not actually contain native speakers, though I do not know how commonly that occurs.
User avatar
SKAN
Posts: 1551
Joined: 29 Sep 2013, 16:58

Re: PC Speaker

06 May 2021, 00:58

nanowiz wrote:
05 May 2021, 21:39
I would like to output to the PC Speaker bypassing the sound card.
You will have to write a custom beep.sys then digitally sign it and replace the existing one.
nanowiz wrote:
05 May 2021, 21:39
Is there a way within AutoHotKey to do that?
SoundBeep will work thru PC speaker if beep.sys is changed.
yuyu
Posts: 5
Joined: 01 Jul 2019, 10:31

Re: PC Speaker

06 May 2021, 03:38

nanowiz wrote:
05 May 2021, 21:39
So I am searching if there is a way to send an alert beep to the PC speaker while the sound output is still directed to the HDMI output. Any suggestions?
What OS do you use? Here is the driver fix for Win 7 that worked for me. Probably it will work also on Win 10.
www.waldbauer.com/tmp/dl.php?download=beepx

UPD: Here is also link for x64 driver with usage instructions:
https www.waldbauer.com /tmp/dl.php?download=beepxp64 Broken Link for safety
Last edited by yuyu on 06 May 2021, 05:38, edited 1 time in total.
User avatar
SKAN
Posts: 1551
Joined: 29 Sep 2013, 16:58

Re: PC Speaker

06 May 2021, 05:32

Thanks @yuyu
That should work for x86.

The following is for x64
http://www.waldbauer.com/tmp/dl.php?download=beepxp64

Installed it. SoundBeep works fine in Windows 10 x64.
I had to install a speaker first. Borrowed one from an an old PC.
Sound is too low. I will probably replace it with a large speaker tomorrow.
nanowiz
Posts: 17
Joined: 05 May 2020, 22:33

Re: PC Speaker

06 May 2021, 20:34

Thank you for the tips. I will try the beepxp64 driver.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], ReyAHK, Rohwedder and 253 guests