<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Regexreplace, чтение секции файла INI]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=6013&amp;type=atom" />
	<updated>2019-08-13T19:46:12Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6013</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Regexreplace, чтение секции файла INI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135559#p135559" />
			<content type="html"><![CDATA[<p>Да любую, можно просто записать номер последнего ключа.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-08-13T19:46:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135559#p135559</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Regexreplace, чтение секции файла INI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135556#p135556" />
			<content type="html"><![CDATA[<p>Какую?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-08-13T19:12:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135556#p135556</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Regexreplace, чтение секции файла INI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135555#p135555" />
			<content type="html"><![CDATA[<p>А, ну если речь идёт не о своём ini, тогда может понадобиться. Для своего можно сделать более удобную конфигурацию.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-08-13T19:10:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135555#p135555</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Regexreplace, чтение секции файла INI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135554#p135554" />
			<content type="html"><![CDATA[<p>В PotPlayer, например, так —<br /></p><div class="codebox"><pre><code>
[RememberFiles]
0=E:\youtube_dl\Концерт Гос. ак. симф. оркестра СССР. Д-р Е.Светланов (1985).cNY5AI0_a44.mkv
1=D:\(TheDoors\The Doors - 30th Anniversary Collection\vol 1.avi
2=
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2019-08-13T19:04:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135554#p135554</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Regexreplace, чтение секции файла INI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135553#p135553" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><div class="quotebox"><cite>ypppu пишет:</cite><blockquote><p>Нет смысла усложнять ini-команды, в то время как есть объект.</p></blockquote></div><p>А что за объект?</p></blockquote></div><p>Object<br />AutoHotkey&#039;s basic object datatype is an associative array with features which allow its behaviour to be customized.<br />Там же уже есть встроенные MinIndex / MaxIndex / Length / Count. Если кодеру недостаточно возможностей ini-команд, значит нужно использовать объект в качестве инструмента упорядочения данных. По-моему это проще, чем танцы с бубном вокруг ini.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2019-08-13T19:03:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135553#p135553</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Regexreplace, чтение секции файла INI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135552#p135552" />
			<content type="html"><![CDATA[<p>Ну например названия ключей имеют индекс, новые ключи добавляются в конец секции. При следующем запуске надо узнать что было записано например последним, название ключа мы конечно не знаем. Также потребуется получить и имя ключа, чтобы далее записывать по индексу.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-08-13T18:55:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135552#p135552</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Regexreplace, чтение секции файла INI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135551#p135551" />
			<content type="html"><![CDATA[<p>Я вообще не очень понимаю, зачем читать строку по её расположению, или порядковому номеру. Названия ключа вполне достаточно.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-08-13T18:47:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135551#p135551</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Regexreplace, чтение секции файла INI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135550#p135550" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Зачем? Вопрос был</p></blockquote></div><p>Ну это смотря кто про что:<br /></p><div class="quotebox"><cite>ypppu пишет:</cite><blockquote><p>Не, нельзя узнать сколько ключей в разделе и сколько разделов в ini-файле стандартной командой. Но можно написать нестандартную команду.</p></blockquote></div><div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Чтобы прочитать предпоследнюю строку из списка, не надо знать количество строк.</p></blockquote></div><p>Ты про Regex, можно, но StrSplit будет нагляднее и проще править для новичка.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-08-13T18:42:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135550#p135550</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Regexreplace, чтение секции файла INI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135549#p135549" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Например в этом случае.</p></blockquote></div><p>Зачем? Вопрос был:<br /></p><div class="quotebox"><cite>DD пишет:</cite><blockquote><p>Дано ли такой командой прочитать из секции предпоследний ключ, количество которых меняется?</p></blockquote></div><p>Чтобы прочитать предпоследнюю строку из списка, не надо знать количество строк.<br /></p><div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>А тебе никогда это не требовалось?</p></blockquote></div><p>Мне никогда. Подозреваю, это могло бы понадобиться в случае какого-либо нестандартного использования ini-файла.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-08-13T18:32:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135549#p135549</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Regexreplace, чтение секции файла INI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135548#p135548" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>А зачем может понадобиться знать количество строк?</p></blockquote></div><p>Например в этом случае. А тебе никогда это не требовалось?<br />Хотя это не сложно сделать, когда известен какой перенос строки используется.<br /></p><div class="codebox"><pre><code>StrSplit(Section, &quot;`n&quot;).Count()</code></pre></div><div class="quotebox"><cite>ypppu пишет:</cite><blockquote><p>Нет смысла усложнять ini-команды, в то время как есть объект.</p></blockquote></div><p>А что за объект?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-08-13T18:26:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135548#p135548</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Regexreplace, чтение секции файла INI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135547#p135547" />
			<content type="html"><![CDATA[<p>Нет смысла усложнять ini-команды, в то время как есть объект. Просто надо считать array.Length(), как-то так, точно не помню.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2019-08-13T18:17:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135547#p135547</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Regexreplace, чтение секции файла INI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135546#p135546" />
			<content type="html"><![CDATA[<p>А зачем может понадобиться знать количество строк?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-08-13T18:10:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135546#p135546</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Regexreplace, чтение секции файла INI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135545#p135545" />
			<content type="html"><![CDATA[<p>Стандартная команда для подсчёта кол-ва строк не помешала бы.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-08-13T18:02:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135545#p135545</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Regexreplace, чтение секции файла INI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135544#p135544" />
			<content type="html"><![CDATA[<p>Да, это проблема.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-08-13T17:59:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135544#p135544</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Regexreplace, чтение секции файла INI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135543#p135543" />
			<content type="html"><![CDATA[<p>Тогда это будет уже не стандартная команда, а нестандартная команда.<br />Стандартной же команды для подсчета количества ключей и разделов нет.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2019-08-13T17:33:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135543#p135543</id>
		</entry>
</feed>
