Table of Contents

BEEP method (System)

Description

Method to play a Windows system sound.

Syntax

Call Exec_Method( "SYSTEM", "BEEP", SoundID )

Parameters

NameRequiredDescription
SoundIDNoIdentifies the sound to play. This is a numeric value that corresponds to one of the standard Windows system sounds.

SoundValueEquated to
OK0x00MB_OK$
Stop0x10MB_ICONSTOP$
Question0x20MB_ICONQUESTION$
Warning0x30MB_ICONWARNING$
Information0x40MB_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$ )