Bevor ihr weiter an einer korrekten Syntax rumwerkelt - man erstellt kein GUI in einer While-Schleife (Zeile 25). Die gesammte erste Schleife ist überflüssig. Erstell die GUIs in Funktionen und schau dir mal GUIGetMsg() in der Hilfe an. Mit der Rückgabe eines Arrays kannst du alle GUIs in einer einzigen Schleife verwalten.
edit: Oder besser gleich in den OnEventMode wechseln.
edit 2:
Ansatz für OnEvent
#region - Timestamp
;2011-05-31 16:33:24
#endregion - Timestamp
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Opt("GUIOnEventMode", 1)
Global $pspGUI
[/autoit] [autoit][/autoit] [autoit]$mainGUI = GUICreate("Form2", 618, 402, 289, 167)
GUISetOnEvent($GUI_EVENT_CLOSE, "_exit")
$Pic1 = GUICtrlCreatePic("C:\Users\MSI\Desktop\Unbenannt.jpg", 0, 0, 617, 401, BitOR($SS_NOTIFY, $WS_GROUP, $WS_CLIPSIBLINGS))
GUICtrlSetState(-1, $GUI_DISABLE)
$PSP = GUICtrlCreateButton("PSP Flash", 8, 160, 65, 33, $WS_GROUP)
GUICtrlSetOnEvent(-1, "_pspGUI")
$PS3 = GUICtrlCreateButton("PS3 Flash", 8, 344, 65, 33, $WS_GROUP)
$Wii = GUICtrlCreateButton("WII Flashen", 312, 160, 65, 33, $WS_GROUP)
$DS = GUICtrlCreateButton("DS Flashen", 304, 344, 65, 33, $WS_GROUP)
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###
While 1
Sleep(100)
WEnd
Func _exit()
Exit
EndFunc ;==>_exit
Func _pspGUI()
GUISetState(@SW_HIDE, $mainGUI)
$pspGUI = GUICreate("Gaara4 PSP Flasher", 618, 402, 218, 135)
GUISetOnEvent($GUI_EVENT_CLOSE, "_pspGUIExit")
$Pic1 = GUICtrlCreatePic("C:\Users\MSI\Desktop\rr.jpeg", 0, 0, 617, 401, BitOR($SS_NOTIFY, $WS_GROUP, $WS_CLIPSIBLINGS))
GUICtrlSetState(-1, $GUI_DISABLE)
$PSP = GUICtrlCreateButton("PSP GO FW< 6.35", 16, 104, 161, 81, $WS_GROUP)
GUICtrlSetOnEvent(-1, "_pspk635")
$PSP2 = GUICtrlCreateButton("PSP GO FW 6.35", 224, 104, 161, 81, $WS_GROUP)
GUICtrlSetOnEvent(-1, "_psp635")
$PSP3 = GUICtrlCreateButton("PSP GO FW>6.35", 424, 104, 161, 81, $WS_GROUP)
GUICtrlSetOnEvent(-1, "_pspg635")
$PSP4 = GUICtrlCreateButton("PSP FW<6.35", 16, 208, 161, 81, $WS_GROUP)
$PSP8 = GUICtrlCreateButton("PSP FW 6.39 Beta", 16, 304, 161, 81, $WS_GROUP)
$PSP5 = GUICtrlCreateButton("PSP FW 6.35", 224, 208, 161, 81, $WS_GROUP)
$Warnung = GUICtrlCreateButton("Warnung/Credits", 224, 304, 161, 81, $WS_GROUP)
$PSP6 = GUICtrlCreateButton("PSP FW >6.35", 424, 208, 161, 81, $WS_GROUP)
$Beenden = GUICtrlCreateButton("Beenden", 424, 304, 161, 81, $WS_GROUP)
GUISetState(@SW_SHOW)
EndFunc ;==>_pspGUI
Func _pspk635()
MsgBox(0, 0, "mach was für FW < 6.35")
EndFunc ;==>_pspk635
Func _psp635()
MsgBox(0, 0, "mach was für FW 6.35")
EndFunc ;==>_psp635
Func _pspg635()
MsgBox(0, 0, "mach was für FW > 6.35")
EndFunc ;==>_pspg635
Func _pspGUIExit()
GUIDelete($pspGUI)
GUISetState(@SW_SHOW, $mainGUI)
EndFunc ;==>_pspGUIExit
#cs
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $PSP
FileInstall("D:\projekt\go6.20\go6.20.exe", @TempDir & "\go6.20.exe", 1)
Run(@TempDir & "\go6.20.exe")
FileDelete(@TempDir & "\go6.20.exe")
Sleep(15000)
MsgBox(4096, "Anleitung", "1. Pro-Update starten 2mal x drücke 2. File Flasher starten x drücke 3. Pro Update löschen 4. Unter Music Hack Mode starten", 500)
Case $PSP2
FileInstall("D:\projekt\go6.35\go6.35.exe", @TempDir & "\go6.35.exe", 1)
Run(@TempDir & "\go6.35.exe")
FileDelete(@TempDir & "\go6.35.exe")
Sleep(15000)
MsgBox(4096, "Anleitung", "1. Pro-Update starten 2mal x drücke 2. File Flasher starten x drücke 3. Pro Update löschen 4. Unter Music Hack Mode starten", 500)
Case $PSP3
FileInstall("D:\projekt\godown\godown.exe", @TempDir & "\godown.exe", 1)
Run(@TempDir & "\godown.exe")
FileDelete(@TempDir & "\godown.exe")
Sleep(15000)
MsgBox(4096, "Anleitung", "1. Downgrader starten 2. PSP startet neu und 0 drücken 3. Pro-Update starten 2mal x drücke 4. File Flasher starten x drücke 5. Pro Update löschen 6. Unter Music Hack Mode starten", 500)
Case $PSP4
FileInstall("D:\projekt\6.20\6.20.exe", @TempDir & "\6.20.exe", 1)
Run(@TempDir & "\6.20.exe")
FileDelete(@TempDir & "\6.20.exe")
Sleep(15000)
MsgBox(4096, "Anleitung", "1. Pro-Update starten 2mal x drücke 2. File Flasher starten x drücke 3. Pro Update löschen 4. Unter Music Hack Mode starten", 500)
Case $PSP8
FileInstall("D:\projekt\6.39\6.39.exe", @TempDir & "\6.39.exe", 1)
Run(@TempDir & "\6.39.exe")
FileDelete(@TempDir & "\6.39.exe")
MsgBox(4096, "Anleitung", " Pro Update staren und 2 mal X drücken Fertig bei neu start wiederholen", 20)
Sleep(15000)
Case $PSP5
FileInstall("D:\projekt\6.35\6.35.exe", @TempDir & "\6.35.exe", 1)
Run(@TempDir & "\6.35.exe")
FileDelete(@TempDir & "\6.35.exe")
Sleep(15000)
MsgBox(4096, "Anleitung", "1. Pro-Update starten 2mal x drücke 2. File Flasher starten x drücke 3. Pro Update löschen 4. Unter Music Hack Mode starten", 500)
Case $Warnung
MsgBox(4096, "Credits", "BY Gaara4,Liquidzigong,Coldbird and Virustotl! !ch oder andere haften nicht für Schäden", 10)
Case $PSP6
FileInstall("D:\projekt\downgrade\downgrade.exe", @TempDir & "\downgrade.exe", 1)
Run(@TempDir & "\downgrade.exe")
FileDelete(@TempDir & "\downgrade.exe")
Sleep(15000)
MsgBox(4096, "Anleitung", "1. Downgrader starten 2. PSP startet neu und 0 drücken 3. Pro-Update starten 2mal x drücke 4. File Flasher starten x drücke 5. Pro Update löschen 6. Unter Music Hack Mode starten", 500)
Case $Beenden
Exit
EndSwitch
WEnd
Case $PS3
GUIDelete()
$Form1_1 = GUICreate("Form1", 618, 402, 199, 136)
$Pic1 = GUICtrlCreatePic("C:\Users\MSI\Desktop\pppps.jpg", 0, 0, 617, 401, BitOR($SS_NOTIFY, $WS_GROUP, $WS_CLIPSIBLINGS))
GUICtrlSetState(-1, $GUI_DISABLE)
$PS3R = GUICtrlCreateButton("Install", 8, 112, 73, 25, $WS_GROUP)
$Gaara = GUICtrlCreateButton("Install", 8, 216, 73, 25, $WS_GROUP)
$Kmeaw = GUICtrlCreateButton("Install", 8, 312, 73, 25, $WS_GROUP)
$INFO1 = GUICtrlCreateButton("INFO1", 112, 112, 65, 25, $WS_GROUP)
$INFO2 = GUICtrlCreateButton("INFO2", 112, 216, 65, 25, $WS_GROUP)
$INFO3 = GUICtrlCreateButton("INFO3", 112, 312, 65, 25, $WS_GROUP)
$Credits = GUICtrlCreateButton("Credits", 544, 368, 65, 25, $WS_GROUP)
$Pic2 = GUICtrlCreatePic("C:\Users\MSI\Desktop\Henv2\fw.jpg", 432, 176, 185, 81, BitOR($SS_NOTIFY, $WS_GROUP, $WS_CLIPSIBLINGS))
GUICtrlSetState(-1, $GUI_DISABLE)
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $PS3R
EndSwitch
WEnd
EndSwitch
#ce