<?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=9734</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9734&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Выйти из цикла с помощью другого скрипта.».]]></description>
		<lastBuildDate>Wed, 25 Jun 2014 05:42:09 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Выйти из цикла с помощью другого скрипта.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=84175#p84175</link>
			<description><![CDATA[<p>А, понял.<br />Спасибо!</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Wed, 25 Jun 2014 05:42:09 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=84175#p84175</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Выйти из цикла с помощью другого скрипта.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=84174#p84174</link>
			<description><![CDATA[<p>А зачем вы OnMessage в цикле вызываете? Её один раз надо вызвать.</p>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Wed, 25 Jun 2014 05:29:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=84174#p84174</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Выйти из цикла с помощью другого скрипта.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=84173#p84173</link>
			<description><![CDATA[<p>Этим скриптом я хочу прервать цикл в 1.ahk<br /></p><div class="codebox"><pre><code>SetTitleMatchMode, 2
DetectHiddenWindows, On
PostMessage, 0x5555,,,, 1.ahk
</code></pre></div><p>1.ahk<br /></p><div class="codebox"><pre><code>loop
{
   ToolTip % A_Index
   sleep, 3000
   OnMessage(0x5555, &quot;Msg&quot;)
}

finish:
msgbox finish
ExitApp

Msg()
{
 SetTimer, finish, -1
}</code></pre></div><p>Из-за Sleep OnMessage не отслеживается.<br />Поэтому вопрос - возможно ли как-то прервать цикл, отслеживая OnMessage не в теле цикла?<br />Стоит ли использовать SetTimer?<br />Или чтобы не портить быстродействие скрипта, запускать вторым скриптом какую-либо программу и уже ее появление отслеживать первым скриптом с помощью хука для отслеживания окон от teadrinkerа?<br />Как лучше сделать?</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Wed, 25 Jun 2014 03:41:28 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=84173#p84173</guid>
		</item>
	</channel>
</rss>
