BEEP method (System)
Description
Method to play a Windows system sound.
Syntax
Call Exec_Method( "SYSTEM", "BEEP", SoundID )
Parameters
Name | Required | Description | |||
---|---|---|---|---|---|
SoundID | No | Identifies the sound to play. This is a numeric value that corresponds to one of the standard Windows system sounds. | Sound | Value | Equated to |
OK | 0x00 | MB_OK$ | |||
Stop | 0x10 | MB_ICONSTOP$ | |||
Question | 0x20 | MB_ICONQUESTION$ | |||
Warning | 0x30 | MB_ICONWARNING$ | |||
Information | 0x40 | MB_ICONFORMATION$ |
The default is "OK" (MB_OK$)|
Returns
N/A
Remarks
This method is a simple wrapper around the Windows API MessageBeep function so further information on this can be found on the MSDN website.
Equated constants for use with the BEEP method can be found in the MSWIN_MESSAGEBOX_EQUATES insert record.
See Also
N/A
Example
// Emit the Windows Warning sound $Insert MSWin_MessageBox_Equates Call Exec_Method( "SYSTEM", "BEEP", MB_ICONWARNING$ )