Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #cs ----------------------------------------------------------------------------
- AutoIt Version : 3.3.6.0
- Auteur: MonNom
- Fonction du Script :
- Modèle de Script AutoIt.
- #ce ----------------------------------------------------------------------------
- ; Début du script - Ajouter votre code ci-dessous.
- #include <ButtonConstants.au3>
- #include <GUIConstantsEx.au3>
- #include <WindowsConstants.au3>
- ;Création de la premiere fenetre
- $GUI1 = GUICreate("CheckBox", 200, 200, 300, 200)
- $CheckBox = GUICtrlCreateCheckbox("Aller dans la deuxième fenêtre.", 100,100)
- $BoutonOK1 = GUICtrlCreateButton("OK", 100, 150)
- GUISetState(@SW_SHOW)
- ;Création de la seconde fenêtre
- $GUI2 = GUICreate("RadioBox", 200, 200, 300, 200)
- $RadioBox = GuiCtrlCreateRadio("Fermer la fenêtre.", 100, 100)
- $BoutonOK2 = GUICtrlCreateButton("OK", 100, 150)
- GUISetState(@SW_HIDE)
- While 1
- Switch GUIGetMsg()
- Case $CheckBox
- Switch GUICtrlRead($CheckBox)
- Case $GUI_CHECKED
- MsgBox(0,"","C'est coché")
- Case $GUI_UNCHECKED
- MsgBox(0,"","C'est pas coché")
- EndSwitch
- Case $GUI_EVENT_CLOSE
- Exit
- EndSwitch
- Wend
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement