Exemple :
Code : Tout sélectionner
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Autoit", 224, 101, 192, 124)
$Button1 = GUICtrlCreateButton("Bouton", 16, 16, 187, 65)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Merci d'avance
PS : Je connais les bases : MouseMove, MouseClick, If...
PS²: Je ne maîtrise pas les Func