ich weiss das es schon genug davon gibt.
Meine frage ist es wie lasse ich die animierten gifs wieder verschwinden schaut einfach mal in das beispiel ihr rein was ich meine
Spoiler anzeigen
#cs ----------------------------------------------------------------------------
Forum https://autoit.de/index.php?page…t=animierte+gif
#ce ----------------------------------------------------------------------------
#include <StaticConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <_AniGif.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 400, 453, 193, 125)
$pic = GUICtrlCreatePic(@ScriptDir & "\wonderland07.gif",0, 0, 400, 250,BitOR($WS_GROUP,$WS_CLIPSIBLINGS))
GUICtrlSetState(-1,$GUI_Hide)
$Pic1 = _animgif("filme28.gif",0,$Form1,0,340)
GUISetBkColor(0xFFFFFF)
$Label1 = GUICtrlCreateLabel("Filmstudios", 140, 72, 300, 17)
GUICtrlSetFont(-1, 50, 800, 2, "WST_Span")
GUICtrlSetBkColor(-1, 0xFFFBF0)
$Pic3 = GUICtrlCreatePic("filme24.gif",10,250, 54, 84, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUICtrlSetCursor (-1, 0)
GUICtrlSetState(-1,$GUI_Hide)
$Pic4 = GUICtrlCreatePic("filme25.gif",325,250, 54, 84, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUICtrlSetCursor (-1, 0)
GUICtrlSetState(-1,$GUI_Hide)
$Pic5 = GUICtrlCreatePic("zaun_21.gif",0,390, 505, 25, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUICtrlSetCursor (-1, 0)
$Pic6 = GUICtrlCreatePic("urlaub_74.gif",0,250, 100, 120, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUICtrlSetCursor (-1, 0)
;GUICtrlCreatePic("", 0, 0, 628, 372, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Button1 = GUICtrlCreateButton("ACTION", 150, 300, 75, 25, 0)
$Button2 = GUICtrlCreateButton("Cat",150, 300, 75, 25, 0)
GUICtrlSetState(-1,$GUI_Hide)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg(1)
Switch $nMsg[1]
Case $Form1
Switch $nMsg[0]
Case $GUI_EVENT_CLOSE
Exit
case $Button1
MsgBox(64, "Achtung", "Kamara läuft")
GUICtrlSetState($Button1,$GUI_Hide)
GUICtrlSetState($pic,$GUI_Show)
GUICtrlSetState($Pic6,$GUI_Hide)
GUICtrlSetState($Label1,$GUI_Hide)
GUICtrlSetState($Pic3,$GUI_Show)
GUICtrlSetState($Pic4,$GUI_Show)
GUICtrlSetState($Button2,$GUI_Show)
$Pic2=_animgif("affe17.gif",0,$Form1, 90,140)
case $Button2
MsgBox(64, "Achtung", "Cat bitte nochmal")
GUICtrlSetState($Label1,$GUI_Show)
GUICtrlSetState($Pic6,$GUI_Show)
GUICtrlSetState($Button1,$GUI_Show)
GUICtrlSetState($Button2,$GUI_Hide)
GUICtrlSetState($Pic,$GUI_Hide)
GUICtrlSetState($Pic3,$GUI_Hide)
GUICtrlSetState($Pic4,$GUI_Hide)
GUICtrlSetState($Pic2,$GUI_Hide)
EndSwitch
EndSwitch
WEnd
Ps bilder für diese beispiel sind im download drin sowie die _AniGif.au3 & die ani_gif.dll.
bild 3 muss so wie bild 1 dann wieder aussehen bekomme das aber nicht hin mit GUICtrlSetState("",$GUI_Hide) ,GUICtrlSetState("",@sw_Hide) alles schon durch probiert