Jump to content
Sign in to follow this  

Cant get simple loading AVI to play

Recommended Posts


Guys please help. i am trying to have loading popped up windows showing me avi video but its not working.

Video is displaying as expected with transparency but its not playing at all.

#include <AVIConstants.au3>
#Include <GuiAVI.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
      $loading = GUICreate ("",52,60,-1,-1,$WS_POPUP)
      GUICtrlCreateAvi (@TempDir & "/Loading.avi",'',-1,-1)
     _GUICtrlAVI_Play ($loading,0,-1,-1)
      GUICtrlCreateLabel ("Please wait",-1,46)
      GUISetState (@SW_SHOW,$loading)
While 1

One other thing is: Is there anyway to make GUI invisible yet displaying all GUI components ? Kinda like transparent GUI ?

Thanks in advance

Edited by dirty

Share this post

Link to post
Share on other sites

You missed some parameters for GUICtrlCreateAVI(0 and you didn't need the _GUICtlrAvi_Play() which, by the way, should have used the control reference and not the Window for $hWnd which in my example would be $hAVI

$loading = GUICreate("", 52, 60, -1, -1, $WS_POPUP)
$hAVI = GUICtrlCreateAVI(@TempDir & "\Loading.avi", -1, 10, 10, 40, 40, BitOR($GUI_SS_Default_Avi, $ACS_AutoPlay))
While 1
   ;; You better do something to get you out of this loop


Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver: - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post

Link to post
Share on other sites

Awesome it worked :(

Thanks so much.

Dont worry about the loop, its just for being there :mellow:


Edited by dirty

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