<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Работа с SystemMenu]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9563&amp;type=atom" />
	<updated>2023-05-20T18:36:14Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9563</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Работа с SystemMenu]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158312#p158312" />
			<content type="html"><![CDATA[<p>Хотя для системных меню походу надо ставить хук WH_SYSMSGFILTER.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2023-05-20T18:36:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158312#p158312</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Работа с SystemMenu]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158311#p158311" />
			<content type="html"><![CDATA[<p>Зависит от того, что требуется, но закрывать точно не будет.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2023-05-20T17:24:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158311#p158311</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Работа с SystemMenu]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158310#p158310" />
			<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>2023-05-20T17:08:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158310#p158310</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Работа с SystemMenu]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158309#p158309" />
			<content type="html"><![CDATA[<p>Устанавливай WH_CBT хук и отлавливай HCBT_DESTROYWND.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2023-05-20T16:06:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158309#p158309</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Работа с SystemMenu]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158308#p158308" />
			<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>2023-05-20T15:53:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158308#p158308</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Работа с SystemMenu]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158307#p158307" />
			<content type="html"><![CDATA[<p>Существует ли метод не скрывать меню при выборе пункта?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2023-05-20T15:15:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158307#p158307</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Работа с SystemMenu]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158167#p158167" />
			<content type="html"><![CDATA[<p>Да, любопытно.<br /></p><div class="codebox"><pre><code>DllCall(&quot;InsertMenu&quot;, Ptr, hSysMenu, UInt, 0x1000, UInt, 0, UInt, 0x1000+A_Index, Str, &quot;MyItem &quot; A_Index &quot;`tCtrl+Shift+&quot; A_Index)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2023-05-13T07:35:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158167#p158167</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Работа с SystemMenu]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158152#p158152" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Точнее так:</p></blockquote></div><p>А как бы добавить ещё и клавиши запуска в<br /></p><div class="codebox"><pre><code>Loop 6
    DllCall(&quot;InsertMenu&quot;, Ptr, hSysMenu, UInt, 0x1000, UInt, 0, UInt, 0x1000+A_Index, Str, &quot;MyItem &quot; A_Index) 
Return </code></pre></div><p>например, F &amp; A_Index ? Как Alt+F4 у Закрыть.</p><p>P.S. Вопрос снят.<br />Нужно использовать `t .<br />Ларчики ahk иной&nbsp; раз открываются удивительно просто.</p>]]></content>
			<author>
				<name><![CDATA[concept.ru]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33777</uri>
			</author>
			<updated>2023-05-12T08:07:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158152#p158152</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Работа с SystemMenu]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=82855#p82855" />
			<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>2014-05-10T17:56:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=82855#p82855</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Работа с SystemMenu]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=82853#p82853" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Не знаю, изъян ли это, но меню появляется не только при клике по заголовку, но и по области кнопок.</p></blockquote></div><p>Нет, это специально. Условие - если не текстовая обдасть, то показать.<br /></p><div class="quotebox"><blockquote><p>координаты заголовка сначала определить нужно.</p></blockquote></div><p>А зачем?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-05-10T17:45:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=82853#p82853</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Работа с SystemMenu]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=82852#p82852" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Вобщем в последнем ahkspy реализовал, посмотри, может изъяны есть в этом способе.</p></blockquote></div><p>Не знаю, изъян ли это, но меню появляется не только при клике по заголовку, но и по области кнопок.<br /></p><div class="quotebox"><blockquote><p>Можно примерно так:</p></blockquote></div><p>Да, только координаты заголовка сначала определить нужно.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-05-10T17:38:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=82852#p82852</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Работа с SystemMenu]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=82850#p82850" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>определять, что клик был именно по заголовку.</p></blockquote></div><p>А, кажется понял о чём ты. Можно примерно так:<br /></p><div class="codebox"><pre><code>
Gui, Show, w222 h222
OnMessage(0x007B, &quot;WM_CONTEXTMENU&quot;)  
Return
   
WM_CONTEXTMENU() { 
    CoordMode, Mouse, Client
    MouseGetPos, , y 
    ToolTip % y &lt; 1 ? &quot;Заголовок&quot; : &quot;Не заголовок&quot;
    Return 0
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-05-10T16:23:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=82850#p82850</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Работа с SystemMenu]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=82845#p82845" />
			<content type="html"><![CDATA[<p>А что значит -&nbsp; имитировать системное меню? Нужно же чтоб правой кнопкой по заголовку, без особых танцев, вызывалось своё. Системное можно вызвать левым&nbsp; кликом в иконку заголовка, только зачем оно надо, как Ты сам говорил. Кстати в твоём варианте левый клик в иконку заголовка, периодически вызывает сис меню, а не своё как задумано.<br />Вобщем в последнем ahkspy реализовал, посмотри, может изъяны есть в этом способе.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-05-10T12:58:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=82845#p82845</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Работа с SystemMenu]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=82837#p82837" />
			<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>2014-05-10T10:22:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=82837#p82837</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Работа с SystemMenu]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=82827#p82827" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>запускается, если пользователь щелкнул правой клавишей мыши в любом месте окна, <strong>кроме строки заголовка</strong></p></blockquote></div><p>В этом?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-05-09T18:21:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=82827#p82827</id>
		</entry>
</feed>
