hi
im trying to write data from my gui to registry but it write some dummy data
here is code
when i run this it write me this to registry
keys :
14
15
16
17
18
19
20
21
22
23
times :
4
5
6
7
8
9
10
11
12
13
and it need to write for keys 3 4 5 6 7 8 9 0 ' +
and for times 1000 1000 1000 1000 1000 etc...
anyone know the problem ?
im trying to write data from my gui to registry but it write some dummy data
here is code
Code:
$Input1 = GUICtrlCreateInput("1000", 18, 74, 38, 17, 0x0001)
$Input2 = GUICtrlCreateInput("1000", 72, 74, 38, 17, 0x0001)
$Input3 = GUICtrlCreateInput("1000", 125, 74, 38, 17, 0x0001)
$Input4 = GUICtrlCreateInput("1000", 179, 74, 38, 17, 0x0001)
$Input5 = GUICtrlCreateInput("1000", 232, 74, 38, 17, 0x0001)
$Input6 = GUICtrlCreateInput("1000", 286, 74, 38, 17, 0x0001)
$Input7 = GUICtrlCreateInput("1000", 339, 74, 38, 17, 0x0001)
$Input8 = GUICtrlCreateInput("1000", 393, 74, 38, 17, 0x0001)
$Input9 = GUICtrlCreateInput("1000", 446, 74, 38, 17, 0x0001)
$Input10 = GUICtrlCreateInput("1000", 500, 74, 38, 17, 0x0001)
$Input11 = GUICtrlCreateInput("3", 30, 46, 17, 17, 0x0001)
$Input12 = GUICtrlCreateInput("4", 84, 46, 17, 17, 0x0001)
$Input13 = GUICtrlCreateInput("5", 137, 46, 17, 17, 0x0001)
$Input14 = GUICtrlCreateInput("6", 190, 46, 17, 17, 0x0001)
$Input15 = GUICtrlCreateInput("7", 243, 46, 17, 17, 0x0001)
$Input16 = GUICtrlCreateInput("8", 296, 46, 17, 17, 0x0001)
$Input17 = GUICtrlCreateInput("9", 350, 46, 17, 17, 0x0001)
$Input18 = GUICtrlCreateInput("0", 404, 46, 17, 17, 0x0001)
$Input19 = GUICtrlCreateInput("-", 457, 46, 17, 17, 0x0001)
$Input20 = GUICtrlCreateInput("+", 510, 46, 17, 17, 0x0001)
and function to write data
Func _addToRegistry()
; create key in registry
RegWrite("HKEY_CURRENT_USER\Software\Test")
; write keys and times to registry
RegWrite("HKEY_CURRENT_USER\Software\Test", "Keys", "REG_MULTI_SZ", $Input11 & @LF & $Input12 & @LF & $Input13 & @LF & $Input14 & @LF & $Input15 & @LF & $Input16 & @LF & $Input17 & @LF & $Input18 & @LF & $Input19 & @LF & $Input20)
RegWrite("HKEY_CURRENT_USER\Software\Test", "Times", "REG_MULTI_SZ", $Input1 & @LF & $Input2 & @LF & $Input3 & @LF & $Input4 & @LF & $Input5 & @LF & $Input6 & @LF & $Input7 & @LF & $Input8 & @LF & $Input9 & @LF & $Input10)
EndFunc
keys :
14
15
16
17
18
19
20
21
22
23
times :
4
5
6
7
8
9
10
11
12
13
and it need to write for keys 3 4 5 6 7 8 9 0 ' +
and for times 1000 1000 1000 1000 1000 etc...
anyone know the problem ?