Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Execution of commands one after the other
Message
 
À
15/04/2008 11:27:29
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:
01310738
Vues:
21
>>>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
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform