<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Pause в цикле]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13383&amp;type=atom" />
	<updated>2018-01-19T14:16:58Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13383</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Pause в цикле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=123198#p123198" />
			<content type="html"><![CDATA[<p>Глядите:<br /><a href="https://autohotkey.com/download/1.0/">https://autohotkey.com/download/1.0/</a></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2018-01-19T14:16:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=123198#p123198</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Pause в цикле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=123197#p123197" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong>, не знаю, по-моему, там пропущены про дополнительные потоки информация. Вот глянуть бы английскую справку 2007 г.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2018-01-19T14:10:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=123197#p123197</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Pause в цикле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=123196#p123196" />
			<content type="html"><![CDATA[<p><strong>svoboden</strong>, посмотрите на дату создания русской справки и вопросы отпадут сами собой.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2018-01-19T13:55:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=123196#p123196</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Pause в цикле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=123195#p123195" />
			<content type="html"><![CDATA[<p>Да уж, а в русской справке про какую-то процедуру пишут: <a href="http://www.script-coding.com/AutoHotkey/MaxThreads.html">http://www.script-coding.com/AutoHotkey/MaxThreads.html</a>. Получается, что через гугл-переводчик и то точнее будет перевод.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2018-01-19T12:10:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=123195#p123195</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Pause в цикле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=123194#p123194" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Up to two of the following types of threads may be created even when #MaxThreads has been reached: A hotkey, hotstring, OnClipboardChange, or GUI event if the first line of its subroutine is ExitApp, Pause, Edit, Reload, KeyHistory, ListLines, ListVars, or ListHotkeys</p></blockquote></div><p><a href="https://autohotkey.com/docs/commands/_MaxThreads.htm">https://autohotkey.com/docs/commands/_MaxThreads.htm</a></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2018-01-19T11:46:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=123194#p123194</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Pause в цикле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=123193#p123193" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong>, а что там можно понять? 10 потоков нигде не нахожу в окне у себя.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2018-01-19T11:28:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=123193#p123193</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Pause в цикле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=123191#p123191" />
			<content type="html"><![CDATA[<p>Чтобы это понять, после каждого нажатия f12 смотрите key history.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2018-01-19T11:14:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=123191#p123191</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Pause в цикле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=123190#p123190" />
			<content type="html"><![CDATA[<p>Спасибо за ответы, это да, можно по разному написать, но хотелось понять, почему именно 12 раз срабатывает пауза, когда в справке написано, что по умолчанию #MaxThreads равен 10?</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2018-01-19T11:02:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=123190#p123190</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Pause в цикле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=123176#p123176" />
			<content type="html"><![CDATA[<p>Так можно:<br /></p><div class="codebox"><pre><code>#If loop
F12::
Pause toggle
return
#If

F12::
loop := 1
loop    
{
 send 2
 sleep 10
}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2018-01-18T14:03:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=123176#p123176</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Pause в цикле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=123175#p123175" />
			<content type="html"><![CDATA[<p>А ясно. 6 - ограничение одновременных потоков, либо циклов в стеке. Суть в том что вы <span class="bbu">не выходите</span> из старого цикла по хоткею, он просто приостанавливается пока работает новый. Приостанавливается потому что в ahk может быть только один работающий цикл в момент времени.<br />Используйте таймеры. Хотите через цикл - выведите его из под потока хоткея.<br /><a href="http://forum.script-coding.com/viewtopic.php?id=13036">http://forum.script-coding.com/viewtopic.php?id=13036</a></p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2018-01-18T13:14:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=123175#p123175</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Pause в цикле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=123174#p123174" />
			<content type="html"><![CDATA[<p>А сколько? У меня 6 раз или 12 как угодно. Смысл в том, что команда Pause останавливается на &quot;off&quot;.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2018-01-18T12:33:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=123174#p123174</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Pause в цикле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=123171#p123171" />
			<content type="html"><![CDATA[<p>Народ, кто знает, почему в данном коде:<br /></p><div class="codebox"><pre><code>F12::
Pause % (i := !i) ? &quot;off&quot; : &quot;on&quot;
loop    
{
 send 2
 sleep 10
}
return</code></pre></div><p>команда Pause срабатывает 6 раз?</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2018-01-18T10:10:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=123171#p123171</id>
		</entry>
</feed>
