Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.79 KB | None | 0 0
  1. #include <ButtonConstants.au3>
  2. #include <GUIConstantsEx.au3>
  3. #include <WindowsConstants.au3>
  4.  
  5. Opt("GUIOnEventMode", 1)
  6.  
  7. $gui1 = GUICreate("GUI-1", 259, 46)
  8. GUISetOnEvent($GUI_EVENT_CLOSE, "_exit")
  9. $Button1 = GUICtrlCreateButton("zu GUI-1", 8, 8, 75, 25, $WS_GROUP)
  10. GUICtrlSetState(-1, $GUI_DISABLE)
  11. $Button2 = GUICtrlCreateButton("zu GUI-2", 88, 8, 75, 25, $WS_GROUP)
  12. GUICtrlSetOnEvent(-1, "_show2")
  13. $Button3 = GUICtrlCreateButton("zu GUI-3", 168, 8, 75, 25, $WS_GROUP)
  14. GUICtrlSetOnEvent(-1, "_show3")
  15. GUISetState(@SW_SHOW)
  16.  
  17. $gui2 = GUICreate("GUI-2", 259, 46)
  18. GUISetOnEvent($GUI_EVENT_CLOSE, "_exit")
  19. $Button1 = GUICtrlCreateButton("zu GUI-1", 8, 8, 75, 25, $WS_GROUP)
  20. GUICtrlSetOnEvent(-1, "_show1")
  21. $Button2 = GUICtrlCreateButton("zu GUI-2", 88, 8, 75, 25, $WS_GROUP)
  22. GUICtrlSetState(-1, $GUI_DISABLE)
  23. $Button3 = GUICtrlCreateButton("zu GUI-3", 168, 8, 75, 25, $WS_GROUP)
  24. GUICtrlSetOnEvent(-1, "_show3")
  25. GUISetState(@SW_HIDE)
  26.  
  27. $gui3 = GUICreate("GUI-3", 259, 46)
  28. GUISetOnEvent($GUI_EVENT_CLOSE, "_exit")
  29. $Button1 = GUICtrlCreateButton("zu GUI-1", 8, 8, 75, 25, $WS_GROUP)
  30. GUICtrlSetOnEvent(-1, "_show1")
  31. $Button2 = GUICtrlCreateButton("zu GUI-2", 88, 8, 75, 25, $WS_GROUP)
  32. GUICtrlSetOnEvent(-1, "_show2")
  33. $Button3 = GUICtrlCreateButton("zu GUI-3", 168, 8, 75, 25, $WS_GROUP)
  34. GUICtrlSetState(-1, $GUI_DISABLE)
  35. GUISetState(@SW_HIDE)
  36.  
  37. While 1
  38.     Sleep(100)
  39. WEnd
  40.  
  41. Func _show1()
  42.     GUISetState(@SW_HIDE, $gui2)
  43.     GUISetState(@SW_HIDE, $gui3)
  44.     GUISetState(@SW_SHOW, $gui1)
  45. EndFunc   ;==>_show1
  46.  
  47. Func _show2()
  48.     GUISetState(@SW_HIDE, $gui1)
  49.     GUISetState(@SW_HIDE, $gui3)
  50.     GUISetState(@SW_SHOW, $gui2)
  51. EndFunc   ;==>_show2
  52.  
  53. Func _show3()
  54.     GUISetState(@SW_HIDE, $gui1)
  55.     GUISetState(@SW_HIDE, $gui2)
  56.     GUISetState(@SW_SHOW, $gui3)
  57. EndFunc   ;==>_show3
  58.  
  59. Func _exit()
  60.     Exit
  61. EndFunc   ;==>_exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement