CAPL Script

MsgBeep

This reference collection includes Vector documentation reproduced with permission. Snippets may require configuration-specific symbols and are not all standalone programs. Sources and validation limits.

Note If the specified sound type (e.g. MB_ICONHAND) cannot be played, the standard beep (PC speaker) is used. The beep must be activated on the Windows control panel to do this!

Syntax

void msgBeep (long soundType)

Function

ThemsgBeepfunction plays back a sound predefined by the Windows system. It replaces the previousbeepfunction.

Parameters

soundType Integer for the predefined sound. Specifically these are:

Return Values

—

Reference example from the CANoe 12 help. Check the required configuration, database objects and API availability in your installed version; this is not a recorded compiler or runtime test.

void sound() {
// Standard signal question
msgBeep (3);
}

write | writeToLog