Autoit Noob

  • Erstmal danke für eure super TUTs in sachen Autoit. Leider habe ich ein kleines Problem ich möchte ein Script erstellen das per Knopfdruck eine Datei runterlädt eine Progreesbar aufruft die gedownloedete Datei starten und nach beenden des Programmes die Datei löscht. Doch in sachen Autoit bin ich nicht grade der beste. Immer wenn ich die Datei runterlade lädt er nur 55 kb von 10 Mb oder so. Könntest jemand eventuel mein Script aufbessern oder mir meine Fehler erläutern.

    [autoit]

    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=c:\users\msi\desktop\form2.kxf
    $Form2 = GUICreate("Gaara4 PSP Flasher", 618, 402, 218, 135)
    $Pic1 = GUICtrlCreatePic("C:\Users\MSI\Desktop\Unbenannt.gif", 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)
    $Credits = GUICtrlCreateButton("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("Go.exe", @TempDir&"\go.exe",1)
    Run("D:\Go 6.35.exe")
    FileDelete("D:\Go 6.35.exe")
    Case $PSP2
    Case $PSP3
    Case $PSP4
    Case $PSP8
    Case $PSP5
    Case $Credits
    Case $PSP6
    Case $Beenden
    EndSwitch
    WEnd

    [/autoit]

    Ich weiß das in diesem Script die Progressbar fehlt ich schaff es leider nicht diese einzubauen. Sry bin halt noch unerfahren.

    Könnte man den mit FileInstall die Datei einbinden?

    7 Mal editiert, zuletzt von Gaara4 (1. Juni 2011 um 20:07)

  • Hi Gaara4, ich glaube, dein Downloadlink stimmt nicht ganz.
    http://www.mediafire.com/?mlu12tmoc8up505
    führt mich zu einer Internetseite.

    Dabei ist der eigendliche Downloadlink doch
    http://download789.mediafire.com/k786kqdheuog/m…505/GO+6.35.exe
    oder???

  • Hattest recht doch die Datei die geladen wird ist dann nur 55 kbs groß trozdem ich den Fehler bei mir berichtigt habe. Kannste mir auch zeigen wie ich ein Ladebalken in das Script kriege? Und wenn das nicht geht wie ich eine Datei darin einbinden und ausführen kann. Würde ja auch gehen die Exe währe halt dann nur größer.

  • Der Download klappt deshalb nicht, weil hier mit dynamischen Links gearbeitet wird. Dadurch will sich der Hoster wohl vor automatischen Downloads schützen und die Finanzierung durch Werbung auf der Webseite sicherstellen.
    Lade die Datei einfach auf einen eigenen Webspace (gibts ja jedemenge kostenlose Angebote) oder suche dir einen Hoster der das direkte verlinken der Dateien erlaubt (dürfte schwer werden).

    Alternativ schau dir die Hilfe zu fileinstall() an, das ermöglicht dir beliebige Dateien zum Script hinzuzufügen.

  • Hab es mal geändert ist es so richtig. Wo muss die Datei in meinem Fall Go.exe hin um eingebunden zu werden.

    Ich wollte es so machen das jetzt die Datei so gesagt kopiert wird, danch ausgeführ und zum Schluss die wieder gelöscht wird.

  • Hä, jetzt wird doch gar nichts mehr herruntergeladen, oder???
    Hier findest du einen guten Anbieter, wo du die Datei hochladen kannst: http://ge.tt/

    Und hier ein YouTube Tutorial zum Ladebalken: http://www.youtube.com/watch?v=kEcmZfjcriE

  • [autoit]


    FileInstall("Go.exe", @TempDir&"\go.exe",1)
    Run("D:\Go 6.35.exe")
    FileDelete("D:\Go 6.35.exe")

    [/autoit]


    Beim kompilieren muss die go.exe im selben Verzeichnis wie dein script sein. Beim ausführen der kompilierten exe wird die go.exe dann aus deiner programm.exe nach @tempdir "entpackt" / kopiert. Beim ausführen muss die go.exe also nicht vorhanden sein, sie ist in deiner programm.exe bereits enthalten. Ausführen und löschen musst du dann natürlich die Datei in @tempdir, das bedeutet du änderst diese Zeilen noch:

    [autoit]


    Run(@tempdir & "\Go.exe")
    FileDelete(@tempdir & "\Go.exe")

    [/autoit]

    Hä, jetzt wird doch gar nichts mehr herruntergeladen, oder???

    Klar lädt er jetzt nix mehr runter, er wollte ja schliesslich wissen wie man Dateien in ein Script kompiliert um eben gerade das Herunterladen zu umgehen.

  • Ok hat geklappt nur noch eine Frage wie kann man es machen das man mehre GUIs auswählen kann. Also mit einem Button das Fenster wechseln.

  • Kann mir jemand mal Fehler erklären bitte

    C:\Users\MSI\Desktop\PRO.au3(100,5) : ERROR: missing EndSwitch.
    WEnd
    ~~~~^
    C:\Users\MSI\Desktop\PRO.au3(19,14) : REF: missing EndSwitch.
    Switch $nMsg
    ~~~~~~~~~~~~^
    C:\Users\MSI\Desktop\PRO.au3(100,5) : ERROR: missing Wend.
    WEnd
    ~~~~^
    C:\Users\MSI\Desktop\PRO.au3(17,1) : REF: missing Wend.
    While
    ^
    C:\Users\MSI\Desktop\PRO.au3 - 2 error(s), 0 warning(s)

  • Also eine IF Schleife hab ich nicht

    [autoit]


    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=c:\users\msi\desktop\pro.kxf
    $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 ###
    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
    Case $PS3
    GUIDelete ()
    Case $Wii
    GUIDelete ()
    Case $DS
    GUIDelete ()
    EndSwitch
    WEnd

    [/autoit]
  • [autoit]

    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=c:\users\msi\desktop\pro.kxf
    $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 ###
    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
    Case $PS3
    GUIDelete ()
    Case $Wii
    GUIDelete ()
    Case $DS
    GUIDelete ()
    EndSwitch
    WEnd

    [/autoit]


    So sry blick nicht richtig durch

  • Die while schleifen sind beide zu sorry :)

    Aber du hast in Zeile 17 einen Switch aufgemacht wo geht der zu?

  • Ok ic habe es Berichtigt doch jetzt kommt immer ein Case Error

    [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 / Haupt GUI
    Exit
    Case $PSP /Erster Button des Haupt GUI
    GUIDelete ()
    $Form2 = GUICreate("Gaara4 PSP Flasher", 618, 402, 218, 135) /Soll geladen werden
    $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
    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 ###

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit

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

    Case $PS3R / 2.Button des Haupt GUI

    [/autoit]


    Ich erkläre mal kurz was ich machen will zuerst soll das Haupt GUI aufgehen und per Drück auf den Button soll ein neues GUI starten und dass alte soll weg gehen.

    3 Mal editiert, zuletzt von Gaara4 (31. Mai 2011 um 15:12)

  • Ja genau, mache mal die ganzen "/" weg und ersetze sie durch ";". Hier ein Beispiel:

    [autoit]

    MsgBox (0,"Test","Testnachricht zum Verdeutlichen von Anmerkungen") ;Und jetzt die Anmerkung

    [/autoit]


    und NICHT so:

    [autoit]

    MsgBox (0,"Test","Das läuft nicht") /Und jetzt die Anmerkung

    [/autoit]
  • Du machst da den Switch zu und dann fängst du wieder einen Case an.
    Das geht nicht.

    hier gucken

    Ab Zeile 86:

    Code
    Case $Beenden 
    Exit 
    EndSwitch 
    WEnd 
    Case $PS3