<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: SetTimer отключение и включение цикла вопрос]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9365&amp;type=atom" />
	<updated>2014-03-12T22:05:55Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9365</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: SetTimer отключение и включение цикла вопрос]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=80752#p80752" />
			<content type="html"><![CDATA[<p>Конструктивный ответ.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-03-12T22:05:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=80752#p80752</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: SetTimer отключение и включение цикла вопрос]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=80751#p80751" />
			<content type="html"><![CDATA[<p>К сожалению, такой вариант для меня не походит <img src="//forum.script-coding.com/img/smilies/sad.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Странникх]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30605</uri>
			</author>
			<updated>2014-03-12T21:57:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=80751#p80751</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: SetTimer отключение и включение цикла вопрос]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=80748#p80748" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
arr := [&quot;6&quot;, &quot;7&quot;, &quot;8&quot;]
1::
Settimer, send, off
i := 0

send:
Sendinput % arr[++i]
if (i &lt; arr.maxindex())
Settimer, send, -1000
return

2:: Settimer, send, off
</code></pre></div><p>Что то типа того. Пк нет, так что без табуляции и гарантий.<br />Каждое нажатие 1, сразу запускает цикл заново. 2 останавливает в любой момент.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-03-12T21:07:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=80748#p80748</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: SetTimer отключение и включение цикла вопрос]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=80746#p80746" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
1:: 
SetTimer, Time, On
return

2::
SetTimer, Time, Off
SetTimer, Time, On
return

Time:
Send 6
sleep, 1000
Send 7
sleep, 1000
Send 8
SetTimer, Time, Off
return
</code></pre></div><p>Данный скрипт активируется с помощью кнопки 1, далее с интервалом секунда идет отправка клавиш 6,7,8. Кнопка 2 должна по идее либо останавливать цикл, либо начинать сначала, однако ни первое и ни второе не происходит, цикл проходит дальше до return. Возникла данная проблема, ничего в голову по решению не пришло, кроме как сделать Reload с нажатия 2й кнопки, чтобы цикл с Time запускался сначала. Может кто из знающих помочь?</p>]]></content>
			<author>
				<name><![CDATA[Странникх]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30605</uri>
			</author>
			<updated>2014-03-12T20:16:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=80746#p80746</id>
		</entry>
</feed>
