MyTetra Share
Делитесь знаниями!
iniWrite
Время создания: 23.04.2017 11:39
Раздел: AutoHotkey - Файлы - ini-files
Запись: xintrea/mytetra_db_mcold/master/base/1492936783amwj62c57j/text.html на raw.githubusercontent.com

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



Так же в этом разделе:
 
MyTetra Share v.0.59
Яндекс индекс цитирования