Plays a MID or RMI sound file.
PlayMidi (filename, mode)
(s) filename name of the MID or RMI sound file.
(i) mode play mode (see below).
(i) @TRUE if successful; @FALSE if unsuccessful.
If Windows multimedia sound extensions are present, and MIDI-compatible hardware is installed, this function will play a MID or RMI sound file. If "filename" is not in the current directory and a directory is not specified, the path will be searched to find the file.
If "mode" is set to 0, the WIL program will wait for the sound file to complete before continuing. If "mode" is set to 1, it will start playing the sound file and continue immediately.
PlayMidi("C:\windows\media\canyon.mid", 1) Message("PlayMidi","Midi Played")