<?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="http://forum.script-coding.com/extern.php?action=feed&amp;tid=15923&amp;type=atom" />
	<updated>2020-12-15T04:26:28Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=15923</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Банихоп с активацией после трёх нажатий на пробел.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=144209#p144209" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong><br />Вроде, всё работает, но скрипт теперь срабатывает и при зажатии, а мне это не нужно. Мне нужно обязательно три нажатия или больше и зажать, а после отжатия всё сбросить.<br /></p><div class="codebox"><pre><code>*~$Space::
if !(A_ThisHotkey = A_PriorHotkey &amp;&amp; A_TimeSincePriorHotkey &lt; 400)
      counter := 1
   else if ++counter = 3
      goto, Bhop
   Return

Bhop:
Loop
{
GetKeyState, SpaceState, Space, P
If SpaceState = U
break
Sleep 1
Send, {Blind}{Space down}
sleep, 40
Send, {Blind}{Space up}
Send, {BackSpace}
}
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Vsevolod]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40918</uri>
			</author>
			<updated>2020-12-15T04:26:28Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=144209#p144209</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Банихоп с активацией после трёх нажатий на пробел.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=144207#p144207" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>__Михаил__ пишет:</cite><blockquote><p>Для обсуждения всего, связанного AHK + Игры есть свой раздел</p></blockquote></div><p>А я не обсуждаю. Просто человек уже второй раз постит в основной раздел, когда вопрос связан в игрой.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2020-12-14T22:08:46Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=144207#p144207</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Банихоп с активацией после трёх нажатий на пробел.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=144200#p144200" />
			<content type="html"><![CDATA[<p>Вот <a href="http://forum.script-coding.com/viewtopic.php?pid=143747#p143747">ссылка на код</a>. После тройного нажатия произойдёт активация, думаю адаптировать под свои нужды не сложно будет.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2020-12-14T21:12:20Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=144200#p144200</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Банихоп с активацией после трёх нажатий на пробел.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=144197#p144197" />
			<content type="html"><![CDATA[<p>Для обсуждения всего, связанного AHK + Игры есть свой раздел - <a href="http://forum.script-coding.com/viewforum.php?id=27">AutoHotKey — Games</a></p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2020-12-14T20:53:45Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=144197#p144197</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Банихоп с активацией после трёх нажатий на пробел.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=144195#p144195" />
			<content type="html"><![CDATA[<p>А ловить момент приземления. А для какой игры, если не секрет?</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2020-12-14T20:31:51Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=144195#p144195</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Банихоп с активацией после трёх нажатий на пробел.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=144191#p144191" />
			<content type="html"><![CDATA[<p>Здравствуйте, мне нужно что бы вот этот скрипт активировался после трёх нажатий на пробел за определённое количество времени. То есть, если пользователь быстро нажимает три раза, а потом зажимает скрипт активируется.<br /></p><div class="codebox"><pre><code>*~$Space::
if toggle
   Return
Loop
{
GetKeyState, SpaceState, Space, P
If SpaceState = U
break
Sleep 1
Send, {Blind}{Space down}
sleep, 40
Send, {Blind}{Space up}
Send, {BackSpace}
}
Return</code></pre></div><p>И да, банихоп настроен под нужную мне игру и никак улучшать его ненужно!</p>]]></content>
			<author>
				<name><![CDATA[Vsevolod]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40918</uri>
			</author>
			<updated>2020-12-14T20:11:03Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=144191#p144191</id>
		</entry>
</feed>
