IniWrite, Value, Filename, Section, Key
IniWrite, Pairs, Filename, Section
Pairs - The complete content of a section to write to the .ini file, excluding the [SectionName] header. Key must be omitted. Pairs must not contain any blank lines. If the section already exists, everything up to the last key=value pair is overwritten. Pairs can contain lines without an equal sign (=), but this may produce inconsistent results.
Скрипт:
; работа с pair значениями - клю=значение
F3::
IniWrite, my_pair=my_new_pair_value, test.ini, hellSection
return
F4::
IniRead, OutputVar, test.ini, hellSection, new_key_pair
MsgBox, Новый ключ - %OutputVar%
return
F5::
IniWrite, this is a new value, test.ini, hellSection, new_key
return
F6::
IniRead, OutputVar, test.ini, hellSection, new_key
MsgBox, Новый ключ - %OutputVar%
return