<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Одна и та же клавиша включает и выключает loop]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=14242&amp;type=atom" />
	<updated>2018-10-14T01:29:48Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=14242</id>
		<entry>
			<title type="html"><![CDATA[Re: Одна и та же клавиша включает и выключает loop]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=129237#p129237" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>#MaxThreadsPerHotkey 2
1::
   i := !i
   Loop  {
      for k, v in [&quot;A&quot;, &quot;W&quot;, &quot;D&quot;, &quot;S&quot;]  {
         if !i
            break 2
         Send % v
         Sleep, 220
      }
   }
   Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-10-14T01:29:48Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=129237#p129237</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Одна и та же клавиша включает и выключает loop]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=129233#p129233" />
			<content type="html"><![CDATA[<p>Используйте таймер или команду pause.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2018-10-13T23:43:27Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=129233#p129233</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Одна и та же клавиша включает и выключает loop]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=129227#p129227" />
			<content type="html"><![CDATA[<p>Уверен можно сделать намного проще, но я сам начинающий, особо не шарю.</p><div class="codebox"><pre><code>

#MaxThreadsPerHotkey 2

b = 0

1::
b++
if(b==1){
Loop {
Send, {A}
Sleep 220
Send, {W}
Sleep 220
Send, {D}
Sleep 220
Send, {S}
Sleep 220
if(b==0){
break
}
}
}
else{
b := 0
}

</code></pre></div>]]></content>
			<author>
				<name><![CDATA[petrmax]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39583</uri>
			</author>
			<updated>2018-10-13T20:55:53Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=129227#p129227</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Одна и та же клавиша включает и выключает loop]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=129225#p129225" />
			<content type="html"><![CDATA[<p>Допустим, нажимаю клавишу 1, запускается loop:<br /></p><div class="codebox"><pre><code>Loop
		{
			Send, {A}
			Sleep 220
			Send, {W}
			Sleep 220
			Send, {D}
			Sleep 220
			Send, {S}
			Sleep 220
		}</code></pre></div><p>Когда нужно, нажимаю клавишу 1 опять и Loop ломается. (Break)<br />Как так сделать?</p>]]></content>
			<author>
				<name><![CDATA[Chikko]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39127</uri>
			</author>
			<updated>2018-10-13T19:21:16Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=129225#p129225</id>
		</entry>
</feed>
