<?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>http://forum.script-coding.com/viewtopic.php?id=15550</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=15550&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Отслеживание нажатий клавиш».]]></description>
		<lastBuildDate>Wed, 29 Jul 2020 02:15:20 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Отслеживание нажатий клавиш]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=141195#p141195</link>
			<description><![CDATA[<p><strong>Alectric</strong><br />Я додумался до другое решение оно мне больше подходит ну я его оставлю сдесь может кому пригодится<br />Сразу объясню почему P должна быть больше 0 для срабатывания потому что false = 0 а true = 1.<br />Ну можно и заменить на<br />Code</p><p>if P = 1</p><p> и тд</p><p>Code</p><p>P := false<br />R := false</p><p>end:: <br />P := true<br />R := false<br />return</p><p>Home::<br />P := false<br />R := true<br />return</p><p>Delete::<br />P := false<br />R := false<br />return</p><p>~RButton &amp; ~LButton:: <br />Loop 1<br />If (P &gt; 0)<br />{<br />Sleep, 1<br />Loop 1&nbsp; </p><p>If ((GetKeyState(&quot;LButton&quot;, &quot;P&quot;)) || (GetKeyState (&quot;RButton&quot;, &quot;P&quot;)))<br />{<br />MsgBox, Нажатие лкм и пкм<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; else<br />&nbsp; &nbsp; break<br />&nbsp; &nbsp; <br />Sleep, 1&nbsp; &nbsp; <br />Loop 1&nbsp; &nbsp; &nbsp;<br />If ((GetKeyState(&quot;LButton&quot;, &quot;P&quot;)) || (GetKeyState (&quot;RButton&quot;, &quot;P&quot;)))<br />{&nbsp; &nbsp; &nbsp; &nbsp; <br />MsgBox, Удержание<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; else<br />&nbsp; &nbsp; break&nbsp; &nbsp; <br /> }<br /> else<br />&nbsp; &nbsp;break</p><p>return</p>]]></description>
			<author><![CDATA[null@example.com (gjifh)]]></author>
			<pubDate>Wed, 29 Jul 2020 02:15:20 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=141195#p141195</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Отслеживание нажатий клавиш]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=141172#p141172</link>
			<description><![CDATA[<p>Ааа, всё, дошло. <span style="color: #f5f5f5">Тут один человек мозги запарил.</span><br />Там звездочки нужны.<br />Исправил выше.</p>]]></description>
			<author><![CDATA[null@example.com (Alectric)]]></author>
			<pubDate>Tue, 28 Jul 2020 11:02:24 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=141172#p141172</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Отслеживание нажатий клавиш]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=141170#p141170</link>
			<description><![CDATA[<p>Плохо проверяли. Проверьте свой вариант с зажатыми модификаторами.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Tue, 28 Jul 2020 03:41:37 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=141170#p141170</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Отслеживание нажатий клавиш]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=141167#p141167</link>
			<description><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Проверяйте, перед тем, что пишете. <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /></p></blockquote></div><p>Я проверял. На версии которой пользуюсь работает именно так.</p>]]></description>
			<author><![CDATA[null@example.com (Alectric)]]></author>
			<pubDate>Tue, 28 Jul 2020 02:09:47 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=141167#p141167</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Отслеживание нажатий клавиш]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=141159#p141159</link>
			<description><![CDATA[<p>Проверяйте, перед тем, что пишете. <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Mon, 27 Jul 2020 17:23:14 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=141159#p141159</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Отслеживание нажатий клавиш]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=141158#p141158</link>
			<description><![CDATA[<p>Тогда не будет работать при зажатом Ctrl, Alt, Win или Shift.</p>]]></description>
			<author><![CDATA[null@example.com (Alectric)]]></author>
			<pubDate>Mon, 27 Jul 2020 16:59:16 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=141158#p141158</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Отслеживание нажатий клавиш]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=141157#p141157</link>
			<description><![CDATA[<p><strong>Alectric</strong>, все <strong>$</strong> лишние.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Mon, 27 Jul 2020 16:48:00 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=141157#p141157</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Отслеживание нажатий клавиш]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=141151#p141151</link>
			<description><![CDATA[<div class="codebox"><pre><code>~End::
a:=!a
return

#if a
~*LButton::
tooltip левая
return

~*RButton::
tooltip правая
return

~*MButton::
tooltip средняя
return

~*LButton up::
tooltip левая отпущена
return

~*RButton up::
tooltip правая отпущена
return

~*MButton up::
tooltip средняя отпущена
return


</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alectric)]]></author>
			<pubDate>Mon, 27 Jul 2020 15:18:07 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=141151#p141151</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Отслеживание нажатий клавиш]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=141146#p141146</link>
			<description><![CDATA[<p>Не додумался как правильно оформит заголовок но не суть.<br />Так вот пример мне нужно что-бы при нажатии допустим End Отслеживалось нажатие клавиш мыши при повторном нажатии этой клавиши и указанных клавиш допустим Home и Delete<br />отслеживание клавиш прекратилось <br />Вот до чего додумался я но не работает должным образом</p><div class="codebox"><pre><code>~End::

Sleep, 1
Loop 1     
If GetKeyState(&quot;LButton&quot;, &quot;RButton&quot;) {
        
        Msgbox Клавиши нажаты
    }
    else
    break

Sleep, 1
Loop 1     
If GetKeyState(&quot;LButton&quot;, &quot;RButton&quot;) {
        
        Msgbox Удержание клавиш
    }
    else
    break

return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (gjifh)]]></author>
			<pubDate>Mon, 27 Jul 2020 11:39:47 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=141146#p141146</guid>
		</item>
	</channel>
</rss>
