THanks ..
If i have a while in it how can the button 2 stop it ?
Sry i'm new with the Gui's Functions...
#include <GUIConstantsEx.au3>
hah()
Func Hah()
Local $Button_1, $Button_2 , $button_3, $msg
GUICreate("BomBom , ChaCha")
Opt("GUICoordMode", 2)
$Button_1 = GUICtrlCreateButton("Activating", 10, 8, 125)
$Button_2 = GUICtrlCreateButton("Desactivating/Pause", 0, -1)
$hLabel = GUICtrlCreateLabel("Daw 1", 10, 30) ; added this to create the label outside of the loop
GUISetState()
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop ; It Doesnt work anymore too.
Case $msg = $Button_1
While 1
sleep(1)
Wend
;~ GUICtrlCreateLabel("Daw 1", 10, 30)
GUICtrlSetData($hLabel,"Daw 1") ; added this to change label value to 'Daw 1'
Case $msg = $Button_2
GUICtrlSetData($hLabel,"Daw 2") ; added this to change label value to 'Daw 2'
EndSelect
wend
EndFunc