hi,
ich hab vollgendes problem:
wenn ich das 2. gui offen habe lässt sich das 1.gui nicht mehr ansprechen. damit meine ich das die funktion mit der msgbox wenn man auf den button drückt net kommt...
ich hab vollgendes problem:
PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 469, 78, 192, 124)
$Button1 = GUICtrlCreateButton("Button1", 136, 8, 75, 25)
$Button2 = GUICtrlCreateButton("Button2", 264, 24, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $Button1
MsgBox(0,"","")
case $Button2
_a()
EndSwitch
WEnd
Func _a()
$Form2 = GUICreate("Form1", 200, 200, 200, 200)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
GUISetState(@SW_HIDE,$Form2)
ExitLoop
EndSwitch
WEnd
EndFunc