Hi Lashandan ,
Den gesamte Code möchte ich aktuell noch nicht präsentieren da er ein paar sensible Daten erhält.
Okay, sowas dachte ich mir schon. Dann hier mal ein Beispiel um zu klären, ob du dies meinst/brauchst:
AutoIt
; includes ---------------------------------------------------------------------
#include-once
; opt --------------------------------------------------------------------------
Opt('MustDeclareVars', 1)
; declaration ------------------------------------------------------------------
Global Const $GUI_EVENT_CLOSE = -3
Global $hGui
Global $cDropdown
Global $cLoadButton
Global $sListOfComputer = 'Et;repellendus;eos;quasi;adipisci;rerum;aperiam;Voluptatem;ea;nisi;Soluta;expedita'
; processing -------------------------------------------------------------------
_createGui()
_createGuiElements()
While True
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
ExitLoop
Case $cLoadButton
_fillCombobox($sListOfComputer)
EndSwitch
WEnd
_guiDispose()
; functions --------------------------------------------------------------------
Func _createGui()
$hGui = GUICreate('Demo', 350, 250)
EndFunc
Func _createGuiElements()
$cDropdown = GUICtrlCreateCombo('Bitte wählen ...', 15, 15, 320)
$cLoadButton = GUICtrlCreateButton('Laden', 15, 50, 320)
GUISetState(@SW_SHOW)
EndFunc
Func _guiDispose()
GUIDelete($hGUI)
Exit
EndFunc
Func _fillCombobox($sData)
Local $sListOfComputer = StringReplace($sData, ';', '|')
GUICtrlSetData($cDropdown, $sListOfComputer)
EndFunc
Alles anzeigen
Viele Grüße
Sven