drakar Posted March 31, 2007 Share Posted March 31, 2007 #include <GUIConstants.au3> GUICreate("Paramètre de la sonde", 275, 170, -1, -1) GUICtrlCreateLabel ("Tapez la période du cycle en minutes :", 10, 10) GUICtrlCreateLabel ("minutes", 226, 10) $input1 = GUICtrlCreateInput ("", 200, 9, 20, 20, $ES_NUMBER ) GUICtrlCreateLabel ("Tapez la durée du sondage en heure :", 10, 40) GUICtrlCreateLabel ("heures", 226, 41) $input2 = GUICtrlCreateInput ("", 200, 39, 20, 20, $ES_NUMBER) GUICtrlCreateLabel ("Choisissez le nombre d'enregistrement.", 10, 69) $input3 = GUICtrlCreateCombo ("10000", 10,89, 70, 20) GUICtrlSetData(-1,"100|10000|100000|500000"," ") GUICtrlCreateLabel ("Appuyer sur Ok pour lancer la sonde.", 10, 130) $btn = GUICtrlCreateButton ("Ok", 200, 127, 60, 20) GUISetState () ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE or $msg = $btn Then ExitLoop Wend MsgBox (0, "", GUICtrlRead($input1)) ***************** The combo box never close until end of program. have you an idea ? Link to comment Share on other sites More sharing options...
Developers Jos Posted March 31, 2007 Developers Share Posted March 31, 2007 Moved to support where questions belong.... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
improbability_paradox Posted March 31, 2007 Share Posted March 31, 2007 when you want the GUI to close, you need to use the command GUIDelete() If $msg = $GUI_EVENT_CLOSE or $msg = $btn Then GUIDelete() ExitLoop endif Link to comment Share on other sites More sharing options...
drakar Posted April 1, 2007 Author Share Posted April 1, 2007 when you want the GUI to close, you need to use the command GUIDelete() If $msg = $GUI_EVENT_CLOSE or $msg = $btn Then GUIDelete() ExitLoop endif It's good now. Thanks you, for your help... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now