Jump to content

Recommended Posts

Posted (edited)

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
Wend

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
Posted

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

#include<aviConstants.au3>
#include<GuiConstantsEx.au3>
#include<windowsConstants.au3>
$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))
GUISetState()
While 1
   ;; You better do something to get you out of this loop
WEnd

George

  Reveal hidden contents
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:3.0.1.13) - 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!"

Posted (edited)

Awesome it worked :(

Thanks so much.

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

post-55807-12664566261481_thumb.jpg

Edited by dirty

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
  • Recently Browsing   0 members

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