PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
MCIStatus (Function)
In French: MCIEtat
Returns the status of a multimedia file that was opened beforehand (MCIOpen).
Example
MCIOpen("Sound.wav", "MySound")
...
IF MCIStatus("MySound") = MciStatusPause THEN
MCIBeginning("MySound")
MCIPlay("MySound")
END
...
MCIClose("MySound")
Syntax
<Result> = MCIStatus(<Multimedia File or Alias> [, <Parameters> [, <Name of Message Window>]])
<Result>: Character String constant
File status (see the table below) or empty string if an error occurred. To find out the error number, use MCIErr. To find out the error details, use MCIMsgErr or ErrorInfo associated with the errMessage constant.
The status report of the command is returned by MCIRetrieve.
MciStatusStopThe file is stopped
MciStatusRecordThe file is currently recorded
MciStatusPlayThe file is opened and it is currently played
MciStatusOpenFile opened only.
MciStatusParkedThe player is parked: the player heads parked.
MciStatusNotReadyDrive not ready (no CD in the drive for example)
MciStatusPauseThe file is paused
MciStatusSeekFind/seek in progress in the file
<Multimedia File or Alias>: Character string (with quotes)
Name of multimedia file to use (AVI, MP3, ...) or alias defined when opening the file (MCIOpen).
<Parameters>: Optional character string (with quotes)
Additional parameters if necessary. These parameters can be known by checking the documentation of the Windows MCI function named "status".
The MciWait constant can be added to this string. This constant is used to indicate that the program must wait for the end of the MCI command to run the rest of application.
<Name of Message Window>: Optional character string (with or without quotes)
Name of window used to intercept and manage the different messages sent by MMSYSTEM.DLL. These messages are in MM_xxxxxx format and they can be retrieved via Event. You can for example get messages regarding the management of the CD ROM or Joystick.
Components
WINDEVReports and Queries wd230std.dll
See also
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment