SEuBo
By: a guest | Mar 18th, 2010 | Syntax:
AutoIt | Size: 0.50 KB | Hits: 104 | Expires: Never
$hGUI = GUICreate("")
GUICtrlCreateLabel("ich bin gui 1!!!",20,20,200,20)
$hButton = GUICtrlCreateButton("Geh mal zu zwei!",20,50,200,20)
GUISetState(@SW_SHOW,$hGUI)
$hGUI2 = GUICreate("GUI2")
$hFunc = GUICtrlCreateButton("Benutz die func!",20,20,200,20)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case -3
Exit
Case $hButton
GUISetState(@SW_HIDE,$hGUI)
GUISetState(@SW_SHOW,$hGUI2)
Case $hFunc
_Func()
EndSwitch
WEnd
Func _Func()
MsgBox(0,"","Ich bin ne Func")
EndFunc