Help / WLanguage / WLanguage functions / Standard functions / Windows functions / MCI functions
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
Runs an MCI command (Media Control Interface).
// Open the "C:\MyFiles\File.AVI" file
// in the "IMG_ImageAVI" Image control
ResExecuteMCI = MCIExécute("Open C:\MyFiles\File.AVI" + ...
"Alias AVI Style Child Parent" + Handle(IMG_ImageAVI))
ResExecuteMCI2 = MCIExécute("Play AVI Notify")
// Play a video "C:\MyFiles\File.AVI" in repeat mode
// Open the video
MCIOpen("C:\MyFiles\File.AVI", "AVI", MciStyleChild, IMG_Video, MciModeNormal)
// Play the video
MCIExécute("Play AVI repeat")
<Result> = MCIExecute(<Command to Run> [, <Window name>])
<Result>: Boolean
  • True if the MCI command was run,
  • False otherwise. To find out:
<Command to Run>: Character string
MCI command to run.
The different MCI commands can be accessed with Windows via the MMSYSTEM DLL. This library, provided by Microsoft, contains all the functions required to use media devices. For more details, see the Microsoft documentation.
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.
<Window name>: Optional character string
Name of the window used to intercept and manage the different messages sent by MMSYSTEM.DLL. These messages are in MM_xxxxxx format and can be retrieved with Event. You can for example get messages regarding the management of the CD ROM or Joystick.
The result of the MCI command is returned by MCIRetrieve.
Component: wd290std.dll
Minimum version required
  • Version 9
This page is also available for…
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help