<?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="https://forum.script-coding.com/extern.php?action=feed&amp;tid=6152&amp;type=atom" />
	<updated>2021-03-09T15:48:54Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6152</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт на нажатие и отжатие клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146686#p146686" />
			<content type="html"><![CDATA[<p>Здравствуйте форумчане, кто может сделать скрипт на антизажатие клавиши, если более конкретно, то если я нажимаю &quot;a&quot; английскую (именно ее), то при нажатии &quot;c&quot;, нужно чтобы &quot;a&quot; автоматически отжималась, я использую комбинацию a+с, и крч в момент нажатия &quot;с&quot;, мне нужно чтобы &quot;a&quot; отжималась</p>]]></content>
			<author>
				<name><![CDATA[ubica2008]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41516</uri>
			</author>
			<updated>2021-03-09T15:48:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146686#p146686</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт на нажатие и отжатие клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144861#p144861" />
			<content type="html"><![CDATA[<p><strong>Builder7</strong></p><div class="codebox"><pre><code>F5::
ToolTip, Для выхода отпустите клавишу: %A_ThisHotkey%
KeyWait, %A_ThisHotkey%, U
ExitApp
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-01-16T09:49:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144861#p144861</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт на нажатие и отжатие клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144857#p144857" />
			<content type="html"><![CDATA[<p>Как сделать чтобы после отжатия клавиши скрипт заканчивал работу?</p>]]></content>
			<author>
				<name><![CDATA[Builder7]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41369</uri>
			</author>
			<updated>2021-01-16T09:05:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144857#p144857</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт на нажатие и отжатие клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51418#p51418" />
			<content type="html"><![CDATA[<p>Для хоткея - <a href="http://www.script-coding.com/AutoHotkey/KeyList.html">Rbutton</a><br />На случай прочих вопросов : <br /><a href="http://www.script-coding.com/AutoHotkeyTranslation.html">ссылка</a><br /><a href="http://forum.script-coding.com/rules.html">пункт 3.11</a></p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2011-09-11T14:50:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51418#p51418</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт на нажатие и отжатие клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51416#p51416" />
			<content type="html"><![CDATA[<p>А еще можно, как будет на AHK правая кнопка мыши?</p>]]></content>
			<author>
				<name><![CDATA[James]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25082</uri>
			</author>
			<updated>2011-09-11T14:15:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51416#p51416</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт на нажатие и отжатие клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51373#p51373" />
			<content type="html"><![CDATA[<p>Огромное спасибо!!!</p>]]></content>
			<author>
				<name><![CDATA[James]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25082</uri>
			</author>
			<updated>2011-09-10T11:50:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51373#p51373</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт на нажатие и отжатие клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51372#p51372" />
			<content type="html"><![CDATA[<p>Из темы в августе 2009 Вы исчезли молча, так что какой вариант подошёл, известно только Вам. Упоминаются там такие:<br /></p><div class="codebox"><pre><code>x::
send, y
sleep, 10
send, {z down}
return

x up::
send {z up}
return</code></pre></div><div class="codebox"><pre><code>*x::
send, y
sleep, 10
send, {z down}
KeyWait, x
Send, {z up}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2011-09-10T10:08:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51372#p51372</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт на нажатие и отжатие клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51371#p51371" />
			<content type="html"><![CDATA[<p>Если честно, я уже просил помощи с этой задачей. Это было в августе 2009-го. Тот код у меня не сохранился, месяц назад я его безвозвратно отформатировал. Тот код код был примерно по объему как в посте #2 и там не было скобок {}, знаков $ и %...</p>]]></content>
			<author>
				<name><![CDATA[James]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25082</uri>
			</author>
			<updated>2011-09-10T09:38:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51371#p51371</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт на нажатие и отжатие клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51314#p51314" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>; Я не знаю, что именно не работает (т.к у меня работает всё), покажу другой пример на клавишах - 1, 2 и 3

SetFormat, FloatFast, 0

$vk31:: ; до нажатия
   Start:=A_TickCount
   Random, RandVar, 2, 3
   Sleep, % RandVar*1000
   Stop:=A_TickCount-Start
   MsgBox,,, % Stop/1000 &quot;сек.&quot;, 1
   Send, {vk31 Down}
   Keywait, vk31
   Send, {vk31 Up}
   Return

$vk32:: ; после отжатия
   Send, {vk32 Down}
   Keywait, vk32
   Start:=A_TickCount
   Random, RandVar, 2, 3
   Sleep, % RandVar*1000
   Stop:=A_TickCount-Start
   MsgBox,,, % Stop/1000 &quot;сек.&quot;, 1
   Send, {vk32 Up}
   Return

$vk33:: ; до и после
   Start:=A_TickCount
   Random, RandVar, 2, 3
   Sleep, % RandVar*1000
   Stop:=A_TickCount-Start
   MsgBox,,, % Stop/1000 &quot;сек.&quot;, 1
   Send, {vk33 Down}
   Keywait, vk33
   Start:=A_TickCount
   Random, RandVar, 2, 3
   Sleep, % RandVar*1000
   Stop:=A_TickCount-Start
   MsgBox,,, % Stop/1000 &quot;сек.&quot;, 1
   Send, {vk33 Up}
   Return

F5::Reload
Esc::ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2011-09-08T09:18:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51314#p51314</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт на нажатие и отжатие клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51312#p51312" />
			<content type="html"><![CDATA[<p>Не работает <img src="//forum.script-coding.com/img/smilies/sad.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[James]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25082</uri>
			</author>
			<updated>2011-09-08T08:43:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51312#p51312</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт на нажатие и отжатие клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51036#p51036" />
			<content type="html"><![CDATA[<p>Надо залить клавиатуру мёдом. <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /> Шучу конечно, в моём понимании <em>залипание</em> выглядет вот так:</p><div class="codebox"><pre><code>$Space:: ; в данном случает задержка после нажатия
   Random, RandVar, 2, 3
   Sleep, % RandVar * 1000
   Send, {Space Down}
   Keywait, Space
   Send, {Space Up}
   Return</code></pre></div><p>, или так:</p><div class="codebox"><pre><code>$Space:: ; тут после отжатия
   Send, {Space Down}
   Keywait, Space
   Random, RandVar, 2, 3
   Sleep, % RandVar * 1000
   Send, {Space Up}
   Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2011-09-01T14:33:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51036#p51036</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт на нажатие и отжатие клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51034#p51034" />
			<content type="html"><![CDATA[<p>а как сделать залипание клавиши на 2-3 секунды?</p>]]></content>
			<author>
				<name><![CDATA[Mupppa]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27171</uri>
			</author>
			<updated>2011-09-01T14:14:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51034#p51034</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт на нажатие и отжатие клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50891#p50891" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>~vk58:: ; x
   Send, {vk59}{vk5A Down} ; y, z
   KeyWait, vk58
   Send, {vk5a Up}
   Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2011-08-26T18:00:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50891#p50891</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Скрипт на нажатие и отжатие клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50890#p50890" />
			<content type="html"><![CDATA[<p>Здравствуйте уважаемые форумчане! <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p><p>Прошу помочь мне в решении следующей задачи.</p><p>При нажатии (без отпускания) клавиши <strong>Х</strong> происходит:<br />1. Нажатие и отпускание клавиши <strong>Y</strong>.<br />2. Нажатие (без отпускания) клавиши <strong>Z</strong>.</p><p>При отпускании клавиши <strong>Х</strong> происхзодит отпускание клавиши <strong>Z</strong>.</p>]]></content>
			<author>
				<name><![CDATA[James]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25082</uri>
			</author>
			<updated>2011-08-26T17:17:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50890#p50890</id>
		</entry>
</feed>
