Save xD

07/27/2012 16:40 CantShutMyMouth#1
So,there is only an example of a code:

PHP Code:

$1=GuiCTRLCreateInput("user",1,1,1,1)
$
2=GuiCTRLCreateInput("pass",1,1,1,1)
$
3=GuiCTRLCreateCheckBox("Remember the user and pass",1,1,1,1)

Case $
;how to case $or what function to call to remember the user and pass for next time when the script is runned

how to case $3 or what function to call to remember the user and pass for next time when the script is runned?
07/27/2012 19:18 [Pro]grammierer#2
Save it in a .txt File
07/27/2012 19:38 lolkop#3
check out this small example:
Code:
Dim $control[3][2], $name[2] = ['User','Pass']
GUICreate('GUI', 150, 70, Default, Default, 0x10CA0000)
For $i=0 To 1
	$control[0][$i] = GUICtrlCreateLabel($name[$i]&': ', 10, 12+20*$i, 30, 20)
	$control[1][$i] = GUICtrlCreateInput(IniRead('save.ini', 'section', $name[$i], ''), 40, 10+20*$i, 100, 20)
	$control[2][$i] = GUICtrlCreateCheckbox('save '&$name[$i], 8+72*$i, 50, 65, 20)
Next

While GUIGetMsg()<>-3
WEnd

For $i=0 To 1
	If GUICtrlRead($control[2][$i]) = 1 Then IniWrite('save.ini', 'section', $name[$i], GUICtrlRead($control[1][$i]))
Next
07/28/2012 02:59 Lumi#4
Look at the Function: IniWrite and IniRead.