<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Длинная горячая клавиша]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=10400</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10400&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Длинная горячая клавиша».]]></description>
		<lastBuildDate>Thu, 12 Feb 2015 22:10:46 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Длинная горячая клавиша]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=91501#p91501</link>
			<description><![CDATA[<p><strong>stealzy</strong>, а если из &#039;функции проверки на залипание&#039; убрать все лишние переменные и подсократить код?<br />Текст в <em>MessageBox</em> тоже весьма странный, наверное какое-то авторское видение англ. языка. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br /></p><div class="codebox"><pre><code>FixBugUnpressKeys() {
   for key, key in [&quot;RCtrl&quot;, &quot;LCtrl&quot;, &quot;LShift&quot;, &quot;RShift&quot;, &quot;RAlt&quot;, &quot;LAlt&quot;]
      if Direction := [&quot;Down&quot;,0,&quot;Up&quot;][2+GetKeyState(Key)-GetKeyState(Key, &quot;P&quot;)]
         SendInput {%Key% %Direction%}
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Irbis)]]></author>
			<pubDate>Thu, 12 Feb 2015 22:10:46 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=91501#p91501</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Длинная горячая клавиша]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=91449#p91449</link>
			<description><![CDATA[<p>Попробуйте использовать SendInput либо SendPlay:<br /></p><div class="codebox"><pre><code>F1::SendInput +^{Left}^!{1}</code></pre></div><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header"><strong>+</strong>&nbsp;Функция проверки на залипание:</div><div class="fancy_spoiler"><div class="codebox"><pre><code>FixBugUnpressKeys() {
    Static ArrayKeys
    ArrayKeys:=Object()
    ArrayKeys:=[&quot;RCtrl&quot;, &quot;LCtrl&quot;, &quot;LShift&quot;, &quot;RShift&quot;, &quot;RAlt&quot;, &quot;LAlt&quot;]
    i:= ArrayKeys.MaxIndex()
    Loop %i%
    {
        Key:=ArrayKeys[A_Index]
        GetKeyStatePhys := GetKeyState(Key, &quot;P&quot;)
        GetKeyStateLogi := GetKeyState(Key)
        DiffKeyState := GetKeyStateLogi-GetKeyStatePhys
        if DiffKeyState {
            Direction := (DiffKeyState=1) ? &quot;Up&quot; : &quot;Down&quot;
            SendInput {%Key% %Direction%}
            MsgBox %Key% will be not %Direction%. I fix it.
        }
    }
}</code></pre></div></div></div><p>Вставлять после Send.</p>]]></description>
			<author><![CDATA[null@example.com (stealzy)]]></author>
			<pubDate>Thu, 12 Feb 2015 04:39:19 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=91449#p91449</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Длинная горячая клавиша]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=91420#p91420</link>
			<description><![CDATA[<p>Значит проблема как всегда с моей стороны, прошу прощения. Спасибо за внимание!</p>]]></description>
			<author><![CDATA[null@example.com (dredj)]]></author>
			<pubDate>Wed, 11 Feb 2015 13:52:15 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=91420#p91420</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Длинная горячая клавиша]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=91419#p91419</link>
			<description><![CDATA[<p>У меня ничего не залипает, вроде, даже без <em>Send, {Ctrl}</em>.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Wed, 11 Feb 2015 13:38:41 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=91419#p91419</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Длинная горячая клавиша]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=91417#p91417</link>
			<description><![CDATA[<p>Заменил <em>RAlt</em> на <em>F1</em>, вообщем хоткей работает но теперь залипает <em>Ctrl</em>, добавил <em>Send, {Ctrl}</em> в конце, чтобы не залипало, вроде помогает.</p><div class="codebox"><pre><code>F1::
Send,+^{Left}
Send,^!{1}
Send, {Ctrl}
Return</code></pre></div><p> Но почему вообще залипает <em>Ctrl</em>, вроде ничего сложного?</p>]]></description>
			<author><![CDATA[null@example.com (dredj)]]></author>
			<pubDate>Wed, 11 Feb 2015 13:31:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=91417#p91417</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Длинная горячая клавиша]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=91415#p91415</link>
			<description><![CDATA[<p>Клавиша посылает сама себя ( Send,^<span style="color: red"><strong>!</strong></span>{1} ) и, возможно, зацикливается. Чтобы этого избежать, нужно перед названием горячей клавиши поставить <a href="http://ahkscript.org/docs/Hotkeys.htm#prefixdollar">префикс $</a>:<br /></p><div class="codebox"><pre><code>$RAlt::
Send,+^{Left}
Send,^!{1}
Return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Wed, 11 Feb 2015 13:00:30 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=91415#p91415</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Длинная горячая клавиша]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=91414#p91414</link>
			<description><![CDATA[<p>Return надо в конце поставить, а в остальном всё правильно.</p>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Wed, 11 Feb 2015 12:43:38 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=91414#p91414</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Длинная горячая клавиша]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=91413#p91413</link>
			<description><![CDATA[<p>Следующий хоткей работает когда как или вообще залипает, не могу понять в чём проблема</p><div class="codebox"><pre><code>RAlt::
Send,+^{Left}
Send,^!{1}</code></pre></div><p>может синтаксис неправильный?</p>]]></description>
			<author><![CDATA[null@example.com (dredj)]]></author>
			<pubDate>Wed, 11 Feb 2015 12:26:43 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=91413#p91413</guid>
		</item>
	</channel>
</rss>
