PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
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
Runs an MCI command (Media Control Interface).
Example
// Ouverture du fichier "C:\MesFichiers\Fichier.AVI"
// dans le champ Image "IMG_ImageAVI"
ResExécuteMCI = MCIExécute("Open C:\MesFichiers\Fichier.AVI" + ...
"Alias AVI Style Child Parent" + Handle(IMG_ImageAVI))
ResExécuteMCI2 = MCIExécute("Play AVI Notify")
// Lancer une vidéo "C:\MesFichiers\Fichier.AVI" en mode répétition
// Ouverture de la vidéo
MCIOpen("C:\MesFichiers\Fichier.AVI", "AVI", MciStyleChild, IMG_Vidéo, MciModeNormal)
// Exécution de la vidéo
MCIExécute("Play AVI repeat")
Syntax
<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 (with quotes)
MCI command to run.
The different MCI commands can be accessed with Windows via the MMSYSTEM DLL. This library, supplied by Microsoft, contains all the functions required to exploit the multimedia devices. See the Microsoft documentation for more details.
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 (with or without quotes)
Name of window used to intercept and manage the different messages sent by MMSYSTEM.DLL. These messages are of type MM_xxxxxx and can be retrieved using function Event. You can for example get messages regarding the management of the CD ROM or Joystick.
Remarks
The result of the MCI command is returned by MCIRetrieve.
Component: wd260std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment