hier ein kleines bsp..
kannst es dir bestimmt zusammen reimen.. ^^
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 372, 188, 192, 124)
$Input1 = GUICtrlCreateInput("name", 24, 52, 121, 21)
$Input2 = GUICtrlCreateInput("password", 24, 92, 121, 21, BitOR($ES_PASSWORD,$ES_AUTOHSCROLL))
$Button1 = GUICtrlCreateButton("speichern", 176, 50, 95, 30, $WS_GROUP)
$Button2 = GUICtrlCreateButton("laden", 176, 90, 95, 30, $WS_GROUP)
$Button3 = GUICtrlCreateButton("Start", 275, 75, 95, 30, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Global $Ini = @ScriptDir & "\save.ini"
Global $name = IniRead($ini, "NAME", "name", "")
Global $password = IniRead($ini, "PASSWORD", "password", "")
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
speichern()
Case $Button2
GUICtrlSetData($Input1, $name)
GUICtrlSetData($Input2, $password)
Case $Button3
start()
EndSwitch
WEnd
Func speichern()
IniWrite($ini, "NAME", "name", GUICtrlRead($Input1))
IniWrite($ini, "PASSWORD", "password", GUICtrlRead($Input2))
EndFunc
Func start()
;;
EndFunc