<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Как сделать полную остановку цикла?]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=13297&amp;type=atom" />
	<updated>2017-12-16T15:04:50Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=13297</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122377#p122377" />
			<content type="html"><![CDATA[<p>Через KeyWait проще.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-12-16T15:04:50Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122377#p122377</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122369#p122369" />
			<content type="html"><![CDATA[<p><strong>MandarinKa02</strong>, дак это он должен был сам сделать, это лишь проверка.</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2017-12-16T01:06:44Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122369#p122369</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122367#p122367" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[MandarinKa02]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34409</uri>
			</author>
			<updated>2017-12-15T15:59:58Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122367#p122367</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122315#p122315" />
			<content type="html"><![CDATA[<p><strong>Floop</strong>, косяк в твоем коде где-то..</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2017-12-14T15:58:58Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122315#p122315</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122313#p122313" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2017-12-14T14:20:18Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122313#p122313</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122276#p122276" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Floop]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38931</uri>
			</author>
			<updated>2017-12-14T05:44:17Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122276#p122276</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122261#p122261" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2017-12-13T21:40:01Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122261#p122261</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122259#p122259" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Floop]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38931</uri>
			</author>
			<updated>2017-12-13T20:01:16Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122259#p122259</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122256#p122256" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>F2::
SetTimer, Script1, Delete
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[MandarinKa02]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34409</uri>
			</author>
			<updated>2017-12-13T19:22:14Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122256#p122256</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122255#p122255" />
			<content type="html"><![CDATA[<p><strong>Diman_Express</strong><br />Ничего не вышло всё также выдаёт доклад в чат((<br />Совет M<strong>andarinKa02</strong> помог, но там он ждёт задержку и только потом срабатывает <em>Break</em>.</p>]]></content>
			<author>
				<name><![CDATA[Floop]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38931</uri>
			</author>
			<updated>2017-12-13T19:19:46Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122255#p122255</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122240#p122240" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Diman_Express]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30364</uri>
			</author>
			<updated>2017-12-13T16:54:39Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122240#p122240</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122238#p122238" />
			<content type="html"><![CDATA[<p><strong>Phoenixxx_Czar</strong><br />Можешь сделать в код что бы на F2 нажимаешь и цикл полностью отключается)) Плюсом не обижу</p>]]></content>
			<author>
				<name><![CDATA[Floop]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38931</uri>
			</author>
			<updated>2017-12-13T15:25:43Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122238#p122238</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122235#p122235" />
			<content type="html"><![CDATA[<p><strong>Floop</strong>, SetTimer, AutoPost, off</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2017-12-13T13:52:05Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122235#p122235</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122230#p122230" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Floop]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38931</uri>
			</author>
			<updated>2017-12-13T10:11:07Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122230#p122230</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как сделать полную остановку цикла?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122225#p122225" />
			<content type="html"><![CDATA[<p><strong>Phoenixxx_Czar</strong><br />Если нужно уйти с дежурства то как его остановить?</p>]]></content>
			<author>
				<name><![CDATA[Floop]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38931</uri>
			</author>
			<updated>2017-12-13T06:45:48Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122225#p122225</id>
		</entry>
</feed>
