<?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=12672</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12672&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Настроить зажатие клавиш».]]></description>
		<lastBuildDate>Mon, 30 Mar 2020 14:46:32 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Настроить зажатие клавиш]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=138720#p138720</link>
			<description><![CDATA[<p><strong>Greh</strong>, не надо обращаться к кому-то из участников лично за помощью (исключая случаи, когда делаете платный заказ). Не пишите в чужой теме, создайте свою, придумайте внятное название, оформите код тегом <a href="http://forum.script-coding.com/help.php?section=bbcode">как положено</a>, и кто-то обязательно ответит.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Mon, 30 Mar 2020 14:46:32 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=138720#p138720</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Настроить зажатие клавиш]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=138718#p138718</link>
			<description><![CDATA[<p><strong>teadrinker</strong><br />Здраствуйте, можете мне помочь?<br />Я использую ахк следующим образом, при зажатии лкм , лкм множество раз нажимаеться, мне жнужно чтоб скрипт отключался&nbsp; на клавишу и назад включался, какие клавиши значения неимеет, можете помочь?? вот скрипт:<br />*LButton::<br />&nbsp; &nbsp;Loop<br />&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; Click<br />&nbsp; &nbsp; &nbsp; If !GetKeyState(&quot;LButton&quot;, &quot;P&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Break<br />&nbsp; &nbsp;}<br />&nbsp; &nbsp;Return</p>]]></description>
			<author><![CDATA[null@example.com (Greh)]]></author>
			<pubDate>Mon, 30 Mar 2020 14:23:04 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=138718#p138718</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Настроить зажатие клавиш]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115837#p115837</link>
			<description><![CDATA[<p>Мм, параметр On лишний будет. Еще вы не предусмотрели случай быстрого последовательного нажатия q и w.<br />В остальном все как у меня с той разницей, что мой код можно без переделки использовать для любой клавиши, а также для нескольких клавиш одновременно.</p>]]></description>
			<author><![CDATA[null@example.com (stealzy)]]></author>
			<pubDate>Sun, 14 May 2017 11:43:45 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115837#p115837</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Настроить зажатие клавиш]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115835#p115835</link>
			<description><![CDATA[<p><strong>stealzy</strong><br /></p><div class="codebox"><pre><code>q::
send {e down}
sleep 450
SetTimer,ed,40,on
return
ed:
send {e down}
return
w::
SetTimer,ed,off
send {e up}
return</code></pre></div><p>Так?</p>]]></description>
			<author><![CDATA[null@example.com (cahtbap1)]]></author>
			<pubDate>Sun, 14 May 2017 10:58:57 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115835#p115835</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Настроить зажатие клавиш]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115834#p115834</link>
			<description><![CDATA[<p><strong>cahtbap1</strong>, суть не в том, чтобы держать клавишу зажатой пальцем на клавиатуре, а разнести действия нажатия и отжатия по разным клавишам и сохранить системный автоповтор.</p>]]></description>
			<author><![CDATA[null@example.com (stealzy)]]></author>
			<pubDate>Sun, 14 May 2017 10:45:36 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115834#p115834</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Настроить зажатие клавиш]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115833#p115833</link>
			<description><![CDATA[<div class="quotebox"><cite>user1 пишет:</cite><blockquote><p>Можно как то сделать чтобы при нажатии буквы «q» был эффект будто клавиша «e» физически зажата?</p></blockquote></div><p>Возможно вы имели ввиду:<br /></p><div class="codebox"><pre><code>q::e</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (cahtbap1)]]></author>
			<pubDate>Sun, 14 May 2017 10:33:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115833#p115833</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Настроить зажатие клавиш]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115821#p115821</link>
			<description><![CDATA[<p>Имитация системного автоповтора зажатой клавиши:<br /></p><div class="codebox"><pre><code>q::SendFn(&quot;e&quot;, 1) ; e down
w::SendFn(&quot;e&quot;, 0) ; e up

SendFn(key, state) {
	Static ARfn := {}, KeyboardDelay := 1000 ; = HKEY_CURRENT_USER\Control Panel\Keyboard\KeyboardDelay
	if (state &amp;&amp; !ARfn.key) {
		Send % &quot;{Blind}{&quot; key &quot; down}&quot;
		SetTimer(ARfn.key := Func(&quot;AutoRepeat&quot;).Bind(key, true), -KeyboardDelay)
	} else if (!state &amp;&amp; ARfn.key) {
		SetTimer(ARfn.key, &quot;Delete&quot;)
		AutoRepeat(key, false)
		Send % &quot;{Blind}{&quot; key &quot; up}&quot;
		ARfn.key := &quot;&quot;
	}
}
AutoRepeat(key, state) {
	Static ARfn := {}, KeyboardSpeed  := 20 - A_KeyDelay ; ~ 1000 / (HKEY_CURRENT_USER\Control Panel\Keyboard\KeyboardSpeed  +  2)
	if (state) {
		Send % &quot;{Blind}&quot; key
		SetTimer(ARfn.key := Func(&quot;AutoRepeat&quot;).Bind(key, true), -KeyboardSpeed)
	} else if (!state)
		SetTimer(ARfn.key, &quot;Delete&quot;)
}
SetTimer(l, p) {
	SetTimer % l, % p
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (stealzy)]]></author>
			<pubDate>Sat, 13 May 2017 20:18:21 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115821#p115821</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Настроить зажатие клавиш]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115820#p115820</link>
			<description><![CDATA[<p>Попробуйте взять за основу такой пример: <a href="http://forum.script-coding.com/viewtopic.php?pid=59831#p59831">http://forum.script-coding.com/viewtopi … 831#p59831</a>.</p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Sat, 13 May 2017 19:41:48 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115820#p115820</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Настроить зажатие клавиш]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115818#p115818</link>
			<description><![CDATA[<p>Можно как то сделать чтобы при нажатии буквы «q» был эффект будто клавиша «e» физически зажата?</p>]]></description>
			<author><![CDATA[null@example.com (user1)]]></author>
			<pubDate>Sat, 13 May 2017 19:13:18 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115818#p115818</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Настроить зажатие клавиш]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115816#p115816</link>
			<description><![CDATA[<p>Конечно, нету. Скрипт посылает одиночное нажатие без отпускания. <br />Под зажатием обычно понимают физическое удержание клавиши на клавиатуре. При этом ОС имитирует повторное нажатие, параметры которого настраиваются через Панель управления Windows.</p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Sat, 13 May 2017 18:46:59 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115816#p115816</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Настроить зажатие клавиш]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115815#p115815</link>
			<description><![CDATA[<div class="codebox"><pre><code>
q:: send, {e down}
</code></pre></div><p>При нажатии «q», «e» ставиться один раз. Нет, зажатия клавиши.</p>]]></description>
			<author><![CDATA[null@example.com (user1)]]></author>
			<pubDate>Sat, 13 May 2017 18:32:35 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115815#p115815</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Настроить зажатие клавиш]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115808#p115808</link>
			<description><![CDATA[<p>У меня работает.</p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Sat, 13 May 2017 15:41:54 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115808#p115808</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Настроить зажатие клавиш]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115805#p115805</link>
			<description><![CDATA[<p>Не подскажете, почему это не работает? И как сделать, чтобы работало?</p><div class="codebox"><pre><code>
q:: send, {e down}
w:: send, {e up}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (user1)]]></author>
			<pubDate>Sat, 13 May 2017 15:10:02 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115805#p115805</guid>
		</item>
	</channel>
</rss>
