Jump to content

Help with Playing a Quicktime Movie


kwacky1
 Share

Recommended Posts

I've got a very simple function to play a quicktime file in my gui program, however the problem is,

how do I tell autoit to wait around while the movie is playing?

Func PlayQT( $moviefile )
  Dim $oQT, $qtcontrol
  $oQT = ObjCreate("QTOControl.QTControl")
  $qtcontrol = GUICtrlCreateObj($oQT, (@DesktopWidth/2)- 320, (@DesktopHeight/2)- 240, 640, 480)
  $oQT.URL = $moviefile
  $oQT.Movie.Play
    
  GUICtrlDelete( $qtcontrol )
  $oQT = 0
EndFunc

I've searched high and low, and there is very little documentation (and none useful ) on the QTOControl.QTControl activex control and it's methods and properties.

All I want is to wait until the movie is finished playing and move on when either the movie finishes playing or the user presses a key?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...