Hallo Leute!
Ich brauch wieder mal eure hilfe! =)
Spoiler anzeigen
#include <GUIConstants.au3>
$lesen = IniRead("einstellungen.ini", "SPEICHER", "Lesen", "NotFound")
$schreiben = IniRead("einstellungen.ini", "SPEICHER", "Schreiben", "NotFound")
;--------------------------------------------------------------------------------
#Region ### START Koda GUI section ### Form=C:\Dokumente und Einstellungen\USER\Desktop\[Tenso] Soldat Font Editor\Tenso_Config.kxf
$Form1 = GUICreate("Tenso Soldat Font Editor - Setup", 385, 286, 193, 115)
$Input1 = GUICtrlCreateInput($lesen, 160, 72, 185, 21)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Input2 = GUICtrlCreateInput($schreiben, 160, 120, 185, 21)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label1 = GUICtrlCreateLabel("Laden:", 48, 72, 37, 17)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label2 = GUICtrlCreateLabel("Speichern:", 48, 120, 55, 17)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Button1 = GUICtrlCreateButton("Save", 208, 184, 75, 25, 0)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label3 = GUICtrlCreateLabel("Setup:", 48, 32, 40, 17)
GUICtrlSetFont(-1, 8, 800, 0, "Tahoma")
$Label4 = GUICtrlCreateLabel("Copyright by Tenso", 248, 256, 98, 17)
GUICtrlSetFont(-1, 8, 400, 2, "Tahoma")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $Button1
$lesen = IniWrite("einstellungen.ini", "SPEICHER", "Lesen", $lesen)
$schreiben = IniWrite("einstellungen.ini", "SPEICHER", "Schreiben", $schreiben)
MsgBox(4096, "Speichern", "Speichern! Erfolgreich!", 10)
Exit
EndSelect
WEnd
Wenn ich auf Save klicke.. speichert er nichts ab? denn Text von Input1 & 2.?? Ich möchte nur denn Text von Input 1 & 2 speichern -.-" und nicht nochmal die ini Datei..
Danke & Gruss Tince ~~