<?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=11703&amp;type=atom" />
	<updated>2016-06-10T14:57:50Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11703</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Зажатие клавиши/прирывание цикла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=105083#p105083" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Insert::
T := !T
SetTimer, Timer,%  T ? -1 : &quot;off&quot;
return

Timer:
if (T = 1)
{
	Send, {SC10 Down}
	T := 2
	SetTimer, Timer,-50000
}
else if (T = 2)
{
	Send, {SC10 Up}
	T := 0
}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2016-06-10T14:57:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=105083#p105083</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Зажатие клавиши/прирывание цикла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=105077#p105077" />
			<content type="html"><![CDATA[<p>Псс парень! Префикс &quot;AHK: &quot; в названии темы, добавить не хочешь?<br /><span class="postimg"><img src="http://s8.hostingkartinok.com/uploads/images/2016/06/60de06398684fe3aaa3c16a875abab9d.jpg" alt="http://s8.hostingkartinok.com/uploads/images/2016/06/60de06398684fe3aaa3c16a875abab9d.jpg" /></span><br />По правилам сайта это обязательно.</p>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2016-06-10T14:33:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=105077#p105077</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Зажатие клавиши/прирывание цикла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=105072#p105072" />
			<content type="html"><![CDATA[<p><strong>Norines</strong>, для вас первая тема на странице.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-06-10T13:24:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=105072#p105072</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Зажатие клавиши/прирывание цикла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=105069#p105069" />
			<content type="html"><![CDATA[<p>Смысл моего творения:</p><p>Скрипт запускается и останавливается при нажатии Insert</p><p>Цикл:</p><p><em>удержание клавиши 50 секунд <br />150 мс. пауза</em></p><p>При повторном нажатии Insert скрипт приостанавливается не сразу, а по истечению 50 секунд</p><div class="codebox"><pre><code>
Insert::
T := !T
SetTimer, Loop, -1
Return

Loop:
 While T
{
Send, {SC10 Down}
sleep 50000
Send, {SC10 Up}
sleep, 150
}
Return
</code></pre></div><p>Как сделать мгновенную приостановку цикла при повторном нажатии клавиши Insert?</p>]]></content>
			<author>
				<name><![CDATA[Norines]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33971</uri>
			</author>
			<updated>2016-06-10T13:11:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=105069#p105069</id>
		</entry>
</feed>
