Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Execution of commands one after the other
Message
From
16/04/2008 21:02:44
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
01310723
Message ID:
01311328
Views:
20
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é
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform