Pour rendre plus agreable un script j'ai voulu colorié certain bouton et inputbox
mais le comportement du bouton provoque un rebond comme si il était cliqué 2 fois ( tester l'exemple ci dessous )
dans mon appli c'est plusieurs fois je suis obligé de sortir du script
Code : Tout sélectionner
#include <GuiConstants.au3>
GuiCreate("coloration d'un bouton c'est zarbi ",700, 510)
GUISetState ()
$quitter = GUICtrlCreateButton(" QUITTER", 590, 270, 100, 30)
$pingip = GuiCtrlCreateInput(@IPAddress1, 164, 224, 100, 20)
GUICtrlSetBkColor(-1,0xFFBFFF)
$pingipbt = GUICtrlCreateButton("PING de l'adresse -----> ", 10, 220, 150, 30)
;~ GUICtrlSetBkColor($pingipbt,0XEE82EE)
;~ GUICtrlSetBkColor($pingipbt,0x00ff00)
;~ GUICtrlSetBkColor($pingipbt,0XFF00FF)
GUICtrlSetBkColor($pingipbt,0XFFFF00)
; debut boucke ************************************************
Do
$msg = GUIGetMsg()
if $msg=$pingipbt then
MsgBox(4096,"","test du bouton ping "&$msg)
EndIf
Until $msg = $GUI_EVENT_CLOSE or $msg = $quitter
merci
a+ jl56