Sobald ich das FileOpenDialog(Case $Directory) benutze und nicht selber den Standort eingebe( $Path = Input-Feld), schreibt das Programm nicht in meine .ini Datei?
[autoit]
Case $Add
$anzahl = 1
Do
If iniRead("X.ini", "Item", $anzahl, "") = "" Then
$z = GuiCtrlRead($Name)
$b = GuiCtrlRead($Path)
$c = GuiCtrlRead($Priority)
IniWrite("X.ini", "Item", $anzahl, $z)
IniWrite("X.ini", "Item", $anzahl&"b", $b)
IniWrite("X.ini", "Item", $anzahl&"c", $c)
MsgBox( 64, "", "Profil erfolgreich erstellt")
Exit
Endif
$anzahl = $anzahl + 1
Until $anzahl = 15
Case $Directory
$pfad = FileOpenDialog( "Programm auswählen", @ProgramFilesDir, "Anwendungen (*.exe)")
GuiCtrlSetData( $Path, $pfad)