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
MCIPosition (Function)
In french: MCIPosition
Returns or modifies the current position in a multimedia file that was opened beforehand (MCIOpen).
Example
MCIOpen("Son.wav", "MonSon")
...
MCIPlay("MonSon")
...
MCIPosition("MonSon", 10)
...
MCIClose("MonSon")
Syntax

Modifying the position in the file Hide the details

<Result> = MCIPosition(<Multimedia file or alias> , <Position> [, <Parameters> [, <Name of message window>]])
<Result>: Boolean
  • True if the position was set,
  • False otherwise. To find out the error number, use MCIErr.
    To find out the wording of the error, use function MCIMsgErr or function ErrorInfo with the constant errMessage.
    The status report of command is returned by MCIRetrieve.
<Multimedia file or alias>: Character string
Name of multimedia file to use (AVI, MP3, ...) or alias defined when opening the file (MCIOpen).
<Position>: Character string (with quotes)
New position in the file. This position is expressed in the format specified by MCIPositionFormat.
<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 "seek".
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 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.

Finding out the position in the file Hide the details

<Result> = MCIPosition(<Multimedia file or alias> [, <Name of message window>])
<Result>: Character string
Position in the file. This position is expressed in the format specified by MCIPositionFormat.
<Multimedia file or alias>: Character string
Name of multimedia file to close (AVI, MP3, ...) or alias defined when opening the file (MCIOpen).
<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 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
Once MCIPosition has been used, to make sure that the positioning was performed, we recommend that you use the following code line:
TANTQUE MCIEtat(<Fichier ou alias>) <> MCIEtatArrêt
FIN
Component: wd260std.dll
See also
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment