Auto it Abfrage erstellen ?

  • Nenutz bitte den AutoIt Button für Syntax-Highlighting.
    ungefähr so (besser verständlich ohne arrays):

    [autoit]

    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    $Form1 = GUICreate("", 248, 89, 254, 124)
    $Input1 = GUICtrlCreateInput("", 8, 32, 121, 21)
    $Input2 = GUICtrlCreateInput("", 8, 32+25, 121, 21)
    $Label1 = GUICtrlCreateLabel("bli, bla oder blub?", 8, 8, 87, 17)
    $Button1 = GUICtrlCreateButton("los", 144, 32, 75, 25)
    GUISetState(@SW_SHOW)

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $Button1
    _goto()
    _goto2()
    ;~ _goto3() ; usw.
    EndSwitch
    WEnd

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

    Func _goto()
    $read = GUICtrlRead($Input1)
    Switch $read
    Case "bli"
    MsgBox(64, "", "zur Funktion für bli springen")
    ;_bli()
    Case "bla"
    MsgBox(64, "", "zur Funktion für bla springen")
    ;_bla()
    Case "blub"
    MsgBox(64, "", "zur Funktion für blub springen")
    ;_blub()
    Case Else
    MsgBox(64, "", "ungültige Eingabe")
    EndSwitch
    EndFunc ;==>_goto
    Func _goto2()
    $read = GUICtrlRead($Input2)
    Switch $read
    Case "bli"
    MsgBox(64, "", "zur Funktion für bli springen")
    ;_bli()
    Case "bla"
    MsgBox(64, "", "zur Funktion für bla springen")
    ;_bla()
    Case "blub"
    MsgBox(64, "", "zur Funktion für blub springen")
    ;_blub()
    Case Else
    MsgBox(64, "", "ungültige Eingabe")
    EndSwitch
    EndFunc ;==>_goto

    [/autoit]
    Spoiler anzeigen

    Grundkenntnisse in: C++, JavaScript
    Sehr gute Kenntnisse: PHP, JAVA, C und näturlich AutoIt


    Klaviatur, Anhang UDF, GDI+ Mühle

    Zitat

    "Wenn einen um 20h der Pizzadienst anruft und fragt, ob man's nur vergessen hat und ob man das gleiche
    möchte wie immer -- dann sollte man sein Bestellverhalten evtl überdenken"