<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Как прервать один цикл и начать другой через 300ms]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=13428&amp;type=atom" />
	<updated>2018-01-31T02:16:11Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=13428</id>
		<entry>
			<title type="html"><![CDATA[Re: Как прервать один цикл и начать другой через 300ms]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=123489#p123489" />
			<content type="html"><![CDATA[<p><strong>Phoenixxx_Czar</strong> Спасибо, всё работает</p>]]></content>
			<author>
				<name><![CDATA[artur.petrash.98]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39038</uri>
			</author>
			<updated>2018-01-31T02:16:11Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=123489#p123489</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как прервать один цикл и начать другой через 300ms]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=123488#p123488" />
			<content type="html"><![CDATA[<p>Мне кажется что это можно сделать данным способом:<br /></p><div class="codebox"><pre><code>~sc20::
time := A_TickCount
Loop
{
	if (A_TickCount - time &lt; 300)
		Send, {sc39}{sc2D}{sc2F}
	else
		Send, {sc10}{sc11}{sc2E}
	Sleep, 1
	If (!GetKeyState(&quot;sc20&quot;, &quot;P&quot;))
		Break
}
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2018-01-31T01:39:54Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=123488#p123488</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Как прервать один цикл и начать другой через 300ms]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=123486#p123486" />
			<content type="html"><![CDATA[<p>Мне нужно чтобы я зажал клавишу d и первые 300ms&nbsp; работал первый цикл, а после второй цикл до тех пор пока отпустится клавиша d <br />Ниже я сделал это 2мя клавишами, но тайминг 300ms приходится ловить вручную<br />~sc20::<br />&nbsp; &nbsp;Loop<br />&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; Send, {sc39}{sc2D}{sc2F}<br />&nbsp; &nbsp; &nbsp; Sleep, 1<br />&nbsp; &nbsp; &nbsp; If !GetKeyState(&quot;sc20&quot;, &quot;P&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Break<br />&nbsp; &nbsp;}<br />&nbsp; &nbsp;Return</p><br /><p>~sc21::<br />&nbsp; &nbsp;Loop<br />&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; Send, {sc10}{sc11}{sc2E}<br />&nbsp; &nbsp; &nbsp; Sleep, 1<br />&nbsp; &nbsp; &nbsp; If !GetKeyState(&quot;sc21&quot;, &quot;P&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Break<br />&nbsp; &nbsp;}<br />&nbsp; &nbsp;Return</p><br /><p>!sc19::<br />Suspend<br />Return</p>]]></content>
			<author>
				<name><![CDATA[artur.petrash.98]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39038</uri>
			</author>
			<updated>2018-01-30T23:31:13Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=123486#p123486</id>
		</entry>
</feed>
