Autoit Noob

  • 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
    [autoit]

    #region - Timestamp
    ;2011-05-31 16:33:24
    #endregion - Timestamp

    [/autoit] [autoit][/autoit] [autoit]

    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    Opt("GUIOnEventMode", 1)

    [/autoit] [autoit][/autoit] [autoit]

    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

    [/autoit] [autoit][/autoit] [autoit]

    Func _exit()
    Exit
    EndFunc ;==>_exit

    [/autoit] [autoit][/autoit] [autoit]

    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

    [/autoit] [autoit][/autoit] [autoit]

    Func _pspk635()
    MsgBox(0, 0, "mach was für FW < 6.35")
    EndFunc ;==>_pspk635

    [/autoit] [autoit][/autoit] [autoit]

    Func _psp635()
    MsgBox(0, 0, "mach was für FW 6.35")
    EndFunc ;==>_psp635

    [/autoit] [autoit][/autoit] [autoit]

    Func _pspg635()
    MsgBox(0, 0, "mach was für FW > 6.35")
    EndFunc ;==>_pspg635

    [/autoit] [autoit][/autoit] [autoit]

    Func _pspGUIExit()
    GUIDelete($pspGUI)
    GUISetState(@SW_SHOW, $mainGUI)
    EndFunc ;==>_pspGUIExit

    [/autoit] [autoit][/autoit] [autoit]

    #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

    [/autoit]
  • Ok hier ist erstmal mein Script

    Spoiler anzeigen
    [autoit]

    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    $Form2 = GUICreate("Form2", 618, 402, 289, 167)
    $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)
    $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
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $PSP
    GUIDelete ()
    $Form2 = GUICreate("Gaara4 PSP Flasher", 618, 402, 218, 135)
    $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)
    $PSP2 = GUICtrlCreateButton("PSP GO FW 6.35", 224, 104, 161, 81, $WS_GROUP)
    $PSP3 = GUICtrlCreateButton("PSP GO FW>6.35", 424, 104, 161, 81, $WS_GROUP)
    $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)
    #EndRegion ### END Koda GUI section ###
    EndSwitch
    WEnd
    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
    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
    FileInstall("A:\PS3\REBUG\REBUG.exe", @TempDir&"\REBUG.exe",1)
    Run(@tempdir & "\REBUG.exe")
    Sleep(30000)
    Msgbox (0,"Anleitung" , "Den USb Stick in die PS3 und ein Systemupadte machen" & @LF & " Auf Install Files und Multiman installieren und starten und mit 0 ein Backup machen")
    FileDelete(@tempdir & "\REBUG.exe")
    Case $Gaara
    FileInstall("A:\PS3\Gaara4\Gaara4.exe", @TempDir&"\Gaara4",1)
    Run(@tempdir & "\Gaara4.exe")
    Sleep(30000)
    Msgbox (0,"Anleitung" , "Den USb Stick in die PS3 und ein Systemupadte machen" & @LF & " Auf Install Files und Multiman installieren und starten und mit 0 ein Backup machen")
    FileDelete(@tempdir & "\Gaara4")
    Case $Kmeaw
    FileInstall("A:\PS3\KEAW\KEAW.exe", @TempDir&"\KEAW.exe",1)
    Run(@tempdir & "\KEAW.exe")
    Sleep(30000)
    Msgbox (0,"Anleitung" , "Den USb Stick in die PS3 und ein Systemupadte machen" & @LF & " Auf Install Files und Multiman installieren und starten und mit 0 ein Backup machen")
    FileDelete(@tempdir & "\KEAW.exe")
    Case $Credits
    Msgbox (0,"INFO" , "By Gaara4")
    Case $INFO1
    Msgbox (0, "INFO", "Diese CFW geht nur wenn die FW 3.55 installiert ist" & @LF & "Vorteile:" & @LF & "1. Kann PS3 ID verschleiern "& @LF & "2. Backup support" & @LF & "3. Soll geupdatet werden" & @LF & "Nachteile:" & @LF & "Konnte ich nicht testen")
    Case $INFO2
    Msgbox (0, "INFO", "Diese CFW geht nur wenn die FW 3.55 installiert ist" & @LF & "Vorteile:" & @LF & "1. Costum Sound"& @LF & "2. Backup support" & @LF & "3. Costum Menü" & @LF & "Nachteile:" & @LF & "Nicht jeder mag mein Geschmack")
    Case $INFO3
    Msgbox (0, "INFO", "Diese CFW geht nur wenn die FW 3.55 installiert ist" & @LF & "Vorteile:" & @LF & "1.Zu fast 100% sicher "& @LF & "2. Backup support" & @LF & "3. Soll geupdatet werden" & @LF & "Nachteile:" & @LF & "gibt es eigentlich nicht")
    EndSwitch
    WEnd
    Case $Wii
    GUIDelete ()
    $Form1 = GUICreate("Form1", 618, 402, 192, 124)
    $Pic1 = GUICtrlCreatePic("C:\Users\MSI\Desktop\FotoFlexeffff_Photo.jpg", 0, 0, 617, 401, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    GUICtrlSetState(-1, $GUI_DISABLE)
    $Easy = GUICtrlCreateButton("Install", 16, 64, 185, 65, $WS_GROUP)
    $hard = GUICtrlCreateButton("Install", 384, 64, 209, 65, $WS_GROUP)
    $INF = GUICtrlCreateButton("INFO", 16, 144, 57, 25, $WS_GROUP)
    $INFO = GUICtrlCreateButton("INFO", 384, 144, 57, 25, $WS_GROUP)
    $Credits = GUICtrlCreateButton("Credits", 544, 368, 65, 25, $WS_GROUP)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###
    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $Easy
    FileInstall("D:\Wii Hacken easy.exe", @TempDir&"\Wii Hacken easy.exe",1)
    Run(@tempdir & "\Wii Hacken easy.exe")
    FileDelete(@tempdir & "\Wii Hacken easy.exe")
    Case $hard
    FileInstall("D:\WII Hacken.exe", @TempDir&"\WII Hacken.exe",1)
    Run(@tempdir & "D:\WII Hacken.exe")
    FileDelete(@tempdir & "\WII Hacken.exe")
    Case $INF
    Msgbox (0, "INFO", "Dieser Hack geht nur wenn Fw 4.3 installiert ist" & @LF & "Vorteile:" & @LF & "1.Geht auf jeder Wii " & @LF & "Nachteile:" & @LF & "Ist ca 0.5 sek langsamer als Hard Hack")
    Case $INFO
    Msgbox (0, "INFO", "Dieser Hack geht nur wenn Fw 4.3 installiert ist" & @LF & "Vorteile:" & @LF & "1. Das Resultat ist schneller als Easy Hack "& @LF & "2. Brick Schutz nach insterlation" & @LF & "Nachteile:" & @LF & "Brick gefahr höher als bei Easy Brick heißt das die Wii kapput geht")
    Case $Credits
    Msgbox (0, "INFO", " By Gaara4")
    EndSwitch
    WEnd
    Case $DS
    GUIDelete ()
    $Form1 = GUICreate("Form1", 618, 402, 192, 124)
    $Pic1 = GUICtrlCreatePic("C:\Users\MSI\Desktop\6.20 TN-D - Permanent Patcher\dd.jpg", 0, 0, 617, 401, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    GUICtrlSetState(-1, $GUI_DISABLE)
    $Button1 = GUICtrlCreateButton("Klick ME", 216, 48, 185, 81, $WS_GROUP)
    $Button2 = GUICtrlCreateButton("Credits", 520, 368, 81, 25, $WS_GROUP)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###
    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $Button1
    Msgbox (0, "INFO", "http://lmgtfy.com/?q=Nintendo+DS+Flashcard ")
    Case $Button2
    Msgbox (0, "INFO", "By Gaara4")
    EndSwitch
    WEnd
    EndSwitch
    WEnd

    [/autoit]

    Einmal editiert, zuletzt von Gaara4 (31. Mai 2011 um 17:09)

  • Erstmal danke für eure helfe aber könnt mir jemand nochmal helfen. Wo ist in meinem Script der Fehler mein Pic1 wird nicht in die Datei eingebunden oder geladen

    Spoiler anzeigen
    [autoit]

    FileInstall("C:\rr.jpeg","C:\rr.jpeg", 1)
    $FORM2=GUICREATE("Gaara4 PSP Flasher",618,402,218,135)
    $PIC1=GUICTRLCREATEPIC("C:\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)
    $PSP2=GUICTRLCREATEBUTTON("PSP GO FW 6.35",224,104,161,81,$WS_GROUP)
    $PSP3=GUICTRLCREATEBUTTON("PSP GO FW>6.35",424,104,161,81,$WS_GROUP)
    $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)
    #EndRegion ### END Koda GUI section ###
    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

    [/autoit]