<?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="https://forum.script-coding.com/extern.php?action=feed&amp;tid=17112&amp;type=atom" />
	<updated>2022-05-09T10:28:40Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=17112</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Действие при неактивности окон]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153150#p153150" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>loop
{
	if (winExist(&quot;333&quot;) &amp;&amp; !winActive(&quot;111&quot;) &amp;&amp; !winActive(&quot;222&quot;))
	{
		winClose, 333
	}
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2022-05-09T10:28:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153150#p153150</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Действие при неактивности окон]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153145#p153145" />
			<content type="html"><![CDATA[<p>Была бы логика, не было бы вопроса. Придётся использовать для решения задачи два скрипта. Свои и некрасивые, но без посторонней помощи.</p>]]></content>
			<author>
				<name><![CDATA[p.polena]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33346</uri>
			</author>
			<updated>2022-05-08T20:23:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153145#p153145</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Действие при неактивности окон]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153144#p153144" />
			<content type="html"><![CDATA[<p>Синтаксис и логика неверная.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2022-05-08T19:43:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153144#p153144</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Действие при неактивности окон]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153141#p153141" />
			<content type="html"><![CDATA[<p>Не получается у меня.<br /></p><div class="codebox"><pre><code>Loop {
IfWinExist, 111
IfWinExist, 222
WinWaitNotActive
WinGetTitle, WinTitle
if WinTitle in 111,222
WinClose, 333}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[p.polena]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33346</uri>
			</author>
			<updated>2022-05-08T18:27:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153141#p153141</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Действие при неактивности окон]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153140#p153140" />
			<content type="html"><![CDATA[<p>Добавить проверку обеих окон через &#039;WinExist&#039; разве не решит проблему?</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2022-05-08T17:52:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153140#p153140</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Действие при неактивности окон]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153139#p153139" />
			<content type="html"><![CDATA[<p>Здравствуйте. Код закрывает окно 333 если неактивны окна с заголовками или 111 или 222. Как сделать, чтобы окно 333 закрывалось только при условии, когда&nbsp; неактивны оба этих окна. Т.е если активно любое из них, окно 333 не должно закрывться.<br /></p><div class="codebox"><pre><code>Loop {
WinExist(&quot;A&quot;)
WinWaitNotActive
WinGetTitle, WinTitle
if WinTitle in 111,222
WinClose, 333
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[p.polena]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33346</uri>
			</author>
			<updated>2022-05-08T14:54:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153139#p153139</id>
		</entry>
</feed>
