Hallo Leute!
Wie kann ich verhindern das die 2 Gui mit dem 1 Gui mitschliesst.
Gui 1 öffnen --> Gui 2 öffen --> Gui 2 schliessen --> Gui 1 wird mitgeschlossen..
Spoiler anzeigen
#include <GUIConstants.au3>
#NoTrayIcon
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.2.9.3 (beta)
Author: TensoX
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
; Tray Einstellungen
Opt("TrayMenuMode",1) ; Default tray menu items (Script Paused/Exit) will not be shown.
[/autoit] [autoit][/autoit] [autoit]$prefsitem = TrayCreateItem("Preferences")
TrayCreateItem("")
$aboutitem = TrayCreateItem("About")
TrayCreateItem("")
$exititem = TrayCreateItem("Exit")
; Tray Ende
; Start
#Region ### START Koda GUI section ### Form=c:\dokumente und einstellungen\USER\desktop\blaaaaa
\bla
$Form1_1 = GUICreate("Tuybook 1.0 beta", 588, 370, 193, 115)
GUISetFont(8, 400, 0, "Tahoma")
$Viewer = GUICtrlCreateButton("Viewer", 16, 16, 203, 97, 0)
GUICtrlSetFont(-1, 8, 800, 4, "Tahoma")
$Button1 = GUICtrlCreateButton("Neuer Einrag", 16, 136, 203, 97, 0)
GUICtrlSetFont(-1, 8, 800, 4, "Tahoma")
$Button2 = GUICtrlCreateButton("Updates", 16, 256, 203, 97, 0)
GUICtrlSetFont(-1, 8, 800, 4, "Tahoma")
$Icon1 = GUICtrlCreateIcon("C:\Programme\AutoIt3\Examples\Meine Programme mit AutoIt\Tuybook\Icon1.ico", 0, 500, 304, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP))
$Label1 = GUICtrlCreateLabel("Copyright: TensoX 2007", 456, 344, 120, 17)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label2 = GUICtrlCreateLabel("Der Viewer zeigt deine Einträge im Tuybook.", 240, 16, 215, 17)
GUICtrlSetFont(-1, 8, 400, 2, "Tahoma")
$Label3 = GUICtrlCreateLabel("Erstelle dir einen neuen Eintrag im Tuybook.", 240, 136, 214, 17)
GUICtrlSetFont(-1, 8, 400, 2, "Tahoma")
$Label4 = GUICtrlCreateLabel("Sei immer Aktuell mit Tuybook.", 240, 256, 149, 17)
GUICtrlSetFont(-1, 8, 400, 2, "Tahoma")
$Label5 = GUICtrlCreateLabel("1.0 beta", 424, 328, 50, 17)
GUICtrlSetFont(-1, 8, 800, 0, "Tahoma")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
; Ende
#Region ### START Koda GUI section ### Form=c:\dokumente und einstellungen\bla\desktop\bla\add.kxf
$Form1_1 = GUICreate("Eintrag im Tuybook", 341, 369, 193, 115)
$Label1 = GUICtrlCreateLabel("Titel:", 8, 8, 32, 17)
GUICtrlSetFont(-1, 8, 800, 0, "Tahoma")
$Input1 = GUICtrlCreateInput("", 8, 40, 121, 21)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label2 = GUICtrlCreateLabel("Text", 8, 72, 30, 17)
GUICtrlSetFont(-1, 8, 800, 0, "Tahoma")
GUICtrlCreateEdit("", 8, 104, 313, 201)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Button1 = GUICtrlCreateButton("Save", 248, 336, 75, 17, 0)
GUICtrlSetFont(-1, 8, 800, 0, "Tahoma")
GUISetState()
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$Form1_1
EndSwitch
WEnd
Exit
; END GUI
Edit BugFix: Spoiler gesetzt