<?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=7736&amp;type=atom" />
	<updated>2020-04-06T22:35:55Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=7736</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свернуть/Развернуть в трей]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138937#p138937" />
			<content type="html"><![CDATA[<p>Огромное спасибо!)</p><p><span style="color: green">Не цитируйте предыдущее сообщение.</span></p>]]></content>
			<author>
				<name><![CDATA[vlad.blik13]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40709</uri>
			</author>
			<updated>2020-04-06T22:35:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138937#p138937</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свернуть/Развернуть в трей]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138934#p138934" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Gui, New, +hwndhGui1, Gui1
Gui, Show, x300 w300 h200

Gui, New,, Gui2
Gui, Show, x700 w300 h200

OnMessage(0x404, Func(&quot;AHK_NOTIFYICON&quot;).Bind(hGui1))
OnMessage(0x112, Func(&quot;WM_SYSCOMMAND&quot;).Bind(hGui1))
return

GuiClose:
   ExitApp

WM_SYSCOMMAND(hGui, wp, lp, msg, hwnd) {
   static SC_MINIMIZE := 0xF020
   if (wp = SC_MINIMIZE &amp;&amp; hwnd = hGui) {
      WinHide, ahk_id %hwnd%
      return 0
   }
}

AHK_NOTIFYICON(hGui, wp, lp) {
   static WM_LBUTTONDOWN := 0x201
   if (lp = WM_LBUTTONDOWN)
      WinShow, ahk_id %hGui%
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-04-06T21:00:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138934#p138934</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свернуть/Развернуть в трей]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138930#p138930" />
			<content type="html"><![CDATA[<p>А как сделать так, что-бы этот код действовал лишь на одно GUI, а на другое - нет?&nbsp; <strong>teadrinker</strong></p>]]></content>
			<author>
				<name><![CDATA[vlad.blik13]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40709</uri>
			</author>
			<updated>2020-04-06T19:23:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138930#p138930</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свернуть/Развернуть в трей]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135907#p135907" />
			<content type="html"><![CDATA[<p>Через WinClose можно.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2019-08-30T20:50:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135907#p135907</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свернуть/Развернуть в трей]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135903#p135903" />
			<content type="html"><![CDATA[<p>Так тоже пробовал<br /></p><div class="codebox"><pre><code>Archivarius3000.exe /min
start /min Archivarius3000.exe
start /min /low Archivarius3000.exe
в свойствах ярлыка дописать /tray</code></pre></div><p>Максимум получается добиться свернутого окна в кнопку на Панели задач (помимо значка в Трее).</p><p>А можно сделать проверку и убрать определенное окно с Панели задач?</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2019-08-30T10:15:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135903#p135903</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свернуть/Развернуть в трей]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135901#p135901" />
			<content type="html"><![CDATA[<p>Не, не в курсе.<br />Можно так попробовать:<br /></p><div class="codebox"><pre><code>Run, MyExe.exe,, Hide</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-08-29T07:16:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135901#p135901</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свернуть/Развернуть в трей]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135899#p135899" />
			<content type="html"><![CDATA[<p>Для которого уже предусмотрена отправка в трей? Имею в виду «Архивариус 3000».<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p><span class="postimg"><img src="https://i.imgur.com/VonVcMf.png" alt="https://i.imgur.com/VonVcMf.png" /></span></p></div></div>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2019-08-28T17:17:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135899#p135899</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свернуть/Развернуть в трей]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135898#p135898" />
			<content type="html"><![CDATA[<p>Смотря, какое приложение.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-08-28T16:38:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135898#p135898</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свернуть/Развернуть в трей]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135893#p135893" />
			<content type="html"><![CDATA[<p>А возможно сразу запустить приложение в трее?</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2019-08-28T00:41:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135893#p135893</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свернуть/Развернуть в трей]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=65166#p65166" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>global SC_MINIMIZE := 0xF020, WM_LBUTTONDOWN := 0x201, hGui

Gui, +AlwaysOnTop +hwndhGui
Gui, Show, w300 h200, Тест

OnMessage(0x404, &quot;AHK_NOTIFYICON&quot;)
OnMessage(0x112, &quot;WM_SYSCOMMAND&quot;)
return

GuiClose:
   ExitApp

WM_SYSCOMMAND(wp, lp, msg, hwnd)
{
   if (wp = SC_MINIMIZE &amp;&amp; hwnd = hGui)
   {
      WinHide, ahk_id %hwnd%
      return 0
   }
}

AHK_NOTIFYICON(wp, lp)
{
   if (lp = WM_LBUTTONDOWN)
      WinShow, ahk_id %hGui%
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2012-10-27T08:18:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=65166#p65166</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Свернуть/Развернуть в трей]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=65165#p65165" />
			<content type="html"><![CDATA[<p>Нужно по нажатию выделенной кнопки свернуть окно в трей, а развернуть по нажатию левой кнопки мыши на иконку в трее<br /></p><div class="codebox"><pre><code>#SingleInstance force
Gui, +AlwaysOnTop
Gui,Show, w300 h200, Тест
return

-:
Gui, hide
return

?:
Gui, Show
return

GuiClose:
ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[[CM]White]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28415</uri>
			</author>
			<updated>2012-10-27T07:31:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=65165#p65165</id>
		</entry>
</feed>
