<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Вывод строк из текстового файла по порядку.]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16211&amp;type=atom" />
	<updated>2021-04-08T16:55:19Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16211</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вывод строк из текстового файла по порядку.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147222#p147222" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>grabar1vladimir</strong>, проставьте знаки препинания в предложениях. В том числе запятые. Без них вместо предложений получаются мутные потоки сознания.</span></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2021-04-08T16:55:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147222#p147222</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вывод строк из текстового файла по порядку.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147219#p147219" />
			<content type="html"><![CDATA[<p>Первый раз&nbsp; с таким столкнулся, создал создать через как&nbsp; AHK&nbsp; и все сработало</p>]]></content>
			<author>
				<name><![CDATA[grabar1vladimir]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41621</uri>
			</author>
			<updated>2021-04-08T15:59:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147219#p147219</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вывод строк из текстового файла по порядку.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147217#p147217" />
			<content type="html"><![CDATA[<p>Как вы только скрипты пишите. Специально создал новый скрипт без примесей, вставил как есть, поменял название файла на тот, что есть в папке со скриптом - текст печатает.<br />Обновить AHK может или ещё что нужно с вашей стороны.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-04-08T15:43:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147217#p147217</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вывод строк из текстового файла по порядку.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147216#p147216" />
			<content type="html"><![CDATA[<p>Тоже проверил последний&nbsp; скрипт&nbsp; не работает&nbsp; пустую строку&nbsp; печатает, пробовать и кодировку менять не помогло</p>]]></content>
			<author>
				<name><![CDATA[grabar1vladimir]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41621</uri>
			</author>
			<updated>2021-04-08T15:35:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147216#p147216</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вывод строк из текстового файла по порядку.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147030#p147030" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>__Михаил__ пишет:</cite><blockquote><p>Ну так наверно путь к файлу нужно указать верный. откуда нам тут знать кто где и какие файлы хранит?</p></blockquote></div><p>Проблема не в этом, но все равно спасибо, наметки есть.</p>]]></content>
			<author>
				<name><![CDATA[DrDron]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39496</uri>
			</author>
			<updated>2021-03-28T10:36:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147030#p147030</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вывод строк из текстового файла по порядку.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147029#p147029" />
			<content type="html"><![CDATA[<p>Ну так наверно путь к файлу нужно указать верный. Откуда нам тут знать кто где и какие файлы хранит?</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-03-28T10:26:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147029#p147029</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вывод строк из текстового файла по порядку.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147027#p147027" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>__Михаил__ пишет:</cite><blockquote><p>В чём проблема добавить переменную и затем увеличивать её после использования текста? В школе совсем ничему не учат уже?</p><div class="codebox"><pre><code>File := A_ScriptDir &quot;\Текст.txt&quot;
Text := Array()

Loop, Read, % File
 Text[A_Index] := A_LoopReadLine
Return

F2::	; Вывод текста:
R++
SendInput,  % Text[R] &quot;`n&quot;
Return</code></pre></div></blockquote></div><p>Не рабочий скрипт и я могу написать, не работает это.</p>]]></content>
			<author>
				<name><![CDATA[DrDron]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39496</uri>
			</author>
			<updated>2021-03-28T10:04:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147027#p147027</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вывод строк из текстового файла по порядку.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147026#p147026" />
			<content type="html"><![CDATA[<p>В чём проблема добавить переменную и затем увеличивать её после использования текста? В школе совсем ничему не учат уже?</p><div class="codebox"><pre><code>File := A_ScriptDir &quot;\Текст.txt&quot;
Text := Array()

Loop, Read, % File
 Text[A_Index] := A_LoopReadLine
Return

F2::	; Вывод текста:
R++
SendInput,  % Text[R] &quot;`n&quot;
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-03-28T09:59:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147026#p147026</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вывод строк из текстового файла по порядку.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147025#p147025" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>__Михаил__ пишет:</cite><blockquote><p>Тут 5 минут потыкать и скрипт готов.</p><div class="codebox"><pre><code>File := A_ScriptDir &quot;\Текст.txt&quot;
Text := Array()

Loop, Read, % File
 Text[A_Index] := A_LoopReadLine
Return

F2:: ; Вывод текста из списка.
Random, R,1, Text.Count()
MsgBox, % R &quot;: &quot; Text[R]
Return</code></pre></div></blockquote></div><p>Этот скрипт выводит рандомно, а мне нужно по порядку.</p>]]></content>
			<author>
				<name><![CDATA[DrDron]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39496</uri>
			</author>
			<updated>2021-03-28T09:49:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147025#p147025</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вывод строк из текстового файла по порядку.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147024#p147024" />
			<content type="html"><![CDATA[<p>Тут 5 минут потыкать и скрипт готов.</p><div class="codebox"><pre><code>File := A_ScriptDir &quot;\Текст.txt&quot;
Text := Array()

Loop, Read, % File
 Text[A_Index] := A_LoopReadLine
Return

F2:: ; Вывод текста из списка.
Random, R,1, Text.Count()
MsgBox, % R &quot;: &quot; Text[R]
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-03-28T09:09:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147024#p147024</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вывод строк из текстового файла по порядку.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147023#p147023" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ypppu пишет:</cite><blockquote><div class="quotebox"><cite>12345.txt пишет:</cite><blockquote><p>Строка1<br />Строка2<br />Строка3</p></blockquote></div><div class="codebox"><pre><code>Loop, read, 12345.txt
{
MsgBox, %A_LoopReadLine%
} </code></pre></div></blockquote></div><p>Этот скрипт тоже сразу все выводит, а мне нужно чтобы после нажатия скрипт завершал работу и потом по нажатию кнопки следующая строка.</p>]]></content>
			<author>
				<name><![CDATA[DrDron]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39496</uri>
			</author>
			<updated>2021-03-28T09:09:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147023#p147023</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вывод строк из текстового файла по порядку.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147022#p147022" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>12345.txt пишет:</cite><blockquote><p>Строка1<br />Строка2<br />Строка3</p></blockquote></div><div class="codebox"><pre><code>Loop, read, 12345.txt
{
MsgBox, %A_LoopReadLine%
} </code></pre></div>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2021-03-28T09:07:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147022#p147022</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вывод строк из текстового файла по порядку.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147020#p147020" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ypppu пишет:</cite><blockquote><p>В русской справке всё разжёвано. Незачем цитировать её на форуме.</p></blockquote></div><p>В русской справке есть такой пример который выводит все содержимое файла, а мне нужно чтобы каждый раз нажимать на кнопу после завершения скрипта и была новая строка.</p><div class="codebox"><pre><code>Loop, read, C:\Database Export.txt
{
    Loop, parse, A_LoopReadLine, %A_Tab%
    {
        MsgBox, Поле номер %A_Index%: %A_LoopField%.
    }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DrDron]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39496</uri>
			</author>
			<updated>2021-03-28T08:55:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147020#p147020</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вывод строк из текстового файла по порядку.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147019#p147019" />
			<content type="html"><![CDATA[<p>В русской справке всё разжёвано. Незачем цитировать её на форуме.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2021-03-28T08:52:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147019#p147019</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вывод строк из текстового файла по порядку.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147018#p147018" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ypppu пишет:</cite><blockquote><p>При помощи команды <em>Loop (чтение файла)</em>.</p></blockquote></div><p> А конкретный пример можно? Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[DrDron]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39496</uri>
			</author>
			<updated>2021-03-28T08:21:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147018#p147018</id>
		</entry>
</feed>
