
#include <File.au3>
Global $Anleitungen,$ComboItems
 _FileReadToArray("Anleitungen.txt",$Anleitungen,0,"|")
_ArrayDisplay($Anleitungen)

#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 510, 218, 192, 124)
$Combo1 = GUICtrlCreateCombo("", 32, 56, 361, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
For $i = 0 to Ubound($Anleitungen) -1
$ComboItems &= $Anleitungen[$i][0] & "|"
Next
GUICtrlSetData($Combo1, $ComboItems)



GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
		Case $Combo1
			$Erg = _ArraySearch($Anleitungen, GuiCtrlRead($Combo1,0))
			;MsgBox(4096, "Titel", $Erg, 5)
			MsgBox(4096, "Titel", $Anleitungen[$Erg][1] & @CRLF & $Anleitungen[$Erg][2], 5)
	EndSwitch
WEnd
