<?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=6885&amp;type=atom" />
	<updated>2012-02-29T14:36:16Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6885</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: после отпускания клавиши не останавливается]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=57358#p57358" />
			<content type="html"><![CDATA[<p>Спасибо большое, сам чего-то не догнал сразу</p>]]></content>
			<author>
				<name><![CDATA[kazys]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27657</uri>
			</author>
			<updated>2012-02-29T14:36:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=57358#p57358</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: после отпускания клавиши не останавливается]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=57357#p57357" />
			<content type="html"><![CDATA[<p>А Вы почитайте <a href="http://www.script-coding.com/AutoHotkey/SetKeyDelay.html">тут</a>.</p>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2012-02-29T14:31:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=57357#p57357</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: после отпускания клавиши не останавливается]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=57356#p57356" />
			<content type="html"><![CDATA[<p>спасибо, а ещё...ожидание как выставить между кнопками под нажатым CapsLock&#039;om. Тобишь: между {vk45}{vk46}</p>]]></content>
			<author>
				<name><![CDATA[kazys]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27657</uri>
			</author>
			<updated>2012-02-29T14:18:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=57356#p57356</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: после отпускания клавиши не останавливается]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=57354#p57354" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>#MaxHotkeysPerinterval, 1000
SetKeyDelay, 50

Capslock::
   While GetKeyState(A_ThisHotkey, &quot;P&quot;)
      Send, {vk45}{vk46}
;   тут требуемое действие по отжиму хоткея, если нужно
   Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2012-02-29T14:04:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=57354#p57354</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: после отпускания клавиши не останавливается]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=57351#p57351" />
			<content type="html"><![CDATA[<p>Хотел сделать скрипт, который работал бы только тогда, когда держишь кнопку,&nbsp; &nbsp;после отпускания выполняется ещё одна команда(не обязательно)...но во всех случаях после нажатия клавиши нельзя остановить выполнение команд...</p><p>Первая попытка, :<br /></p><div class="codebox"><pre><code>Capslock::
loop
{
Send {vk45}
sleep 50
send {vk46}
}
KeyWait, Capslock 
Return</code></pre></div><p>вторая попытка:<br /></p><div class="codebox"><pre><code>CapsLock::
IF flag &lt;&gt; 1
{
ControlSendRaw,,  blalbla1 
loop 
{
send {vk45}
sleep 50
send {vk46}
}
flag := 1
}
return
 
CapsLock Up::
IF flag = 1
{
ControlSendRaw,,  blalbla2 
send {vk46}
flag := 0
}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[kazys]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27657</uri>
			</author>
			<updated>2012-02-29T12:57:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=57351#p57351</id>
		</entry>
</feed>
