Hello dear scripters,
I was learning how to work with multiple gui's but the problem is when i open a gui and close it my previous gui doesn't work anymore i can't even close it?
here is the code:
hope someone can help me^^
Greetz.
I was learning how to work with multiple gui's but the problem is when i open a gui and close it my previous gui doesn't work anymore i can't even close it?
here is the code:
[ autoit ]
#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3>#Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 615, 438, 192, 124) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### WinSetState ( $form1, "text", @SW_HIDE ) HotKeySet("!a", "show") HotKeySet("!s", "hide") HotKeySet("{F1}", "help") While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE exit Func show() WinSetState ($Form1, "test", @sw_show) EndFunc Func hide() WinSetState ($Form1, "test", @sw_hide) EndFunc Func help() $Form2 = GUICreate("Form2", 409, 438, 192, 124) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE WinSetState ($Form2, "test", @sw_hide) WinSetState ($Form1, "test", @SW_SHOW) EndSwitch WEnd EndFunc EndSwitch WEnd
hope someone can help me^^
Greetz.