Fenster schließen...

  • Hallo, erstmal

    ich scripte zwar schon eine weile mit AutoIt aber ich habe ein Problem:

    Als erstes öffnet sich ein Fenster (mit eingaben) sobald man "ok" drückt soll sich ein
    weiteres fenster öffnen (dies passiert auch) aber ich möchte jetzt das sich das fenster davor schließt
    ohne das sich das neue fenster (was davor geöffnet ist) sich schließt....

    war das klar und deutschlich? :P

    danke im vorraus

    2 Mal editiert, zuletzt von ThePierre (13. März 2010 um 13:09)

  • Spoiler anzeigen


    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #notrayicon
    #Region ### START Koda GUI section ### Form=
    $Fenster1 = GUICreate("Fake GM Tool by pierre96", 251, 112, -1, -1)
    GUISetIcon("D:\008.ico")
    $password = GUICtrlCreateInput("password", 8, 56, 233, 21, BitOR($ES_PASSWORD,$ES_AUTOHSCROLL))
    $ButtonOk = GUICtrlCreateButton("&OK", 38, 80, 75, 25, 0)
    $ButtonCancel = GUICtrlCreateButton("&Cancel", 119, 80, 75, 25, 0)
    $EnterPassLabel = GUICtrlCreateLabel("Enter you Account Name and Password", 8, 12, 193, 17)
    $Name = GUICtrlCreateInput("Name", 8, 32, 233, 21)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    exit
    case $buttoncancel
    msgbox(16, "Verbindung (Fehlgeschlagen)", "Verbindung Fehlgeschlagen")
    exit
    case $buttonok
    msgbox(32, "Verbindung (Hergestellt)", "Die Verbindung zum Client konnte hergestellt werden.")

    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <ProgressConstants.au3>
    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=
    $Fenster2 = GUICreate("GM Fake Tool by pierre96 - 4Story Client (Gefunden)", 386, 147, 193, 114)
    $Progress1 = GUICtrlCreateProgress(72, 112, 225, 25)
    GUICtrlSetLimit(-1, 100, 99)
    GUICtrlSetData(-1, 99)
    $Button2 = GUICtrlCreateButton("GM Tränke", 8, 56, 113, 41, $WS_GROUP)
    $Button1 = GUICtrlCreateButton("Verwandlungen", 8, 8, 113, 41, $WS_GROUP)
    $Button3 = GUICtrlCreateButton("Besonderes", 128, 8, 113, 41, $WS_GROUP)
    $Button4 = GUICtrlCreateButton("Information", 128, 56, 113, 41, $WS_GROUP)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

    While 1
    $nMsg = GUIGetMsg()
    Case $GUI_EVENT_CLOSE
    Exit
    Switch $nMsg
    case $button1
    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=
    $Verwandlungen = GUICreate("Verwandlungen", 105, 93, 302, 218)
    $Button1 = GUICtrlCreateButton("Gottgeist", 0, 0, 97, 41, $WS_GROUP)
    $Button2 = GUICtrlCreateButton("Verdunkelter", 0, 48, 97, 41, $WS_GROUP)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###
    EndSwitch
    WEnd
    Endswitch
    WEnd

    ich möchte das sich das eingabe fenster (account name & passwort) sich schließt aber das was sich
    neu geöffnet hat da bleibt :)

    Einmal editiert, zuletzt von ThePierre (13. März 2010 um 12:15)

  • das ist doch eigentlich egal :P
    ich möchte nur das sich das fenster schließt mit den eingabe fenster und dann sich das neue fenster öffnet
    mehr will ich nicht :O

  • Das sieht nach einem Trainer oder Bot aus, was hier nicht unterstützt wird :P , oder wofür ist das Script gut?

  • Hallo ThePierre,

    Was ist das denn für ein Script?

    das ist doch eigentlich egal


    Nein, denn dieses Forum hat http://www.autoit.de/index.php?page=Forumrules und

    [autoit]

    $Fenster2 = GUICreate("GM Fake Tool by pierre96 - 4Story Client (Gefunden)", 386, 147, 193, 114)

    [/autoit]

    lässt Zweifel aufkommen. Deshalb auch nur der allgemeine Hinweis auf http://translation.autoit.de/autoitinfo/hil…nd-06_02_10.zip, lies dort das Kapitel zur Gui Refernz|Message-Loop Modus,

    mfg (Auto)Bert

  • dann ebend nicht ich entschuldige mich wegen den beitrag :S :(

    2 Mal editiert, zuletzt von ThePierre (13. März 2010 um 13:26)