<?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=15395&amp;type=atom" />
	<updated>2020-05-27T15:05:59Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15395</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: По нажатию одной клавиши, открываются команды для других клавиш.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139751#p139751" />
			<content type="html"><![CDATA[<p>Попробуйте так:<br /></p><div class="codebox"><pre><code>#UseHook
LAlt::
ToggleHotkeys(mode := &quot;&quot;) {
   static t, handler
   (!handler &amp;&amp; handler := Func(A_ThisFunc).Bind(true))
   if mode {
      Send, {%A_ThisHotkey% 2}
      KeyWait, %A_ThisHotkey%
   }
   else {
      t := !t
      for k, v in [&quot;w&quot;, &quot;a&quot;, &quot;s&quot;, &quot;d&quot;]
         Hotkey, % v, % handler, % t ? &quot;On&quot; : &quot;Off&quot;
   }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-05-27T15:05:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139751#p139751</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: По нажатию одной клавиши, открываются команды для других клавиш.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139750#p139750" />
			<content type="html"><![CDATA[<p>А если Вы нажали и отпустили &quot;LAlt&quot;, а после этого нажали какую-нибудь клавишу кроме &quot;W, A, S, D&quot;? Тогда режим двойного нажатия должен ожидать нажатия клавиш из перечня &quot;W, A, S, D&quot; или режим двойного нажатия должен отключится?</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2020-05-27T14:57:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139750#p139750</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: По нажатию одной клавиши, открываются команды для других клавиш.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139746#p139746" />
			<content type="html"><![CDATA[<p>Доброго времени суток! Подскажите пожалуйста, как по нажатию клавиши &quot; LAlt &quot; открыть доступ к другим командам ?<br />Т.е. Я хочу сделать двойное нажатие клавиш &quot;W, A, S, D&quot;, но двойное нажатие этих клавиш должно происходить одиночно (т.е., если я нажму на W, будет двойное нажатие только W )&nbsp; и только тогда, когда нажата( не зажата) клавиша &quot; LAlt &quot;, если же я снова нажму на &quot;LAlt&quot;, то тогда при нажатии W будет печататься одна W, вместо двух.</p>]]></content>
			<author>
				<name><![CDATA[Даниил Максимович]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40863</uri>
			</author>
			<updated>2020-05-27T04:20:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139746#p139746</id>
		</entry>
</feed>
