PlaySystemSound()

Syntax:

PlaySystemSound( Type )

Parameters:

Type – The name of the system sound you want to play. Type must be surrounded by quote marks and must be one of the Types described below – see Type options for more information. This parameter is required.

Remarks:

The PlaySystemSound function is used to play the sound file that has been set for specific system sounds, such as when an error message appears in your program. This function is useful because it uses sound files already on their system, furthermore, if a user has installed a desktop theme that has changed the normal system sounds to sounds of their own choosing, your publication will use the new sounds.

Type options:

The following system sounds should be placed in Type, these should be surrounded by quote marks and only one parameter is allowed per function:

PlaySystemSound("Default")  
PlaySystemSound("Asterisk")
PlaySystemSound("Question")
PlaySystemSound("Exclamation")
PlaySystemSound("Error")