Creates an AVI video control for the GUI.
GUICtrlCreateAvi ( filename, subfileid, left, top [, width [, height [, style = -1 [, exStyle = -1]]]] )
To obtain the value of the control see GUICtrlRead().
To set or change information in the control see GUICtrlUpdate...() functions.
To start the video as soon as the control is created use the $ACS_AUTOPLAY style.
You can can start and stop the animation by setting the state to 1 or 0 with GUICtrlSetState(). See example.
To combine styles with the default style use BitOR($GUI_SS_DEFAULT_AVI, newstyle, ... ).
To use the values specified above you must #include <AVIConstants.au3> in your script.
Default resizing is $GUI_DOCKSIZE.
GUICoordMode (option), GUICtrlUpdate..., GUIGetMsg
#include <GUIConstantsEx.au3>
Example()
Func Example()
; Create a GUI with various controls.
Local $hGUI= GUICreate ("Example",300,200)
; Create an animation control.
Local $idAvi_Animation= GUICtrlCreateAvi (@SystemDir &"\shell32.dll",165,15,0,300)
Local $idBtn_Start= GUICtrlCreateButton ("Start",60,150,85,25)
Local $idBtn_Stop= GUICtrlCreateButton ("Stop",160,150,85,25)
; Display the GUI.
GUISetState (@SW_SHOW ,$hGUI)
; Loop until the user exits.
While 1
Switch GUIGetMsg ()
Case $GUI_EVENT_CLOSE
ExitLoop
Case $idBtn_Start; Start the animation.
GUICtrlSetState ($idAvi_Animation,$GUI_AVISTART)
Case $idBtn_Stop; Stop the animation.
GUICtrlSetState ($idAvi_Animation,$GUI_AVISTOP)
EndSwitch
WEnd
; Delete the previous GUI and all controls.
GUIDelete ($hGUI)
EndFunc ;==>Example