<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Everything.exe]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14777&amp;type=atom" />
	<updated>2019-05-12T17:51:42Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14777</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Everything.exe]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134309#p134309" />
			<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>2019-05-12T17:51:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134309#p134309</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Everything.exe]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134306#p134306" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, да, ф-ия возвращает в буфер исходное содержимое.</p><p>Первый хоткей работает. Поиск в Гугл выделенного текста. Но именно с <a href="https://www.voidtools.com/">Everything</a> - нет, хотя у неё вроде как стандартный интерфейс.</p>]]></content>
			<author>
				<name><![CDATA[becauseim]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33149</uri>
			</author>
			<updated>2019-05-12T16:06:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134306#p134306</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Everything.exe]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134304#p134304" />
			<content type="html"><![CDATA[<p>А что должна делать функция Clip()? Что-то помещать в буфер обмена? Тогда поставьте после её вызова</p><div class="codebox"><pre><code>MsgBox, % Clipboard </code></pre></div><p>чтобы убедиться, что она правильно работает.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-05-12T15:00:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134304#p134304</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Everything.exe]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134302#p134302" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, добавил <br /></p><div class="codebox"><pre><code>WinWaitActive, ahk_class EVERYTHING
</code></pre></div><p>- не помогло.</p>]]></content>
			<author>
				<name><![CDATA[becauseim]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33149</uri>
			</author>
			<updated>2019-05-12T11:37:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134302#p134302</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Everything.exe]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134301#p134301" />
			<content type="html"><![CDATA[<p>После Run окно не моментально появляется, а следующая команда сразу идёт.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-05-12T11:28:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134301#p134301</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Everything.exe]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134300#p134300" />
			<content type="html"><![CDATA[<p>Спасибо! Но не работает даже так:</p><div class="codebox"><pre><code>CapsLock &amp; vk46:: ; f
@:=Clip()
Run, Everything.exe, C:\Program Files\Everything\
WinWaitActive, ahk_class EVERYTHING
ControlFocus, Edit1, ahk_class EVERYTHING
SendInput % Clipboard
Clip(@)
return</code></pre></div><p>С Notepad.exe работает.</p>]]></content>
			<author>
				<name><![CDATA[becauseim]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33149</uri>
			</author>
			<updated>2019-05-12T11:09:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134300#p134300</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Everything.exe]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134296#p134296" />
			<content type="html"><![CDATA[<p>RunWait ожидает, пока запущенный процесс не будет завершён.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-05-11T21:21:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134296#p134296</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Everything.exe]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134295#p134295" />
			<content type="html"><![CDATA[<p>Привет! Подскажите, почему не работает второй хоткей? <br />Функцию взял <a href="https://www.autohotkey.com/boards/viewtopic.php?f=6&amp;t=62156">здесь</a>.<br /></p><div class="codebox"><pre><code>#SingleInstance Force
SetTitleMatchMode 2

^+vk47:: ; g 
@:=Clip()
Run http://www.google.com/search?q=%clipboard%
Clip(@)
return

CapsLock &amp; vk46:: ; f
@:=Clip()
RunWait, Everything.exe, C:\Program Files\Everything\
ControlSetText, Edit1, %Clipboard%, Everything
Clip(@)
return

Clip(Text=&quot;&quot;, Reselect=&quot;&quot;)
{
	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
		}
		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>]]></content>
			<author>
				<name><![CDATA[becauseim]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33149</uri>
			</author>
			<updated>2019-05-11T17:52:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134295#p134295</id>
		</entry>
</feed>
