<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Как сделать полную остановку цикла?]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=13297</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13297&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Как сделать полную остановку цикла?».]]></description>
		<lastBuildDate>Sat, 16 Dec 2017 15:04:50 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122377#p122377</link>
			<description><![CDATA[<p>Через KeyWait проще.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Sat, 16 Dec 2017 15:04:50 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122377#p122377</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122369#p122369</link>
			<description><![CDATA[<p><strong>MandarinKa02</strong>, дак это он должен был сам сделать, это лишь проверка.</p>]]></description>
			<author><![CDATA[null@example.com (Phoenixxx_Czar)]]></author>
			<pubDate>Sat, 16 Dec 2017 01:06:44 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122369#p122369</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122367#p122367</link>
			<description><![CDATA[<p><strong>Phoenixxx_Czar</strong>, неа. Косяк таки в вашем коде. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p><div class="codebox"><pre><code>
if (RegExMatch(chatInput, &quot;^\/дежурный&quot;))
{
	if (RegExMatch(chatInput, &quot;^\/дежурный ([1-6]) (\d{1,2})$&quot;, out))
	{
		If (out2 &gt;= 1 &amp;&amp; out2 &lt;= 60)
		{
			post_active := 1
			post_palata := out_1
			addChatMessage(Color_Norm  &quot;[AHK]:Отключить /дежурныйофф&quot;)
			SendChat(&quot;/r [Дежурcтво] Докладывает &quot; Nameplauer &quot;. Заступаю на дежурство в палату &quot; post_palata)
			SetTimer, AutoPost, % out2 * 60000
		}
		else
			addChatMessage(Color_Norm  &quot;[AHK]: Используй меньше 60-ти минут!&quot;)
	}
	Else
		addChatMessage(Color_Norm  &quot;[AHK]: Используйте: /дежурный [Палата] [Интервал]&quot;)
}
return;&lt;--------------------------------забыли
; код

AutoPost:
if (post_active)
	SendChat(&quot;[Дежурcтво] Докладывает &quot; Nameplauer &quot;. Палата №&quot; post_palata &quot;.&quot;)
Return

F2::
if (post_active)
	SetTimer, AutoPost, off
return
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (MandarinKa02)]]></author>
			<pubDate>Fri, 15 Dec 2017 15:59:58 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122367#p122367</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122315#p122315</link>
			<description><![CDATA[<p><strong>Floop</strong>, косяк в твоем коде где-то..</p>]]></description>
			<author><![CDATA[null@example.com (Phoenixxx_Czar)]]></author>
			<pubDate>Thu, 14 Dec 2017 15:58:58 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122315#p122315</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122313#p122313</link>
			<description><![CDATA[<p><span style="color: green"><strong>Floop</strong>, поставьте точки в конце предложений:<br /><a href="http://forum.script-coding.com/viewtopic.php?pid=122212#p122212">http://forum.script-coding.com/viewtopi … 12#p122212</a>;<br /><a href="http://forum.script-coding.com/viewtopic.php?pid=122238#p122238">http://forum.script-coding.com/viewtopi … 38#p122238</a>;<br /><a href="http://forum.script-coding.com/viewtopic.php?pid=122255#p122255">http://forum.script-coding.com/viewtopi … 55#p122255</a>;<br /><a href="http://forum.script-coding.com/viewtopic.php?pid=122259#p122259">http://forum.script-coding.com/viewtopi … 59#p122259</a>.</span></p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Thu, 14 Dec 2017 14:20:18 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122313#p122313</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122276#p122276</link>
			<description><![CDATA[<p><strong>Phoenixxx_Czar</strong><br />Тут если писать просто /дежурный то он выдаёт подсказку как правильно написать и доклад хотя его вообще тогда не тадо.<br /><span class="postimg"><img src="http://skrinshoter.ru/i/141217/GP1cBJSz.png" alt="http://skrinshoter.ru/i/141217/GP1cBJSz.png" /></span></p>]]></description>
			<author><![CDATA[null@example.com (Floop)]]></author>
			<pubDate>Thu, 14 Dec 2017 05:44:17 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122276#p122276</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122261#p122261</link>
			<description><![CDATA[<p><strong>Floop</strong>, пробуй:<br /></p><div class="codebox"><pre><code>if (RegExMatch(chatInput, &quot;^\/дежурный&quot;))
{
	if (RegExMatch(chatInput, &quot;^\/дежурный ([1-6]) (\d{1,2})$&quot;, out))
	{
		If (out2 &gt;= 1 &amp;&amp; out2 &lt;= 60)
		{
			post_active := 1
			post_palata := out_1
			addChatMessage(Color_Norm  &quot;[AHK]:Отключить /дежурныйофф&quot;)
			SendChat(&quot;/r [Дежурcтво] Докладывает &quot; Nameplauer &quot;. Заступаю на дежурство в палату &quot; post_palata)
			SetTimer, AutoPost, % out2 * 60000
		}
		else
			addChatMessage(Color_Norm  &quot;[AHK]: Используй меньше 60-ти минут!&quot;)
	}
	Else
		addChatMessage(Color_Norm  &quot;[AHK]: Используйте: /дежурный [Палата] [Интервал]&quot;)
}

; код

AutoPost:
if (post_active)
	SendChat(&quot;[Дежурcтво] Докладывает &quot; Nameplauer &quot;. Палата №&quot; post_palata &quot;.&quot;)
Return

F2::
if (post_active)
	SetTimer, AutoPost, off
return
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Phoenixxx_Czar)]]></author>
			<pubDate>Wed, 13 Dec 2017 21:40:01 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122261#p122261</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122259#p122259</link>
			<description><![CDATA[<p><strong>MandarinKa02</strong><br />Спасибо тебе большое плюсом не обидел))<br />Да но теперь если просто ввести /дежурный то флудит<br /><span class="postimg"><img src="http://skrinshoter.ru/i/131217/tSc5H5an.png" alt="http://skrinshoter.ru/i/131217/tSc5H5an.png" /></span></p>]]></description>
			<author><![CDATA[null@example.com (Floop)]]></author>
			<pubDate>Wed, 13 Dec 2017 20:01:16 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122259#p122259</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122256#p122256</link>
			<description><![CDATA[<div class="codebox"><pre><code>F2::
SetTimer, Script1, Delete
return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (MandarinKa02)]]></author>
			<pubDate>Wed, 13 Dec 2017 19:22:14 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122256#p122256</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122255#p122255</link>
			<description><![CDATA[<p><strong>Diman_Express</strong><br />Ничего не вышло всё также выдаёт доклад в чат((<br />Совет M<strong>andarinKa02</strong> помог, но там он ждёт задержку и только потом срабатывает <em>Break</em>.</p>]]></description>
			<author><![CDATA[null@example.com (Floop)]]></author>
			<pubDate>Wed, 13 Dec 2017 19:19:46 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122255#p122255</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122240#p122240</link>
			<description><![CDATA[<p><strong>Floop</strong>,<br /></p><div class="codebox"><pre><code>
SetTimer, Script1
return

Script1:
if chatInput contains /дежурный
{
	RegExMatch(chatInput, &quot;\/дежурный (\d+) (\d+)&quot;, dez)
	If (dez1 &gt; 0) and (dez1 &lt; 6) and (dez2 &gt; 0) and (dez2 &lt; 61)
	{
		addChatMessage(Color_Norm  &quot;[AHK]:Отключить /дежурныйофф&quot;)
		SendChat(&quot;/r [Дежурcтво] Докладывает &quot; Nameplauer &quot;. Заступаю на дежурство в палату &quot; dez1 &quot;&quot;)
		Loop
		{
			sleep % (dez2 * 60000)
			SendChat(&quot;[Дежурcтво] Докладывает &quot; Nameplauer &quot; | Палата №&quot; dez1 &quot;.&quot;)
		}
	}
	Else
	{
		addChatMessage(Color_Norm  &quot;[AHK]:Используйте: /дежурный &#039;&#039;Палата&#039;&#039; &#039;&#039;Интервал&#039;&#039;&quot;)
	}
}
return

F2::
SetTimer, Script1, off
return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Diman_Express)]]></author>
			<pubDate>Wed, 13 Dec 2017 16:54:39 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122240#p122240</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122238#p122238</link>
			<description><![CDATA[<p><strong>Phoenixxx_Czar</strong><br />Можешь сделать в код что бы на F2 нажимаешь и цикл полностью отключается)) Плюсом не обижу</p>]]></description>
			<author><![CDATA[null@example.com (Floop)]]></author>
			<pubDate>Wed, 13 Dec 2017 15:25:43 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122238#p122238</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122235#p122235</link>
			<description><![CDATA[<p><strong>Floop</strong>, SetTimer, AutoPost, off</p>]]></description>
			<author><![CDATA[null@example.com (Phoenixxx_Czar)]]></author>
			<pubDate>Wed, 13 Dec 2017 13:52:05 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122235#p122235</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122230#p122230</link>
			<description><![CDATA[<p><strong>MandarinKa02</strong><br />Как сделать что бы </p><div class="codebox"><pre><code>	if(bLoop)
		break
	tooltip % A_Index</code></pre></div><p> Чекал каждую секунду? У меня получается что он её черает когда задержка пройдёт<br /></p><div class="codebox"><pre><code>if chatInput contains /дежурный
{
	RegExMatch(chatInput, &quot;\/дежурный (\d+) (\d+)&quot;, dez)
	If (dez1 &gt; 0) and (dez1 &lt; 6) and (dez2 &gt; 0) and (dez2 &lt; 61)
	{
		addChatMessage(Color_Norm  &quot;[AHK]:Отключить нажмите &#039;&#039;F2&#039;&#039;&quot;)
		SendChat(&quot;/r [Дежурcтво] Докладывает &quot; Nameplauer &quot;. Заступаю на дежурство в палату &quot; dez1 &quot;&quot;)
		bLoop:=0
		Loop
		{
			sleep % (dez2 * 60000)
			if(bLoop)
			{
				break
				tooltip % A_Index
			}
			SendChat(&quot;/r [Дежурcтво] Докладывает &quot; Nameplauer &quot;. Палата №&quot; dez1 &quot;.&quot;)
		}
		return
		F2::bLoop:=1 addChatMessage(Color_Norm  &quot;Вы закончили дежурство&quot;) SendChat(&quot;/r [Дежурcтво] Докладывает &quot; Nameplauer &quot;. Закончил дежурить в палате №&quot; dez1 &quot;&quot;)
	}
	Else
	{
		addChatMessage(Color_Norm  &quot;[AHK]: Используйте: /дежурный [Палата 1-5] [Интервал 1-60]&quot;)
	}
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Floop)]]></author>
			<pubDate>Wed, 13 Dec 2017 10:11:07 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122230#p122230</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122225#p122225</link>
			<description><![CDATA[<p><strong>Phoenixxx_Czar</strong><br />Если нужно уйти с дежурства то как его остановить?</p>]]></description>
			<author><![CDATA[null@example.com (Floop)]]></author>
			<pubDate>Wed, 13 Dec 2017 06:45:48 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122225#p122225</guid>
		</item>
	</channel>
</rss>
