how to make PC Speaker Beep

Post

Posted
Rating:
#1 (In Topic #658)
Enthusiast
AndyGable is in the usergroup ‘Enthusiast’
Hi everyone,

I hope someone can help as this is a super simple question

When I try to use beep or system.beep I get a error message saying unknown

how do I get the system to make beep noise from the PC Speaker?
Online now: No Back to the top

Post

Posted
Rating:
#2
Guru
BruceSteers is in the usergroup ‘Guru’
 install beep
sudo apt-get install beep

then use shell in gambas to run it…
Shell "beep"
Online now: No Back to the top

Post

Posted
Rating:
#3
Regular
vuott is in the usergroup ‘Regular’

AndyGable said

When I try to use beep or system.beep I get a error message saying unknown
…obvious: ".Beep" is not a resource of the "System" Class.



BruceSteers said

then use shell in gambas to run it…
Shell "beep"

uhmmm… then maybe that might be enough:

Code (gambas)


Europaeus sum !

<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Online now: No Back to the top

Post

Posted
Rating:
#4
Avatar
Regular
stevedee is in the usergroup ‘Regular’
Getting your internal pc speaker (not speakers) to make a sound can be quite tricky.

Voutt's Print Char(7) should work
Using Screen.Print from gb.ncurses should work
Using Bruce's Shell Beep should work

…but none of these worked for me (in the few minutes that I spent trying them) and I think it may be because I need to enable pc speaker via my audio mixer. However, it does not show on my mixer…so good luck with this one!
Online now: No Back to the top
1 guest and 0 members have just viewed this.