<?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="http://forum.script-coding.com/extern.php?action=feed&amp;tid=13016&amp;type=atom" />
	<updated>2017-09-22T19:37:16Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=13016</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Бинд кнопок с нескольких нажатий]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=119505#p119505" />
			<content type="html"><![CDATA[<p><strong>stealzy</strong>,<br />по-моему правильнее через таймер.<br /></p><div class="codebox"><pre><code>;~ Количество нажатий после которого клавиша изменится
MinNeedPressTimes:=3
;~ Количество времени за которое должны произойти нажатия
MaxPriorPressTime:=1000

~Q::
WinQ_Presses++
If WinQ_Presses &gt;=% MinNeedPressTimes
	Hotkey,q,SendStr
SetTimer, RestartQ, 1000
Return

RestartQ:
if A_TimeSinceThisHotkey&gt;=% MaxPriorPressTime
{
SetTimer, RestartQ, Off
Hotkey,~q,~q
WinQ_Presses = 0
}
Return

SendStr:
Send,{w}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[shahlik002]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=37352</uri>
			</author>
			<updated>2017-09-22T19:37:16Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=119505#p119505</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Бинд кнопок с нескольких нажатий]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=119471#p119471" />
			<content type="html"><![CDATA[<p>KeyWait.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2017-09-21T17:24:27Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=119471#p119471</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK:Бинд кнопок с нескольких нажатий]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=119446#p119446" />
			<content type="html"><![CDATA[<p>Привет, нужна помощь в построении скрипта.</p><p>Есть ли возможность сделать скрипт который при неоднократном(3-5 раз) нажатии клавиши за последние пару секунд нажималась другая клавиша.</p><p>К примеру: при быстрых нажатии 3 раза на клавишу Q нажималась W</p>]]></content>
			<author>
				<name><![CDATA[fesser]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38770</uri>
			</author>
			<updated>2017-09-20T23:18:56Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=119446#p119446</id>
		</entry>
</feed>
