je voudrait que quand on clic qur bouton 2 pendant le sleep(10000) que le scripte et le programme se ferme tu comprend
► Afficher le texte
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=c:\users\silvere\desktop\form1.kxf
$Form1_1 = GUICreate("Form1", 692, 170, 246, 157)
GUISetCursor (0)
$Button1 = GUICtrlCreateButton("Button2", 16, 8, 137, 137, $BS_BITMAP, $WS_EX_CLIENTEDGE)
GUICtrlSetImage(-1, "C:\Users\Silvere\Desktop\autoit\button_cancel copie.bmp", -1)
GUICtrlSetCursor (-1, 0)
$Button2 = GUICtrlCreateButton("Button1", 536, 8, 137, 137, $BS_BITMAP, $WS_EX_CLIENTEDGE)
GUICtrlSetImage(-1, "C:\Users\Silvere\Desktop\autoit\index.bmp", -1, 0)
GUICtrlSetCursor (-1, 0)
$Label1 = GUICtrlCreateLabel("Label1", 215, 32, 36, 17)
$Label2 = GUICtrlCreateLabel("Label2", 254, 120, 70, 36)
GUICtrlSetFont(-1, 20, 400, 0, "Vladimir Script")
GUICtrlSetCursor (-1, 2)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button2
Exit
Case $Button1
Run("notepad.exe")
Sleep(1000)
send( "Salut" )
Sleep(10000)
send( "quoi de neuf ?" )
EndSwitch
WEnd