while problem

  • HotKeySet("{ESC}", "_exit")
    Func _exit()
    MsgBox(64 , "BYBY" , "Programm wird beendet")
    Exit
    EndFunc


    #include <GUIConstants.au3>

    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 633, 451, 193, 125)
    $KNUDDELS = GUICtrlCreateLabel("KNUDDELS", 240, 0, 63, 17)
    $Input1 = GUICtrlCreateInput("Text", 96, 32, 465, 21)
    $NR1 = GUICtrlCreateLabel("NR1", 64, 32, 26, 17)
    $Dein = GUICtrlCreateInput("Text", 24, 160, 465, 21)
    $NR2 = GUICtrlCreateLabel("NR2", 520, 168, 26, 17)
    $Input3 = GUICtrlCreateInput("Text", 296, 240, 297, 21)
    $NR3 = GUICtrlCreateLabel("NR3", 224, 248, 26, 17)
    $Input4 = GUICtrlCreateInput("Text", 32, 304, 257, 21)
    $Nr4 = GUICtrlCreateLabel("Nr4", 328, 304, 21, 17)
    $Input5 = GUICtrlCreateInput("Text", 360, 344, 193, 21)
    $Nr5 = GUICtrlCreateLabel("Nr5", 576, 352, 21, 17)
    $verstecken = GUICtrlCreateButton("verstecken", 56, 208, 97, 25, 0)
    $Start = GUICtrlCreateButton("Start", 192, 400, 265, 41, 0)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###
    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    MsgBox(64 , "BYBY" , "Programm wird beendet")
    Exit


    Case $verstecken
    WinSetState ("Form1" , "" , @SW_HIDE)
    EndSwitch
    WEnd

    was ist denn hier dran falsch

  • bei mir kam da immer
    mising wend
    ich bin schon fast am heulen ^^

    Einmal editiert, zuletzt von manny89 (30. März 2008 um 14:59)

  • Probier mal das:
    und benutze nächste mal [.autoit]

    Spoiler anzeigen
    [autoit]


    #include <GUIConstants.au3>

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

    HotKeySet("{ESC}", "_exit")

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

    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 633, 451, 193, 125)
    $KNUDDELS = GUICtrlCreateLabel("KNUDDELS", 240, 0, 63, 17)
    $Input1 = GUICtrlCreateInput("Text", 96, 32, 465, 21)
    $NR1 = GUICtrlCreateLabel("NR1", 64, 32, 26, 17)
    $Dein = GUICtrlCreateInput("Text", 24, 160, 465, 21)
    $NR2 = GUICtrlCreateLabel("NR2", 520, 168, 26, 17)
    $Input3 = GUICtrlCreateInput("Text", 296, 240, 297, 21)
    $NR3 = GUICtrlCreateLabel("NR3", 224, 248, 26, 17)
    $Input4 = GUICtrlCreateInput("Text", 32, 304, 257, 21)
    $Nr4 = GUICtrlCreateLabel("Nr4", 328, 304, 21, 17)
    $Input5 = GUICtrlCreateInput("Text", 360, 344, 193, 21)
    $Nr5 = GUICtrlCreateLabel("Nr5", 576, 352, 21, 17)
    $verstecken = GUICtrlCreateButton("verstecken", 56, 208, 97, 25, 0)
    $Start = GUICtrlCreateButton("Start", 192, 400, 265, 41, 0)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    MsgBox(64 , "BYBY" , "Programm wird beendet")
    Exit
    Case $verstecken
    WinSetState ("Form1" , "" , @SW_HIDE)
    EndSwitch
    WEnd

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

    Func _exit()
    MsgBox(64 , "BYBY" , "Programm wird beendet")
    Exit
    EndFunc

    [/autoit] [autoit][/autoit] [autoit][/autoit]
  • funcs kommen generll nach unten (wir hatten maln thread wie man das am besten aufbaut)

  • erst mal danke das ihr geschrieben habt
    ich habe alles probiert
    autoit neu auf den pc gemacht usw.
    doch bei mir kommt immer weider der gleiche fehler
    man ich kann es nicht verstehen
    wen das so weiter geht schmeise ich mein pc noch gegen die wand (is E ein scheiß ding)
    naja ich versuch dann mal den fehler zu finden
    BB
    EUERE MANNY

  • JA ich galube ich habe den fehler gefunden


    #include <GUIConstants.au3>
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 633, 451, 193, 125)
    $text = GUICtrlCreateInput("text", 160, 40, 305, 21)
    $beenden = GUICtrlCreateButton("beenden", 152, 152, 385, 113, 0)
    $mini = GUICtrlCreateButton("mini", 80, 328, 121, 25, 0)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    MsgBox(64 , "BYBY" , "Programm wird Beendet")
    Exit
    Case $mini
    WinSetState("Form1" , "" , @SW_HIDE)
    Case $beenden
    MsgBox(64 , "BYBY" , "Programm wird Beendet")
    Exit
    EndSwitch
    WEnd
    also bis jetzt geht alles
    doch ich habe jetzt noch mal eine andere frage
    dasd script läst sich ja mit den Button mini Hiden
    doch ich will es mit der F2 Taste wieder groß bekommen
    Doch wie stelle ich das denn an ?