$Form1 = GUICreate("Form1", 800, 398, 61, 182)
GUICtrlCreateLabel("Name", 20, 48, 46, 22)
GUICtrlSetFont(-1, 12, 400, 0, "Arial")
$Input1 = GUICtrlCreateInput("Input Name", 80, 48,200, 22)
GUICtrlCreateLabel("URL", 20, 98, 46, 22)
GUICtrlSetFont(-1, 12, 400, 0, "Arial")
$Input2 = GUICtrlCreateInput("Input URL", 80, 98,250, 22)
GUICtrlCreateLabel("PIC_URL", 20, 148, 46, 22)
GUICtrlSetFont(-1, 12, 400, 0, "Arial")
$Input3 = GUICtrlCreateInput("Input PIC_URL", 80, 148,250, 22)
$Button1 = GUICtrlCreateButton("Enter", 500, 114, 80, 30, 0)
GUISetState()
$Value = -1
While 1
Switch GUIGetMsg()
Case -3
Exit
Case $Button1
$Value += 1
IniWrite(@ScriptDir&"\Config.ini", "Name", "Name"&$Value, GUICtrlRead($Input1))
IniWrite(@ScriptDir&"\Config.ini", "Address", "Address"&$Value, GUICtrlRead($Input2))
IniWrite(@ScriptDir&"\Config.ini", "ImageAddress", "ImageAddress"&$Value, GUICtrlRead($Input3))
EndSwitch
WEnd
|