<?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=17738&amp;type=atom" />
	<updated>2023-04-18T18:41:50Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=17738</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Блокировка на время после нажатия любой кнопки без модификатора]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=157686#p157686" />
			<content type="html"><![CDATA[<p>Скорее всего под звездочкой воспринимается сама клавиша со звездочкой, а не любая клавиша.</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2023-04-18T18:41:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=157686#p157686</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Блокировка на время после нажатия любой кнопки без модификатора]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=157629#p157629" />
			<content type="html"><![CDATA[<p>Кнопки на клавиатуре находятся слишком близко для моих пальцев. Часто задеваю соседнюю кнопку и она печатается.<br />Хотел приколхозить скрипт, который запрещает нажатие нескольких клавиш одновременно. Он проверяет, что предыдущая клавиша уже была отпущена, прежде чем разрешить нажатие следующей клавиши. Если нажать несколько клавиш одновременно, только первая клавиша должна быть зарегистрирована.<br />Вот такой скрипт получился. Но блокировки не происходит.<br />Не пойму в чем причина. Помогите!</p><div class="codebox"><pre><code>#NoEnv
SendMode Input
SetBatchLines -1

blocked := false

$*::
if (!blocked &amp;&amp; !GetKeyState(&quot;LShift&quot;, &quot;P&quot;) &amp;&amp; !GetKeyState(&quot;RShift&quot;, &quot;P&quot;) &amp;&amp; !GetKeyState(&quot;LControl&quot;, &quot;P&quot;) &amp;&amp; !GetKeyState(&quot;RControl&quot;, &quot;P&quot;) &amp;&amp; !GetKeyState(&quot;LAlt&quot;, &quot;P&quot;) &amp;&amp; !GetKeyState(&quot;RAlt&quot;, &quot;P&quot;)) {
    KeyWait, %A_ThisHotkey%, T0.2
    if (ErrorLevel) {
        blocked := true
        Return
    }
}
Return

$* up::
blocked := false
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[User300]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43117</uri>
			</author>
			<updated>2023-04-17T08:15:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=157629#p157629</id>
		</entry>
</feed>
