#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.1.0 (beta)
 Author:     Sirocool
 Author:     Jam00
 Script Function:
	Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here
#include <StaticConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Include <_Ani.au3>
$pic = "Animation3.gif"
$pic1 = "filme24.gif"
$pic2 = "filme25.gif"
#Region ### START Koda GUI section ### Form=
$gui = GUICreate("Form1", 400,450, -1,-1)
$Button1 = GUICtrlCreateButton("Hide", 0, 425, 75, 25, 0)
$Button2 = GUICtrlCreateButton("Show", 80, 425, 75, 25, 0)
$Pause = GUICtrlCreateButton("||", 160, 425, 75, 25, 0)
$pic1 = GUICtrlCreateGif($gui, $Pic1,0,340,54, 84) ;ohne ex zeht es so aus 
$pic2 = GUICtrlCreateGif($gui, $Pic2,350,340,41, 76) ;ohne ex zeht es so aus 
$Gif = GUICtrlCreategifex($gui,$pic,0,0);mit ex zieht es so aus und geht kein show  und hide mehr
;$Gif = GUICtrlCreateGif($gui, $Pic,0,0 ,170, 129) ;ohne ex zeht es so aus 
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###



$State = 0
While 1
	Switch GUIGetMsg ()
		Case $Pause
			If $State = 1 Then
				_Ani_PauseAnimation (0, $Gif)
				GUICtrlSetData ($Pause,"Pause")
				$State = 0
			Else
				$State = 1
				_Ani_PauseAnimation (1, $Gif)
				GUICtrlSetData ($Pause,"Play")
			EndIf
		Case $Button1
             GUICtrlSetState($Pic1,$GUI_Hide)			
             GUICtrlSetState($Pic2,$GUI_Hide)
	   Case $Button2
			GUICtrlSetState($Pic1,$GUI_Show)			
			GUICtrlSetState($Pic2,$GUI_Show)
             
		Case -3
			Exit
	EndSwitch
WEnd






