Sign in to follow this  
Followers 0
Thornhunt

AVI problem. simple but blind

3 posts in this topic

#1 ·  Posted (edited)

i know its simple but i cant see what is wrong :/

yehh i know the variables are long ect ect.. its poor programming but its just a skeleton to be worked on so dont get all picky please.

#region#####cinimatics startup#####

$GUIcinimaticstart = GUICreate("movie", 1024, 768, 0, 0,$WS_POPUP)

GUISetBkColor(0x000000)

$cinimaticstartavi = _GUICtrlAVI_Create($GUIcinimaticstart, @ScriptDir & "\data\mvs\Duty.avi", -1,0,0,1024,768)

GUISetState()

SLEEP(1000)

_GUICtrlAVI_Play ($cinimaticstartavi)

sleep(1000)

#endregion

this is showing naff all . i have tried the

$ani1 = GUICtrlCreateAvi(@Sys...

way but that returns a error about the file being corrupt ect. can anyone please help me here or point to me were i am going wrong ?

//edit OMG i need to get some sleep.. my spellign atroutious.. >.< and now im resulting back to caveman programming :/

Edited by Thornhunt

Budweiser + room = warm beerwarm beer + fridge = too long!warm beer + CO2 fire extinguisher = Perfect![quote]Protect the easly offended ... BAN EVERYTHING[/quote]^^ hmm works for me :D

Share this post


Link to post
Share on other sites



Here's what worked for me. I chanegd some things around but you should be able to grok the solution. I think it's the way you handle showing the GUI. Sorry for my delayed response.

#include <GuiAVI.au3>
#include <WindowsConstants.au3>
#include <AVIConstants.au3>

HotKeySet("{ESC}", "term")

#region#####cinimatics startup#####
$GUICinematicStart = GUICreate("Movie", 400, 400, -1, -1, $WS_POPUP)

GUISetBkColor(0x000000)

$CinematicStartAvi = _GUICtrlAVI_Create($GUICinematicStart, @DesktopDir & "\FlickAnimation.avi", -1, 0, 0, 400, 400, $ACS_AUTOPLAY + $ACS_CENTER)

GUISetState()

_GUICtrlAVI_Play($CinematicStartAvi)

While 1
    Sleep(100)
WEnd
#EndRegion#####cinimatics startup#####

Func term()
    _GUICtrlAVI_Destroy($GUICinematicStart)
    Exit
EndFunc

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  
Followers 0