Hallo zusammen
Wie komme ich an den Wert, den der User in der Dropdownbox ausgewählt hat?
[autoit]#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
;##################################################################
$config = (@ScriptDir & "\config.ini")
$Mylist = IniRead($config, "Configuration", "liste", "NichtGefunden")
;Content INI: liste=server1|server2|server3
;##################################################################
#Region ### START Koda GUI section ### Form=h:\_auto-it\robocopy\formdesign.kxf
$Form1_1 = GUICreate("Tool", 501, 501, 273, 142)
GUICtrlSetFont(-1, 10, 800, 0, "Arial")
$Label = GUICtrlCreateLabel("MyList:", 280, 56, 31, 20)
GUICtrlSetFont(-1, 10, 800, 0, "Arial")
$Target = GUICtrlCreateCombo("", 280, 80, 145, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, $Mylist, "item3") ; add other item snd set a new default
$GO = GUICtrlCreateButton("GO", 128, 424, 75, 25)
$Cancel = GUICtrlCreateButton("Cancel", 264, 424, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $GO
MsgBox(4096, "Test", $Label, 10)
Case $Cancel
Exit
EndSwitch
WEnd
Das ist jetzt sicher DIE n00b frage schlechthin
Surfy