Autoit Iniread and question :)

07/19/2017 20:38 owadziak#1
Can anyone explain me how to make a script that replace already exist text in ini file instead of adding one text to.each line ?
Example
I added a "Save button" to my gui and i want to make script that will write new text instead old one in my ini file ( its "ExampleColor" ) but im not sure how to do it.
Can anyone explain me how to.do it.correctly ? Cause i tried to add
$write1 = iniwrite("config.ini","Config","ExampleColor","$in put1") but it dont replace last one, it just adds new text to that position in config ini.
07/19/2017 21:31 psydinger#2
Referencing the manual, the last parameter ("value") either writes or changes the value of the key.

Source: [Only registered and activated users can see links. Click Here To Register...]

Make sure again that you are calling the existing section and key properly.

Alternatively, you could target the whole section in the .ini file with IniWriteSection():

[Only registered and activated users can see links. Click Here To Register...]
07/20/2017 10:25 owadziak#3
Ok thanks for thie. Thats what i were asking for

If i make $Write1 = IniWriteSection("Config.ini","Config","examplecolo r",input1)
It will change last saved value to new one that is in input window right now