<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: отправка сообщений из txt построчно]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=14771</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14771&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: отправка сообщений из txt построчно».]]></description>
		<lastBuildDate>Thu, 09 May 2019 16:16:33 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: отправка сообщений из txt построчно]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=134264#p134264</link>
			<description><![CDATA[<p>Вы вытащите горячую клавишу за пределы цикла. Она и останавливает ваш скрипт.</p>]]></description>
			<author><![CDATA[null@example.com (belyankin12)]]></author>
			<pubDate>Thu, 09 May 2019 16:16:33 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=134264#p134264</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: отправка сообщений из txt построчно]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=134251#p134251</link>
			<description><![CDATA[<p><strong>rossmad3</strong></p><div class="codebox"><pre><code>1::
Loop
{
    FileReadLine, line, D:\text.txt, %A_Index%
     if ErrorLevel
	{
		MsgBox, 4160, , Готово!
        ExitApp
	}
	FileAppend, %line% `n, %A_ScriptFullPath%
    sleep, 100
}


2::Pause
return


Esc::
{
ExitApp
}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (inseption86)]]></author>
			<pubDate>Thu, 09 May 2019 13:56:35 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=134251#p134251</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: отправка сообщений из txt построчно]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=134250#p134250</link>
			<description><![CDATA[<p><strong>belyankin12</strong><br />Подредактировал код.&nbsp; Скрипт запускается, но отправляется только первая строка текста. И всё</p><div class="codebox"><pre><code>1::
Loop
{
    FileReadLine, a, D:\text.txt, %A_Index%
     if ErrorLevel
        ExitApp
	Click
    Send %a% {enter}	
    sleep, 3000
2::Pause
}
return
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (rossmad3)]]></author>
			<pubDate>Thu, 09 May 2019 13:16:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=134250#p134250</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: отправка сообщений из txt построчно]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=134247#p134247</link>
			<description><![CDATA[<p>Вы почитайте внимательно про команду FileReadLine в справке. Она имеет параметр, который указывает на имя переменной, в которой будет хранится прочитанный текст. Кроме того, в вашем примере скрипт будет бесконечно читать первую строчку (переменная A_Index в помощь). А ещё советую добавить условие if ErrorLevel, ибо цикл не будет останавливаться, если дойдет до конца документа.</p>]]></description>
			<author><![CDATA[null@example.com (belyankin12)]]></author>
			<pubDate>Thu, 09 May 2019 12:19:29 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=134247#p134247</guid>
		</item>
		<item>
			<title><![CDATA[AHK: отправка сообщений из txt построчно]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=134245#p134245</link>
			<description><![CDATA[<p>Появилась необходимость в скрипте выполняет построчное печатание текста из .txt файла. То есть, каждую строку этого файла по очереди печатает или отправляет через SendInput нажимая ЛКМ после каждой отправки. Выглядить должно примерно так по хронологии<br />Запуск &gt; Щелчок &gt; отправка первой строки блокнота {enter} &gt; Щелчок &gt; отправка второй строки {enter} и так до конца текстового документа.</p><p>Но столкнулся с некоторыми проблемами, не понимаю как обозначить в строке SendInput что необходимо печатать.<br />И с тем, что при запуске выходит ошибка с чтением нужного блокнота:<br /><span class="postimg"><img src="http://rgho.st/7RJq478Pq/image.png" alt="http://rgho.st/7RJq478Pq/image.png" /></span></p><div class="codebox"><pre><code>1::
Loop
{
    FileReadLine, D:\text.txt, 1
    Click
    SendInput {enter}	
    sleep, 3000
}
return
2::Pause</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (rossmad3)]]></author>
			<pubDate>Thu, 09 May 2019 12:06:57 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=134245#p134245</guid>
		</item>
	</channel>
</rss>
