alors voila jai fait ça
Code : Tout sélectionner
#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=c:\program files\autoit3\scite\koda\forms\form1.kxf
$Form1_1 = GUICreate("Form1", 286, 345, 184, 125)
$Button1 = GUICtrlCreateButton("Button1", 8, 56, 129, 49, 0)
$Button3 = GUICtrlCreateButton("Button3", 8, 112, 129, 49, 0)
$Button4 = GUICtrlCreateButton("Button4", 8, 168, 129, 49, 0)
$Button2 = GUICtrlCreateButton("Button2", 144, 56, 129, 49, 0)
$Button5 = GUICtrlCreateButton("Button5", 144, 112, 129, 49, 0)
$Button6 = GUICtrlCreateButton("Button6", 144, 168, 129, 49, 0)
$Input1 = GUICtrlCreateInput("Input1", 8, 224, 265, 21)
$Label1 = GUICtrlCreateLabel("Label1", 16, 8, 36, 17)
$Icon1 = GUICtrlCreateIcon("", 0, 168, 0, 97, 49, BitOR($SS_NOTIFY,$WS_GROUP))
$Label2 = GUICtrlCreateLabel("Label2", 8, 248, 36, 17)
$Radio1 = GUICtrlCreateRadio("Radio1", 24, 304, 17, 17)
$Radio2 = GUICtrlCreateRadio("Radio2", 160, 304, 17, 17)
$Label3 = GUICtrlCreateLabel("Label3", 8, 280, 36, 17)
$Label4 = GUICtrlCreateLabel("Label4", 48, 304, 36, 17)
$Label5 = GUICtrlCreateLabel("Label5", 184, 304, 36, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func $Button1
While $Button1
PixelSearch ( $left, $top, $right, $bottom, $color
If Not @error Then
Sleep ( 500 )
Send ( "{F4}" )
Sleep ( 5000 )
Send ( "{F3}" )
Sleep ( 1000 )
Send ( "{F4}" )
EndIf
WEnd
EndFunc
merci d'avance
P.S. : je n'ai pas encore fait les GUICtrlCreateRadio