SoundBeep
Emits a tone from the PC speaker.
SoundBeep Frequency, Duration
Command Example: SoundBeep 1000, 10 Function Example: SoundBeep(1000, 10)
Parameters
- Frequency
The frequency of the sound. It should be a number between 37 and 32767. If omitted, the frequency will be 523.
- Duration
The duration of the sound, in milliseconds. If omitted, the duration will be 150.
Remarks
The script waits for the sound to finish before continuing. In addition, system responsiveness might be reduced during sound production.
If the computer lacks a sound card, a standard beep is played through the PC speaker.
To produce the standard system sounds instead of beeping the PC Speaker, see the asterisk mode of SoundPlay.
Related
Example
SoundBeep ; Play the default pitch and duration. SoundBeep, 750, 500 ; Play a higher pitch for half a second.