The beep statement generates sounds used to attract the user’s attention.
beep sound_type
• sound_type – The constant specifying the sound to use. Use one of the following constants:
For Windows, the sounds that correspond to the three sound constants are set up in the Sounds control panel. The following table lists the sound constants and the corresponding event in the Sounds control panel.
Constant |
Windows event |
---|---|
ERRORSOUND |
Default sound |
WARNSOUND |
Question |
INFOSOUND |
Exclamation |
If your computer doesn’t have a sound card, you will get the default beep, regardless of the sound constant used. |