<?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=7545&amp;type=atom" />
	<updated>2012-09-08T21:52:56Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=7545</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как закрыть активное окно?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=63672#p63672" />
			<content type="html"><![CDATA[<p>Я делал подобным образом, но иногда всётаки появляется. </p><div class="codebox"><pre><code>WinGetClass, Class, A
If (Class = &quot;Shell_TrayWnd&quot; ||Class = &quot;Progman&quot; ||Class = &quot;WorkerW&quot;  ||Class = &quot;Button&quot; )
return
WinKill, A</code></pre></div><p>Оказалось, не хватало, некоего&nbsp; &quot;Button&quot;, так его <img src="//forum.script-coding.com/img/smilies/mad.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2012-09-08T21:52:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=63672#p63672</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как закрыть активное окно?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=63670#p63670" />
			<content type="html"><![CDATA[<p>Избежать предварительно проверяя не принадлежит ли активное окно ранее созданному специфическому списку программ «закрывать» которые не следует. В случае с горячей клавишей так, например:<br /></p><div class="codebox"><pre><code>GroupAdd, Desktop, ahk_class Progman
GroupAdd, Desktop, ahk_class WorkerW
GroupAdd, Desktop, ahk_class Shell_TrayWnd

#If !WinActive(&quot;ahk_group Desktop&quot;)
    #Space::WinKill, A
#If</code></pre></div>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-09-08T20:45:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=63670#p63670</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как закрыть активное окно?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=63669#p63669" />
			<content type="html"><![CDATA[<p>Так работает, но не закрывает окна проводника.<br /></p><div class="codebox"><pre><code>WinGet, Process, ProcessName, A
If Process = explorer.exe
Return
WinKill, A</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2012-09-08T20:42:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=63669#p63669</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Как закрыть активное окно?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=63667#p63667" />
			<content type="html"><![CDATA[<p>&quot;WinClose, A&quot; и &quot;WinKill, A&quot;, нормально работают, но при активности рабочего стола, или каких то его элементов, выдаётся диалог о завершении работы. Вопрос, как этого избежать?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2012-09-08T20:23:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=63667#p63667</id>
		</entry>
</feed>
