Executes a Mci (Multimedia Control Interface) command.
err = Mci[$](cmd$ [, formvar])
cmd$sexp
wininteger expression
Mci$(cmd$) executes a Mci command (as Mci$("status id mode")). An error (in the command string, or any other error) is not reported with a message box, but returned as result err. (-1 if the mmsystem could not be found).
With mciErr$(err) you get the descriptive error text which would have been displayed for the Mci command.
Mci$(cmd$, formvar) Does the same as Mci$(sexp). The window (form object) given in integer expression (Win_1) gets a MM_MCINOTIFY message ($3b9) when the mci command finished execution (dummy$=Mci$("play id notify",Win_1)).
The MM_MCINOTIFY message can be handled in Win_1_MciNotify(devID%, Code%) event sub.
The MM_MCINOTIFY message ($3b9). The Code% is returned in wParam.
wParam=1 - Mci command aborted
wParam=2 - Mci command successful
wParam=4 - Mci superseded by a new notify command
wParam=8 - Mci error, not reported when using Mci$()
LoWord(lParam) = Device ID (devID%) sending the message.
(the notify message is not sent, if the Mci returned an error in _EAX.)
{Created by Sjouke Hamstra; Last updated: 12/05/14 by James Gaite}