<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Как задать SetTimer переменной]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=10778</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10778&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Как задать SetTimer переменной».]]></description>
		<lastBuildDate>Sun, 12 Jul 2015 22:16:45 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Как задать SetTimer переменной]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=95321#p95321</link>
			<description><![CDATA[<div class="codebox"><pre><code>#Persistent</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Sun, 12 Jul 2015 22:16:45 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=95321#p95321</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Как задать SetTimer переменной]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=95319#p95319</link>
			<description><![CDATA[<p>Как использовать переменную в SetTimer?<br /></p><div class="codebox"><pre><code>x := 2000

SetTimer, Test, %x%
Return

Test:
MsgBox, Успешно
Return</code></pre></div><p>Нашел на англоязычном форуме следующий вид, но тоже не работает:<br /></p><div class="codebox"><pre><code>x = 2000

y := 0

SetTimer, Test, %x%
Return

Test:
MsgBox, Успешно
y++
if y != 2
SetTimer, Test, %x%
Else
SetTimer, Test, Off
Return</code></pre></div><p>Добавлено:<br />Забавно, но так работает:<br /></p><div class="codebox"><pre><code>x = 2000

y := 0

Loop
{
SetTimer, Test, %x%
sleep, 10000
}
Return

Test:
MsgBox, Успешно
SetTimer, Test, Off
Return</code></pre></div><p>И так тоже:<br /></p><div class="codebox"><pre><code>x := 2000

F1::
SetTimer, Test, %x%
Return

Test:
MsgBox, Успешно
SetTimer, Test, Off
Return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Странникх)]]></author>
			<pubDate>Sun, 12 Jul 2015 21:41:35 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=95319#p95319</guid>
		</item>
	</channel>
</rss>
