<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Запись масива в INI файл]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=7392&amp;type=atom" />
	<updated>2012-07-26T08:03:04Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=7392</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Запись масива в INI файл]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=62041#p62041" />
			<content type="html"><![CDATA[<p>Спасибо <strong>Irbis</strong>!<br />Вы отчасти предупредили мой вопрос о слиянии двух строк внутри цикла...у меня ни как это не получалось. Все ни как не могу сложить у себя в мозгах принципы синтаксиса в АНК.</p>]]></content>
			<author>
				<name><![CDATA[Mikki]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=5905</uri>
			</author>
			<updated>2012-07-26T08:03:04Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=62041#p62041</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Запись масива в INI файл]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=62021#p62021" />
			<content type="html"><![CDATA[<p>Возможно,если&nbsp; кто-то и озадачивался таким вопросом, то скорее всего тоже писал самостоятельное решение. А скрипт из первого поста работать как задумано и не будет, потому что в %arrayOFindex% содержится не список элементов, а лишь указатель на первый элемент.<br />(И <strong><em>MsgBox, %arrayOFindex%</em></strong> выведет пустое сообщение, так что IniWrite все &#039;&#039;честно&#039;&#039; выполнила&nbsp; <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> )</p><p>Второй вариант с переводом в текстовую строку вполне нормален, потом на чтение еще один цикл <strong><span style="color: blue">Loop, Parse, IndexList, `,</span></strong>&nbsp; - ну это и так понятно.<br />Без переменой <strong>dd</strong> можно вполне обойтись, ну это уж мой &quot;бзик&quot; - всё и вся оптимизировать <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br /></p><div class="codebox"><pre><code>        indexList := indexList indexA[A_Index] &quot;,&quot;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2012-07-25T13:28:27Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=62021#p62021</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Запись масива в INI файл]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=62019#p62019" />
			<content type="html"><![CDATA[<p>Я часом не пытаюсь &quot;изобрести колесо&quot;?</p><div class="codebox"><pre><code>indexA := [0x2206,0x2126,0x03b1,0x03b2,0x03b3,0x03b4,0x03b5,0x03b6,0x03b7,0x03b8,0x03b9
,0x03ba,0x03bc,0x03bd,0x03be,0x03bf,0x03c0,0x03c1,0x03c2,0x03c3,0x03c4,0x03c5,0x03c6,0x03c7,0x03c8,0x03c9
,0x007e,0x221e,0x00b0,0x00b1,0x2264,0x2260,0x2248,0x2265,0x2219,0x00d7,0x00f7,0x2215,0x2026,0x2212]

IniName := A_ScriptDir &quot;\&quot; RegExReplace(A_ScriptName, &quot;(.*)\..*&quot;, &quot;$1&quot;) &quot;.ini&quot;

	SetFormat IntegerFast, H
	Loop % indexA.MaxIndex() 
	{
		dd := indexA[A_Index]
		indexList = %indexList%%dd%,
	}
	IniWrite, %indexList%, % IniName, Settings, indexList
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Mikki]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=5905</uri>
			</author>
			<updated>2012-07-25T13:11:05Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=62019#p62019</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Запись масива в INI файл]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=62014#p62014" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>arrayOFindex := [0x2206,0x2126,0x03b1,0x03b2,0x03b3,0x03b4,0x03b5,0x03b6,0x03b7,0x03b8,0x03b9]

IniName := A_ScriptDir &quot;\&quot; RegExReplace(A_ScriptName, &quot;(.*)\..*&quot;, &quot;$1&quot;) &quot;.ini&quot;
IniWrite, %arrayOFindex%, % IniName, Settings, indexList</code></pre></div><p>Не пишет значения массива в файл.</p>]]></content>
			<author>
				<name><![CDATA[Mikki]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=5905</uri>
			</author>
			<updated>2012-07-25T11:01:32Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=62014#p62014</id>
		</entry>
</feed>
