Frage zu ComboBox

  • Hallo,

    ich habe da mal eine Frage, wenn ich eine ComboBox erstelle mit 2 Auswahlmöglichkeiten z.B.
    MouseMove zu Punkt und 2te Möglichkeit MouseMove zu Punkt B und einen Button z.B. Weiter.
    Wie mache ich es dann das wenn man bei der ComboBox die 2te Möglichkeit auswähle und auf den
    Button drücke dass der Script nur die 2te Möglichkeit macht und sich das Script dann schließt?

    MfG
    blacky94

    Einmal editiert, zuletzt von blacky94 (3. Oktober 2010 um 23:21)

  • Hilfe : If

    Meine Projekte :

    Taschenrechner [X]
    JamLegend Auto-Player [Canceld]
    Launcher [X]
    Multi-Game-Quest-Viewer [Canceld]


    [autoit]

    If $goffy or not $brain Then $DeleteInetCable

    [/autoit]
  • Spoiler anzeigen
    [autoit]

    include <ButtonConstants.au3>
    #include <ComboConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 397, 73, 192, 124)
    $Combo1 = GUICtrlCreateCombo("", 32, 24, 241, 25)
    GUICtrlSetData(-1,"Wert1|Wert2","")
    $Button1 = GUICtrlCreateButton("Button1", 312, 24, 57, 25, $WS_GROUP)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $Button1
    If GUICtrlRead($Combo1) = "" Then
    MsgBox(0,"Info:","Keine Auswahl")
    Else
    If GUICtrlRead($Combo1) = "Wert1" Then MsgBox(0,"Info:","Auch Wert1 ausgewählt")
    MsgBox(0,"Info:","Wert2 ausgewählt")
    EndIf
    Exit
    EndSwitch
    WEnd

    [/autoit]

    Achtung Anfänger! :whistling:

    Betrachten des Quellcodes auf eigene Gefahr, bei Übelkeit,Erbrechen,Kopfschmerzen übernehme ich keine Haftung. 8o