Hi,
Ich wollte einen Spieler schnellstarter machen, wo man den Pfad der .exe seiner Spieler angibt und sie in die Combobox übertragen werden, nur wenn ich eine .exe angebe ist garnichts in der Combobox.
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#Include <GuiComboBoxEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=c:\dokumente und einstellungen\a\desktop\form1.kxf
$Form1_1 = GUICreate("Schnellstarter", 633, 231, 318, 145)
$Label1 = GUICtrlCreateLabel("Bitte geben sie die den Pfad der .exe Dateien Ihrer Spiele an.", 96, 24, 397, 17)
$Game = GUICtrlCreateCombo("Game", 96, 56, 409, 25)
GUICtrlSetData(-1, "Hinzufügen....")
$Starte = GUICtrlCreateButton("Spiel starten!", 96, 88, 241, 49, $WS_GROUP)
$Hinzuf = GUICtrlCreateButton("Spiel hinzufügen!", 352, 88, 153, 49, $WS_GROUP)
$Abbrechen = GUICtrlCreateButton("Abbrechen", 96, 144, 409, 57, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
MsgBox(0,"","Beendet")
Exit
Case $Hinzuf
$Neu = FileOpenDialog("Titel", @ScriptDir, "Ausführbare Dateien (*.exe)")
Case $Abbrechen
MsgBox(0,"","Vielen Dank, dass sie Philware genutzt haben")
Exit
EndSwitch
WEnd
_GUICtrlComboBoxEx_AddString($Game,$Neu[0])
[/autoit]Vielen Dank schonmal ![]()