Combo mit allen Processen

  • Hi zusamm

    Ich brauch mal ne Combo in ner GUI, wo man eine der aktuellen Prozesse auswählen kann, die gerade laufen.

    Weis nich so wirklich wie ich das anstellen soll, wäre nett wenn jmd ein kurzes beispiel hätte.


    MfG

  • meinst du sowas wie das hier ?

    [autoit]

    #include <GUIConstantsEx.au3>

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

    Opt('MustDeclareVars', 1)

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

    Example()

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

    Func Example()
    Local $Button_1, $Button_2, $msg
    GUICreate("My GUI Button") ; will create a dialog box that when displayed is centered

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

    Opt("GUICoordMode", 2)
    $Button_1 = GUICtrlCreateButton("Run Notepad", 10, 30, 100)
    $Button_2 = GUICtrlCreateButton("Button Test", 0, -1)

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

    GUISetState() ; will display an dialog box with 2 button

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

    ; Run the GUI until the dialog is closed
    While 1
    $msg = GUIGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
    ExitLoop
    Case $msg = $Button_1
    Run('Notepad.exe') ; Will Run/Open Notepad
    Case $msg = $Button_2
    MsgBox(0, 'Testing', 'Button 2 was pressed') ; Will demonstrate Button 2 being pressed
    EndSelect
    WEnd
    EndFunc ;==>Example

    [/autoit]
  • Ah super, ich hab eben das Prog von -ROUGE- gefunden. Da is genau das drin was ich such ^^

    Thx -ROUGE-