<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Кнопка остается нажатой еще X секунд, после отпускания]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15109&amp;type=atom" />
	<updated>2020-01-01T19:01:13Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15109</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Кнопка остается нажатой еще X секунд, после отпускания]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137134#p137134" />
			<content type="html"><![CDATA[<p>Вроде работает. Может кому пригодится. Скрипт понадобится из-за отсутствия поддержки клавиш мыши в программе записи (GeForce Experience) для push-to-talk. А задержка нужна, чтобы слова не проглатывались иногда.<br /></p><div class="codebox"><pre><code>#InstallMouseHook
XButton1::
Send, {- Down}
KeyWait XButton1
Sleep, 1000
Send, {- Up}
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[cecop87797]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40550</uri>
			</author>
			<updated>2020-01-01T19:01:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137134#p137134</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Кнопка остается нажатой еще X секунд, после отпускания]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137133#p137133" />
			<content type="html"><![CDATA[<p><strong>Foma</strong>, еще такой вопросик, а можно ли добавить проверку, если кнопка удерживается мной, то Sleep и отжатие не начинаю работать до тех пор, пока я не отпущу кнопку.</p><div class="codebox"><pre><code>#InstallMouseHook
XButton1::
Send, {- Down}
Sleep, 4000
Send, {- Up}
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[cecop87797]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40550</uri>
			</author>
			<updated>2020-01-01T18:51:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137133#p137133</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Кнопка остается нажатой еще X секунд, после отпускания]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137132#p137132" />
			<content type="html"><![CDATA[<p><strong>Foma</strong>, я разобрался, понял, что Вы имели ввиду, спасибо за помощь.</p>]]></content>
			<author>
				<name><![CDATA[cecop87797]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40550</uri>
			</author>
			<updated>2020-01-01T18:44:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137132#p137132</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Кнопка остается нажатой еще X секунд, после отпускания]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137131#p137131" />
			<content type="html"><![CDATA[<p><strong>Foma</strong>, спасибо за попытку помочь.<br />Дайте полный пример, пожалуйста, я нажимаю XButton1 и в этот момент нажимается цифра 2, я отпускаю XButton1 и в этот момент цифра 2 или XButton1 остаются нажатыми еще 2 секунды.</p>]]></content>
			<author>
				<name><![CDATA[cecop87797]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40550</uri>
			</author>
			<updated>2020-01-01T18:39:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137131#p137131</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Кнопка остается нажатой еще X секунд, после отпускания]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137127#p137127" />
			<content type="html"><![CDATA[<p>Тогда надо бы код приложить. Но я понял в чём дело.<br />Там где отправляете нажатие, добавьте<br /></p><div class="codebox"><pre><code>{... Down}</code></pre></div><p>так, как я добавил Up выше.<br />Иначе у Вас срабатывает и нажатие и отжатие сразу.</p>]]></content>
			<author>
				<name><![CDATA[Foma]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31521</uri>
			</author>
			<updated>2020-01-01T08:13:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137127#p137127</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Кнопка остается нажатой еще X секунд, после отпускания]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137100#p137100" />
			<content type="html"><![CDATA[<p><strong>Foma</strong>, я и сам так пробовал, не работает.</p>]]></content>
			<author>
				<name><![CDATA[cecop87797]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40550</uri>
			</author>
			<updated>2019-12-30T12:28:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137100#p137100</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Кнопка остается нажатой еще X секунд, после отпускания]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137095#p137095" />
			<content type="html"><![CDATA[<p>Добавьте:<br /></p><div class="codebox"><pre><code>Sleep, 2500	;задержка в милисекундах
Send, {Numlock Up}	;отжатие кнопки</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Foma]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31521</uri>
			</author>
			<updated>2019-12-29T17:00:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137095#p137095</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Кнопка остается нажатой еще X секунд, после отпускания]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137091#p137091" />
			<content type="html"><![CDATA[<p>Всем привет.<br />У меня при нажатии XButton1::- нажмиается Num -, надо чтобы после физического отпускания XButton1 Num - или XButton1 оставались нажатыми еще 2-3 секунды, после чего переставали быть нажатыми.</p>]]></content>
			<author>
				<name><![CDATA[cecop87797]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40550</uri>
			</author>
			<updated>2019-12-28T18:49:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137091#p137091</id>
		</entry>
</feed>
