<?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=18227&amp;type=atom" />
	<updated>2024-06-16T09:06:49Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=18227</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вставить весь буфер обмена]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161128#p161128" />
			<content type="html"><![CDATA[<p><strong>size222</strong> Проверьте этот код:</p><div class="codebox"><pre><code>Ch := 1		; По умолчанию собирает всё что скопировано в буфер.
Global Arr := []	; Список скопированного.
OnClipboardChange(&quot;CopyClip&quot;, Ch)
Return

CopyClip(c){
 If (c = 1)	; Копировать только текстовые данные.
  Arr.Push(Clipboard)
}

F2::	; F2	Вкл. / Выкл. сбор скопированного:
OnClipboardChange(&quot;CopyClip&quot;, Ch := !Ch)
MsgBox, 0,, % &quot;Сбор текста в&quot; (!Ch ? &quot;ы&quot;:&quot;&quot;) &quot;ключен.&quot;, 3
Return

^b::	; Ctrl+B	Очищаем список:
Arr := []
MsgBox, 0,, Список очищен. , 1
Return

$^v::	; Ctrl+v	Вставить последние 3 скоп. в буфер.
KeyWait, Ctrl, U	; Ожидать отпускания гор. клавиш:
KeyWait, v, U
If Ch	; Отключить сбор на время выполнения:
 OnClipboardChange(&quot;CopyClip&quot;, 0)
S := Arr.Count(), T := &quot;&quot;
Loop, 3
 T .= Arr[S - 3 + A_Index] 	; Сбор последних 3 текстов в одну строку.
Clipboard := T
SendInput, ^{v}
If Ch
 OnClipboardChange(&quot;CopyClip&quot;, 1)
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2024-06-16T09:06:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161128#p161128</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вставить весь буфер обмена]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161125#p161125" />
			<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>2024-06-15T16:26:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161125#p161125</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Вставить весь буфер обмена]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161123#p161123" />
			<content type="html"><![CDATA[<p>Здравствуйте, Уважаемые Господа. Подскажите, есть необходимость вставить сразу несколько скопированных текстов. </p><p>Например копируем Ctrl+С &quot;Саша&quot; потом копируем &quot;Маша&quot; и копируем &quot;Даша&quot;</p><p>Далее при нажатии Ctrl+V вставляется Саша Маша Даша.</p><p>Далее, например сочетанием клавиши Ctrl+B очищаем буфер обмена и все по новой.</p><br /><p>Внесу поправку. Копирование текста происходит через OCR (распознавание текста с изображения), то есть текст копируется не с помощью сочетания клавиш Ctrl+С.</p><p>Нужно, чтобы именно с помощью сочетания клавиш Ctrl+V вставлялся весь буфер обмена.</p>]]></content>
			<author>
				<name><![CDATA[size222]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27237</uri>
			</author>
			<updated>2024-06-15T08:56:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161123#p161123</id>
		</entry>
</feed>
