Echt Klasse funktioniert
Ich habe hier die fertige Funktion für diejenigen die das selbe Problem in Zukunft antreffen:
Spoiler anzeigen
#include <guicomboboxex.au3>
#include <guiconstantsex.au3>
#include <guilistbox.au3>
$hList=GetComboBoxData($hCombos)
$iCount = _GUICtrlListBox_GetCount($hList)
For $i = 0 To $iCount -1
ConsoleWrite('DropdownList Item-' & $i+1 & ' : ' & _GUICtrlListBox_GetText($hList, $i) & @CRLF)
Next
exit
Func GetComboBoxData($fhCombo)
; create structure to receive combobox infos
Local $tagCOMBOBOXINFO = 'struct;dword cbSize;int[4];int[4];dword stateButton;hwnd hwndCombo;hwnd hwndItem;hwnd hwndList;endstruct'
Local $tCOMBOBOXINFO = DllStructCreate($tagCOMBOBOXINFO)
DllStructSetData($tCOMBOBOXINFO, 'cbSize', DllStructGetSize($tCOMBOBOXINFO))
Local $pCOMBOBOXINFO = DllStructGetPtr($tCOMBOBOXINFO)
; ask for Combobox Info
$aRet = DllCall('user32.dll', 'int', 'GetComboBoxInfo', 'hwnd', $fhCombo, 'ptr', $pCOMBOBOXINFO)
If Not @error Then
$hList = DllStructGetData($tCOMBOBOXINFO, "hwndList")
Else
MsgBox(16, "DLL not found", 'Die DLL "user32.dll" konnte nicht gefunden werden')
EndIf
Return $hList
EndFunc
Danke
PS: Zeile 9 wäre so korrekt:
ConsoleWrite('DropdownList Item-' & $i+1 & ' : ' & _GUICtrlListBox_GetText($hList, $i) & @CRLF)
//EDIT
Habe erst jetzt die einfachere Variante von dir gesehen. Wie heißt es so schön? Man sieht den Wald vor lauter Bäumen nicht
Gruss: Sonic