Jump to content
Sign in to follow this  

Help with Playing a Quicktime Movie

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
  GUICtrlDelete( $qtcontrol )
  $oQT = 0

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?

Share this post

Link to post
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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.