Skip to main content
Open topic with navigation CAPL Functions » General » Function Overview » msgBeep

msgBeep

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE Note: If the specified sound type (e.g. MB_ICONHAND) cannot be played, the standard beep (computer speaker) is used. The beep must be activated on the Windows panel to do this!

Function Syntax

void msgBeep (long soundType);

Description

The msgBeep function plays back a sound predefined by the Windows system. It replaces the previous beep function.

Parameters

  • soundType: Integer for the predefined sound. Specifically these are:
    • 0: MB_ICONASTERISK SystemAsterisk
    • 1: MB_ICONEXCLAMATION SystemExclamation
    • 2: MB_ICONHAND SystemHand
    • 3: MB_ICONQUESTION SystemQuestion
    • 4: MB_OK SystemDefault
    • 5: Standard beep using the computer speaker (default)

Return Values

Example

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