also:
ich habe einen button ($Button1)
dann habe ich eine iconbox ($Icon1)
es hat am anfang ein bild was rot ist
wenn ich $Button1 klicke soll er von rot in grün umspringen
und ich kenne den code nicht dafür
Mein code:
#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("pic ändern", 162, 85, 193, 133)
$Button1 = GUICtrlCreateButton("green", 8, 8, 75, 25, 0)
$Button2 = GUICtrlCreateButton("red", 80, 8, 75, 25, 0)
$Icon1 = GUICtrlCreateIcon("C:\Users\Nico\Desktop\Bots von Nico001\Metin2 Maphack-tool by Nico001\Bilder\aus.nic", 0, 64, 40, 37, 37)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$Icon1 = GUICtrlCreateIcon("C:\Users\Nico\Desktop\Bots von Nico001\Metin2 Maphack-tool by Nico001\Bilder\aus.nic", 0, 64, 40, 37, 37)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$Icon1 = GUICtrlCreateIcon("C:\Users\Nico\Desktop\Bots von Nico001\Metin2 Maphack-tool by Nico001\Bilder\an.nic", 0, 64, 40, 37, 37)
$Icon1 = GUICtrlCreateIcon("C:\Users\Nico\Desktop\Bots von Nico001\Metin2 Maphack-tool by Nico001\Bilder\aus.nic", 0, 64, 40, 37, 37)
Case $Button2
$Icon1 = GUICtrlCreateIcon("C:\Users\Nico\Desktop\Bots von Nico001\Metin2 Maphack-tool by Nico001\Bilder\aus.nic", 0, 64, 40, 37, 37)
EndSwitch
WEnd
er ändert zwar das bild aber wen ich jez z.B einen tabsheet mache ist es auch in tabsheet 2

pls help!