Hallo,
ich wollte einmal fragen, ob jemand weiß, wie man eine Suchfunktion in einer Listbox einbauen kann? Also wenn ich z.B. im Input das Wort "a" eingebe, soll er zu auch zu a springen. Wenn ich z.B. "aff" eingebe, soll er zu Affe springen.
Hier mal mein Skript :
[autoit]#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 404, 304, 192, 124)
$suche = GUICtrlCreateLabel("suche", 8, 8, 33, 17)
$Input1 = GUICtrlCreateInput("Input1", 56, 8, 321, 21)
$List1 = GUICtrlCreateList("", 8, 32, 377, 70)
$Worter = StringSplit("Affe,Banane,Defas,Casll,Binne,Cartwe,DDasdsa,Antenne,EEE", ",")
For $i = 1 to 9
GuiCtrlSetData($List1,$Worter[$i])
Next
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd