<?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=11663&amp;type=atom" />
	<updated>2016-06-03T08:57:35Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11663</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прерывание цикла после отжатия клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104638#p104638" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>1::
Break := 0
Loop
{
SendInput, 2
If Break
   Break
Sleep, 300
If Break
   Break
SendInput, 3
If Break
   Break
Sleep, 300
If Break
   Break
SendInput, 4
If Break
   Break
Sleep, 300
If Break
   Break
SendInput, 5
If Break
   Break
Sleep, 300
}
Return
1 Up::
Break := 1
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Nikva]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27416</uri>
			</author>
			<updated>2016-06-03T08:57:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104638#p104638</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Прерывание цикла после отжатия клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104629#p104629" />
			<content type="html"><![CDATA[<p>Здравствуйте.<br /></p><div class="codebox"><pre><code>1::
loop
{
GetKeyState, state, 1, P
if state = U
    Break
else
sendinput, 2
sleep, 300
sendinput, 3
sleep, 300
sendinput, 4
sleep, 300
sendinput, 5
}
return</code></pre></div><p>После отпускания клавиши &quot;1&quot;, цикл остановится выполнит все действия в нем.<br />Как сделать чтобы после отпускания клавиши &quot;1&quot;, цикл прерывался, не закончив всю работу.</p>]]></content>
			<author>
				<name><![CDATA[SeaVodikendu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33752</uri>
			</author>
			<updated>2016-06-03T06:15:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104629#p104629</id>
		</entry>
</feed>
