<?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=16220&amp;type=atom" />
	<updated>2021-04-01T17:27:05Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16220</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Построчная передача текста в буфер обмена]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147116#p147116" />
			<content type="html"><![CDATA[<p>В <a href="http://forum.script-coding.com/viewtopic.php?pid=147026#p147026">этом</a> сообщении я привёл пример как считать весь файл, поместить в массив и далее по клавише выводить по одной строке.<br />Остаётся немного подшаманить под свои нужды.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-04-01T17:27:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147116#p147116</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Построчная передача текста в буфер обмена]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147114#p147114" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />OK, структуру я понял но как это сделать нет</p>]]></content>
			<author>
				<name><![CDATA[Vailf]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41597</uri>
			</author>
			<updated>2021-04-01T16:45:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147114#p147114</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Построчная передача текста в буфер обмена]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147112#p147112" />
			<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>2021-04-01T15:50:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147112#p147112</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Построчная передача текста в буфер обмена]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147111#p147111" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Я зашёл в тупик <br /></p><div class="codebox"><pre><code>
File := A_ScriptDir &quot;\теeкст.txt&quot;
Loop
{
 FileReadLine, % File, %A_Index%
 if ErrorLevel
 break
return
} 
return

F2::	
SendInput, %A_Index%
Return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Vailf]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41597</uri>
			</author>
			<updated>2021-04-01T15:25:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147111#p147111</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Построчная передача текста в буфер обмена]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147108#p147108" />
			<content type="html"><![CDATA[<p>Вижу, поменяли концепцию. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br />Переменные A_Index доступны только непосредственно в цикле, вне его пределов они будут пустыми.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-04-01T15:13:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147108#p147108</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Построчная передача текста в буфер обмена]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147107#p147107" />
			<content type="html"><![CDATA[<p>Начало хорошее. Но в цикле не нужно считывать строку дополнительно командой FileReadLine, строка и так уже считана. Если откроете справку, увидите, в какой она переменной.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-04-01T15:11:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147107#p147107</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Построчная передача текста в буфер обмена]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147104#p147104" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br /></p><div class="codebox"><pre><code>
File := A_ScriptDir &quot;\Текст.txt&quot;
{
 FileReadLine, line, % File, %A_Index%
 if ErrorLevel
 break
return
}

F2::	;
SendInput, %A_Index% 
Return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Vailf]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41597</uri>
			</author>
			<updated>2021-04-01T14:50:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147104#p147104</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Построчная передача текста в буфер обмена]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147063#p147063" />
			<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>2021-03-30T18:43:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147063#p147063</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Построчная передача текста в буфер обмена]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147059#p147059" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />я попробовал сделать используя документацию, но скорее всего из-за того что я новичок у меня не получилось.</p>]]></content>
			<author>
				<name><![CDATA[Vailf]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41597</uri>
			</author>
			<updated>2021-03-30T15:13:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147059#p147059</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Построчная передача текста в буфер обмена]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147058#p147058" />
			<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>2021-03-30T12:30:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147058#p147058</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Построчная передача текста в буфер обмена]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147054#p147054" />
			<content type="html"><![CDATA[<p>Добрый день<br />Как можно реализовать построчную передача текста в буфер обмена из текстового документа по нажатию клавиши?</p>]]></content>
			<author>
				<name><![CDATA[Vailf]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41597</uri>
			</author>
			<updated>2021-03-29T20:00:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147054#p147054</id>
		</entry>
</feed>
