MULTIBOXING COMMANDS

PlaySound

Plays a wav file.

Syntax

PlaySound ( file )

Parameters

File is the complete (fully-qualified) pathname of a wav file.

Examples

Hotkey ( F1 )
{
   PlaySound ( "c:\death-rattle.wav" )
}

Remarks

This command can be used to provide audio feedback when you perform actions with hotkeys. For example, you could play distinctive sounds when you turn hotkeys off and when you turn them on.

The Beep command is used the same way as this one, but PlaySound sounds better. Beep can be simpler to use because it doesn’t require files.

Technical

This command causes Mojo to call the Windows API function PlaySound with the following arguments:

PlaySound ( file, NULL, 
   SND_FILENAME | SND_ASYNC );

Related

Beep

Synth

This page was first published on January 17, 2018 and last modified on January 19, 2018