<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Действие после удержания клавиши на 3 секунды.]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=13916&amp;type=atom" />
	<updated>2018-07-10T19:27:59Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=13916</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Действие после удержания клавиши на 3 секунды.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=126924#p126924" />
			<content type="html"><![CDATA[<p>Вот так еще можно<br /></p><div class="codebox"><pre><code>#NoEnv
*~$LButton::Func(&quot;3000&quot;)

Func(wait) {
	a:=A_TickCount
	While GetKeyState(&quot;LButton&quot;, &quot;P&quot;) {
		if ((A_TickCount-a)&gt;wait) {
			Send, {F4}{F4}
			break
		}
	}    
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[powercat]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=37884</uri>
			</author>
			<updated>2018-07-10T19:27:59Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=126924#p126924</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Действие после удержания клавиши на 3 секунды.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=126794#p126794" />
			<content type="html"><![CDATA[<p><strong>qqlexa</strong>, большое спасибо :3</p>]]></content>
			<author>
				<name><![CDATA[morgan]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39372</uri>
			</author>
			<updated>2018-07-07T15:15:11Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=126794#p126794</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Действие после удержания клавиши на 3 секунды.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=126793#p126793" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
#SingleInstance , Force ; Перезапуск без создания копий
sleep = 3000 ; кол-во задержки в мс
~Lbutton::
SetTimer, up, 1
time := A_TickCount
return

~Lbutton Up::SetTimer, up, off

Up:
now := A_TickCount
now := now - time
If now &lt;= %sleep%
	return
else Goto okey

#z::
ExitApp


okey:
Send, {F4}{F4}
SetTimer, up, off
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[qqlexa]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39096</uri>
			</author>
			<updated>2018-07-07T15:08:03Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=126793#p126793</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Действие после удержания клавиши на 3 секунды.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=126790#p126790" />
			<content type="html"><![CDATA[<p>Здравствуйте, коллеги. Я столкнулся с проблемой, а именно: Хотелось бы, чтобы после удержания левой кнопки мыши на 3 секунды, автоматически было нажато два раза F4. Уже знаю как реализовать F4.<br /></p><div class="codebox"><pre><code>Send, {F4}{F4}</code></pre></div><p>Прошу вашей помощи.</p>]]></content>
			<author>
				<name><![CDATA[morgan]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39372</uri>
			</author>
			<updated>2018-07-07T13:50:43Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=126790#p126790</id>
		</entry>
</feed>
