Share Pastebin
Guest
Public paste!

SEuBo

By: a guest | Mar 18th, 2010 | Syntax: AutoIt | Size: 0.50 KB | Hits: 104 | Expires: Never
Copy text to clipboard
  1. $hGUI = GUICreate("")
  2. GUICtrlCreateLabel("ich bin gui 1!!!",20,20,200,20)
  3. $hButton = GUICtrlCreateButton("Geh mal zu zwei!",20,50,200,20)
  4. GUISetState(@SW_SHOW,$hGUI)
  5.  
  6. $hGUI2 = GUICreate("GUI2")
  7. $hFunc = GUICtrlCreateButton("Benutz die func!",20,20,200,20)
  8.  
  9.  
  10. While 1
  11.         $nMsg = GUIGetMsg()
  12.         Switch $nMsg
  13.                 Case -3
  14.                         Exit
  15.                 Case $hButton
  16.                         GUISetState(@SW_HIDE,$hGUI)
  17.                         GUISetState(@SW_SHOW,$hGUI2)
  18.                 Case $hFunc
  19.                         _Func()
  20.         EndSwitch
  21. WEnd
  22.  
  23. Func _Func()
  24.         MsgBox(0,"","Ich bin ne Func")
  25. EndFunc