iwie sowas?
PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 481, 238, 192, 124)
$List1 = GUICtrlCreateList("", 152, 40, 241, 110)
$Button1 = GUICtrlCreateButton("hinzufügen", 32, 48, 113, 41, $WS_GROUP)
$Button2 = GUICtrlCreateButton("ok", 216, 168, 57, 33, $WS_GROUP)
$Button3 = GUICtrlCreateButton("löschen", 304, 168, 65, 33, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$neu = InputBox("name","bitte name der neuen gruppe eingeben")
GUICtrlSetData($List1, $neu)
Case $Button2
MsgBox("","",GUICtrlRead($List1))
Case $Button3
$auswahl = _GUICtrlListBox_GetCurSel($List1)
_GUICtrlListBox_DeleteString($List1, $auswahl)
EndSwitch
WEnd