<?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=12181&amp;type=atom" />
	<updated>2017-09-09T22:52:26Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12181</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Заблокировать нажатие клавиши более двух раз подряд]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119217#p119217" />
			<content type="html"><![CDATA[<p>Подскажите, пожалуйста, как реализовать описанное в шапке? Поправка в том, чтобы посредством простого редактирования можно было отключать каждое последующее нажатие после первого, второго или третьего нажатия. Например, не отправлять более одного раза подряд нажатие клавиши f3. Нажатие любой другой клавиши (за исключением некоторых заданных клавиш) сбрасывает счетчик нажатий f3.</p>]]></content>
			<author>
				<name><![CDATA[becauseim]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33149</uri>
			</author>
			<updated>2017-09-09T22:52:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119217#p119217</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Заблокировать нажатие клавиши более двух раз подряд]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109441#p109441" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong>, ну, если blockinput работает, можно им, но, по-моему, он плохо работает.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2016-11-27T19:53:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109441#p109441</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Заблокировать нажатие клавиши более двух раз подряд]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109438#p109438" />
			<content type="html"><![CDATA[<p>Был задан вопрос: </p><div class="quotebox"><blockquote><p>заблокировать нажатие клавиши</p></blockquote></div><p> а не всех клавиш.<br />Ну и даже если необходимо заблокировать клавиатуру, то чем не устраивает blockinput?</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-11-27T19:47:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109438#p109438</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Заблокировать нажатие клавиши более двух раз подряд]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109435#p109435" />
			<content type="html"><![CDATA[<p>А клавиши - это ни клавиатура, что ли?</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2016-11-27T19:41:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109435#p109435</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Заблокировать нажатие клавиши более двух раз подряд]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109433#p109433" />
			<content type="html"><![CDATA[<p><strong>svoboden</strong>, разве в задаче было указано заблокировать клавиатуру?</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-11-27T19:38:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109433#p109433</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Заблокировать нажатие клавиши более двух раз подряд]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109428#p109428" />
			<content type="html"><![CDATA[<p>Такой скрипт где-то видел, блокирует все клавиши на 15 секунд, но можно самому поставить время.</p><div class="codebox"><pre><code>OnExit, Exit

hHookKeybd := DllCall(&quot;SetWindowsHookEx&quot;
   , Int, WH_KEYBOARD_LL := 13
   , Ptr, RegisterCallback(&quot;LowLevelKeyboardProc&quot;, &quot;Fast&quot;)
   , Ptr, DllCall(&quot;GetModuleHandle&quot;, UInt, 0, Ptr)
   , UInt, 0, Ptr)
   
Sleep 15000
DllCall(&quot;UnhookWindowsHookEx&quot;, Ptr, hHookKeybd), hHookKeybd := &quot;&quot;
Return

Exit:
   (hHookKeybd &amp;&amp; DllCall(&quot;UnhookWindowsHookEx&quot;, Ptr, hHookKeybd))
   ExitApp

LowLevelKeyboardProc(nCode, wParam, lParam)
{
   Return 1
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2016-11-27T19:30:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109428#p109428</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Заблокировать нажатие клавиши более двух раз подряд]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109406#p109406" />
			<content type="html"><![CDATA[<p>Нужно проверять время между текущим и предыдущим нажатием клавиши. И включать / обнулять счётчик нажатий.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2016-11-27T11:07:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109406#p109406</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Заблокировать нажатие клавиши более двух раз подряд]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109405#p109405" />
			<content type="html"><![CDATA[<p>Необходимо заблокировать нажатие клавиши более двух раз подряд. Как это реализовать?</p>]]></content>
			<author>
				<name><![CDATA[becauseim]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33149</uri>
			</author>
			<updated>2016-11-27T08:30:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109405#p109405</id>
		</entry>
</feed>
