<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Вопрос по Timer]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=8465&amp;type=atom" />
	<updated>2013-07-12T10:52:25Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8465</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос по Timer]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73681#p73681" />
			<content type="html"><![CDATA[<p>Вроде разобрался<br />Всем спасибо</p>]]></content>
			<author>
				<name><![CDATA[Hydrogenium]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30160</uri>
			</author>
			<updated>2013-07-12T10:52:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73681#p73681</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос по Timer]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73680#p73680" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Ekklesiast пишет:</cite><blockquote><p>я же задачи примерно описал кодом</p></blockquote></div><p>Вот этим? <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br /></p><div class="codebox"><pre><code>... код</code></pre></div><div class="quotebox"><blockquote><p>а какой смысл в Return</p></blockquote></div><p>Подпрограмма выполняется ровно до этого слова.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2013-07-12T10:49:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73680#p73680</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос по Timer]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73678#p73678" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Без разницы</p></blockquote></div><p>да ну</p><div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p> или в зависимости от задачи</p></blockquote></div><p>я же задачи примерно описал кодом<br />проглядели ? )))</p><div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Чтобы таймер сработал один раз</p></blockquote></div><p>таймеры постоянно должны работать</p><div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p> <em>settimer, Test1, Off</em> не нужно</p></blockquote></div><p>Off, чтобы таймер работал по нужному интервалу, а не плюсовал задержку</p><br /><p>а какой смысл в Return - не понятно ?<br />ведь и без него работает</p>]]></content>
			<author>
				<name><![CDATA[Hydrogenium]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30160</uri>
			</author>
			<updated>2013-07-12T09:53:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73678#p73678</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос по Timer]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73676#p73676" />
			<content type="html"><![CDATA[<p>Без разницы, или в зависимости от задачи. Чтобы таймер сработал один раз, в первой строке писать <em>settimer, Test1, Off</em> не нужно, достаточно при запуске задать отрицательное значение:</p><div class="codebox"><pre><code>settimer, Test1, -100</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2013-07-12T09:33:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73676#p73676</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос по Timer]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73669#p73669" />
			<content type="html"><![CDATA[<p>?</p>]]></content>
			<author>
				<name><![CDATA[Hydrogenium]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30160</uri>
			</author>
			<updated>2013-07-12T07:17:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73669#p73669</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Вопрос по Timer]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73659#p73659" />
			<content type="html"><![CDATA[<p>Какая конструкция лучше или как корректнее написать код для нескольких таймеров ?</p><p><strong>Вариант 1:</strong></p><div class="codebox"><pre><code>
settimer, Test1, 100
settimer, Test2, 100

Test1:
    Func1()
return

Func1()
{
   sleep, 2000
   .... код
}

Test2:
    Func2()
return

Func2()
{
  sleep, 2000
   .... код
}

</code></pre></div><br /><p><strong>Вариант 2:</strong></p><div class="codebox"><pre><code>
settimer, Test1, 100
settimer, Test2, 100

Test1:
{
  settimer, Test1, Off
  sleep, 2000
   ... код
  settimer, Test1, On
}   

Test2:
{
   settimer, Test2 Off
   sleep, 2000
   ... код
   settimer, Test2, On
}   
</code></pre></div><br /><p>и на скока актуально использовать timer оff/on, чтобы не накладывался таймер</p>]]></content>
			<author>
				<name><![CDATA[Hydrogenium]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30160</uri>
			</author>
			<updated>2013-07-11T17:29:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73659#p73659</id>
		</entry>
</feed>
