Function Reference


_WinAPI_MessageBeep

Plays a waveform sound

#include <WinAPI.au3>
_WinAPI_MessageBeep ( [$iType = 1] )

Parameters

$iType [optional] The sound type, as identified by an entry in the registry. This can be one of the following
values:
0 - Simple beep. If a sound card is not available, the speaker is used.
1 - OK
2 - Hand
3 - Question
4 - Exclamation
5 - Asterisk

Return Value

Success: True
Failure: False, call _WinAPI_GetLastError() to get extended error information

Remarks

After queuing the sound, the MessageBeep function returns control to the calling function and plays the sound
asynchronously. If it cannot play the specified alert sound, MessageBeep attempts to play the system default
sound. If it cannot play the system default sound, the function produces a standard beep sound through the
computer speaker.

See Also

Search MessageBeep in MSDN Library.