Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #cs
- Code source du tuto http://www.dailymotion.com/video/xf3kqc_tuto-autoit-multi-gui-mode-messagel_tech#.UcttHsEi5po
- Tuto sur la création d'une MultiGUi en mode MessageLoop par ptifou78 aka Gr4ph0s/sea78
- #ce
- #include <ButtonConstants.au3>
- #include <GUIConstantsEx.au3>
- #include <WindowsConstants.au3>
- #Region ### START Koda GUI section ### Form=
- $GUI1 = GUICreate("GUI1", 489, 201, 690, 271)
- $but_1_gui = GUICtrlCreateButton("Big Button :P", 40, 24, 401, 145, $WS_GROUP)
- GUICtrlSetFont(-1, 36, 800, 0, "Myriad Pro")
- GUISetState(@SW_SHOW)
- #EndRegion ### END Koda GUI section ###
- While 1
- $nMsg = GUIGetMsg()
- Switch $nMsg
- Case $GUI_EVENT_CLOSE
- Exit
- Case $but_1_gui
- $GUI2 = GUICreate("GUI2", 461, 214, 192, 124)
- $but_ferme_GUI2 = GUICtrlCreateButton("Fermé notre 2e GUI", 48, 48, 377, 105, $WS_GROUP)
- GUICtrlSetFont(-1, 14, 400, 0, "Myriad Pro")
- GUISetState(@SW_SHOW)
- While 1
- $nMsg = GUIGetMsg(1)
- Select
- Case $nMsg[0] = $GUI_EVENT_CLOSE AND $nMsg[1] = $GUI2
- GUIDelete($GUI2)
- ExitLoop
- Case $nMsg[0] = $GUI_EVENT_CLOSE AND $nMsg[1] = $GUI1
- Exit
- Case $nMsg[0] = $but_ferme_GUI2
- GUIDelete($GUI2)
- ExitLoop
- EndSelect
- WEnd
- EndSwitch
- WEnd
Advertisement
Add Comment
Please, Sign In to add comment