Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Execution of commands one after the other
Message
De
16/04/2008 21:02:44
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01310723
Message ID:
01311328
Vues:
21
I picked some code from "Play multimedia files using MCI commands" (in Windows API section)


>>>>I know how to play videos in fox.
>>>>
>>>>I want a video to play and when it's finished I want to display a form.
>>>>
>>>>Right now the form appears before the video's finished.
>>>>
>>>>How can I make sure that commands will be processed only after my video's finished?
>>>>
>>>>I want to do this without using a timer.
>>>
>>>How you play video?
>>
>>I borrowed some code from the samples. It's all in there.
>
>Which one?
>If you used "Play an AVI file in an ActiveX control" sample take a look in Done Event of the VCR control.
>
>*** OLE Control Event ***
>LPARAMETERS notifycode
>
>*!* If we are done playing the AVI, then loop
>*!* Back to the beginning and start playing it again.
>IF notifycode = 1
>   This.Object.From = 0
>   This.Object.Command = "SEEK"
>   This.Object.Command = "PLAY"
>ENDIF
>
>
>So that is your event to check when the movie is finished
>
>*** OLE Control Event ***
>LPARAMETERS notifycode
>
>IF notifycode = 1
>   DO FORM .....
>ENDIF
>
*******************************************************
Save a tree, eat a beaver.
Denis Chassé
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform