Je préfère OnEvent qui est plus logique je trouve mais je ne comprends pas pourquoi la MsgBox du Button1 ne s'allume pas au click ><
Voici mon code :
Code : Tout sélectionner
#include <GUIConstants.au3>
Opt("GUIOnEventMode", 1)
$Form1 = GUICreate("FC Leveler By anerax", 259, 92, 193, 125)
$Label1 = GUICtrlCreateLabel("Mode : Arrêt", 104, 8, 62, 17)
$Button1 = GUICtrlCreateButton("START", 24, 32, 217, 49, 0)
GUISetState(@SW_SHOW)
GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked")
GUISetOnEvent($Button1, "CLICKButton")
While 1
Sleep(1000)
WEnd
Func CLICKButton()
MsgBox(0,"yrdy","test")
EndFunc
Func CLOSEClicked()
Exit
EndFunc


