Тема: AHK: Что такое Pairs и есть ли делимитер для переменной в INI-файле
Нужно сохранить одномерный массив состоящий из строк/переменных в INI-файле.
arGenNameOut := [USERPROFILE "\AppData\Local\Mozilla"
,USERPROFILE "\AppData\Roaming\Mozilla"
,HOMEDRIVE "\Program Files (x86)\Mozilla Firefox"
,HOMEDRIVE "\Program Files (x86)\Mozilla Maintenance Service"
,""]
Вопрос №1 Что такое Pairs.
В справке по INI, есть что то, но нет примера или я не нашёл, а описание немного расплывчатое - тест не сработал или я не то написал.
IniWrite, Value, Filename, Section, Key
IniWrite, Pairs, Filename, Section...
Pairs
[v1.0.90+]: 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. Comments can be written to the file but are stripped out when they are read back by IniRead.
Я переводил, но так ничего не понял - сорри.
Вопрос №2 Есть ли делимитер/сепаратор для переменной в INI, которая является массивом.
Вопрос №3 Если в разных секциях объявить одинаковые ключи - такое разрешается? Или же надо идти по пути размножения INI-файлов?
OS Windows 7 x64
AutoHotkey v1.1.32.00 - November 24, 2019 Click to Download