<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Ппроблема при использовании Send, %Clipboard%]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=17322&amp;type=atom" />
	<updated>2022-10-12T11:49:59Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=17322</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ппроблема при использовании Send, %Clipboard%]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=155238#p155238" />
			<content type="html"><![CDATA[<p><strong>becauseim</strong>, не используйте старые чужие темы, <a href="https://forum.script-coding.com/rules.html#3.11.:~:text=%D0%BD%D0%B5%20%D1%81%D1%82%D0%B5%D1%81%D0%BD%D1%8F%D0%B9%D1%82%D0%B5%D1%81%D1%8C%20%D1%81%D0%BE%D0%B7%D0%B4%D0%B0%D1%82%D1%8C%20%D0%BD%D0%BE%D0%B2%D1%83%D1%8E%20%D1%82%D0%B5%D0%BC%D1%83">создайте свою</a>.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-10-12T11:49:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=155238#p155238</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ппроблема при использовании Send, %Clipboard%]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=155234#p155234" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>^!space::
@:=Clip()
RunWait, Everything.exe, %A_ProgramFiles%\Everything\
Clip(@)
return

Clip(Text=&quot;&quot;, Reselect=&quot;&quot;){ ; http://www.autohotkey.com/forum/viewtopic.php?p=467710 , modified February 19, 2013
	Static BackUpClip, Stored, LastClip
	If (A_ThisLabel = A_ThisFunc) {
		If (Clipboard == LastClip)
			Clipboard := BackUpClip
		BackUpClip := LastClip := Stored := &quot;&quot;
	} Else {
		If !Stored {
			Stored := True
			BackUpClip := ClipboardAll ; ClipboardAll must be on its own line
		} Else
			SetTimer, %A_ThisFunc%, Off
		LongCopy := A_TickCount, Clipboard := &quot;&quot;, LongCopy -= A_TickCount ; LongCopy gauges the amount of time it takes to empty the clipboard which can predict how long the subsequent clipwait will need
		If (Text = &quot;&quot;) {
			SendInput, ^c
			ClipWait, LongCopy ? 0.6 : 0.2, True
		} Else {
			Clipboard := LastClip := Text
			ClipWait, 10
			SendInput, ^v
			;~ Send %Clipboard%
		}
		SetTimer, %A_ThisFunc%, -700
		Sleep 20 ; Short sleep in case Clip() is followed by more keystrokes such as {Enter}
		If (Text = &quot;&quot;)
			Return LastClip := Clipboard
		Else If (ReSelect = True) or (Reselect and (StrLen(Text) &lt; 3000)) {
			StringReplace, Text, Text, `r, , All
			SendInput, % &quot;{Shift Down}{Left &quot; StrLen(Text) &quot;}{Shift Up}&quot;
		}
	}
	Return
	Clip:
	Return Clip()
}
</code></pre></div><p>Если не отпустить модификаторы, вставка буфера не срабатывает.<br />Подскажите, что нужно изменить, чтобы избежать такого конфликта?</p>]]></content>
			<author>
				<name><![CDATA[becauseim]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33149</uri>
			</author>
			<updated>2022-10-12T06:59:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=155234#p155234</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ппроблема при использовании Send, %Clipboard%]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=154418#p154418" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> хаха, хорошо.</p>]]></content>
			<author>
				<name><![CDATA[k3fjeee]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42742</uri>
			</author>
			<updated>2022-08-16T05:32:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=154418#p154418</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ппроблема при использовании Send, %Clipboard%]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=154417#p154417" />
			<content type="html"><![CDATA[<p>Только используйте, пожалуйста, <a href="https://forum.script-coding.com/misc.php?action=rules#literacy">точки</a> в конце предложений, у нас с этим строго.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-08-16T05:08:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=154417#p154417</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ппроблема при использовании Send, %Clipboard%]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=154416#p154416" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Догнал, спасибо</p>]]></content>
			<author>
				<name><![CDATA[k3fjeee]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42742</uri>
			</author>
			<updated>2022-08-16T05:03:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=154416#p154416</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ппроблема при использовании Send, %Clipboard%]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=154415#p154415" />
			<content type="html"><![CDATA[<p>Команда Send по умолчанию отправляет не текст, а клавиши. А перечисленные символы (кроме кавычки, которая посылается без проблем) имеют специальное значение (читайте справку по Send, там же узнаете, как это обойти).</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-08-16T04:59:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=154415#p154415</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Ппроблема при использовании Send, %Clipboard%]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=154414#p154414" />
			<content type="html"><![CDATA[<p>Привет.</p><p>При попытке вставить текст из буфера (Send, %Clipboard%) не вставляются некоторые символы !, # , &quot;, +. (Это те которые мне удалось заметить)</p><p>Например: Текст в буфере #Пр!ивет, то вставится только Првет (без буквы и).</p><p>Как мне решить проблему?</p><p>Решил проблему так: Send, ^v</p><p>Это единственное решение?</p>]]></content>
			<author>
				<name><![CDATA[k3fjeee]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42742</uri>
			</author>
			<updated>2022-08-16T04:46:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=154414#p154414</id>
		</entry>
</feed>
