<?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=12438&amp;type=atom" />
	<updated>2017-02-14T17:16:02Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12438</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Послать сообщение панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112471#p112471" />
			<content type="html"><![CDATA[<p>Игнорирование сообщений ПЗ, когда фокус на ней.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2017-02-14T17:16:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112471#p112471</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Послать сообщение панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112470#p112470" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>До меня наконец дошло, почему такое поведение.</p></blockquote></div><p>А о каком поведении речь?</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-02-14T16:58:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112470#p112470</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Послать сообщение панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112417#p112417" />
			<content type="html"><![CDATA[<p>Запись неверна:<br /></p><div class="codebox"><pre><code>ControlGetFocus, fc, % hwnd:=WinExist(&quot;A&quot;)</code></pre></div><p>Надо так:<br /></p><div class="codebox"><pre><code>ControlGetFocus, fc, % &quot;ahk_id &quot; hwnd:=WinExist(&quot;A&quot;)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-02-13T23:52:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112417#p112417</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Послать сообщение панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112414#p112414" />
			<content type="html"><![CDATA[<p>fc забыли поставить в ControlFocus,, ahk_id %id%</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-02-13T23:18:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112414#p112414</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Послать сообщение панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112413#p112413" />
			<content type="html"><![CDATA[<p>Безотносительно основной темы, почему код по F2 приводит к потере фокуса, а код по F3 нет?</p><div class="codebox"><pre><code>F2::
ControlGetFocus, fc, % hwnd:=WinExist(&quot;A&quot;)
ControlGet id, Hwnd,, % fc, ahk_id %hwnd%
ControlFocus,, ahk_id %id%
Return
F3::
ControlGetFocus, fc, % hwnd:=WinExist(&quot;A&quot;)
ControlGet id, Hwnd,, % fc, ahk_id %hwnd%
ControlFocus, fc, ahk_id %hwnd%
Return</code></pre></div><p>Самое забавное, если после потери фокуса вызвать ControlGetFocus, то он скажет, что в фокусе остался тот же контрол.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2017-02-13T23:08:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112413#p112413</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Послать сообщение панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112412#p112412" />
			<content type="html"><![CDATA[<p>Универсальный способ для всех окон, но с побочным эффектом - окна теряют фокус, а панель задач показывает тултип с текущим временем.<br /></p><div class="codebox"><pre><code>f2::
ControlGetFocus, fc, % hwnd:=WinExist(&quot;A&quot;)
ControlGet id, Hwnd,, % fc, ahk_id %hwnd%
ControlFocus,, ahk_id %id%
PostMessage, 0x50, 0x2, 0, , ahk_id %id%
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2017-02-13T22:45:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112412#p112412</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Послать сообщение панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112408#p112408" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>stealzy пишет:</cite><blockquote><p>У меня работает только когда ПЗ неактивна или открыто меню Пуск (что по сути одно и тоже).</p></blockquote></div><p>Так у вас же код неполный.<br /></p><div class="codebox"><pre><code>DetectHiddenWindows On
PostMessage, 0x50, 2, 0, SysListView321, ahk_id 0x400e8</code></pre></div><p>А нужно:<br /></p><div class="codebox"><pre><code>DetectHiddenWindows On
ControlFocus, Desktop OpenBox Host1, ahk_class DV2ControlHost
PostMessage, 0x50, 2, 0, Desktop OpenBox Host1, ahk_class DV2ControlHost</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-02-13T21:53:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112408#p112408</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Послать сообщение панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112404#p112404" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>stealzy пишет:</cite><blockquote><p>Win7sp1 x64, ahk Ux64.</p></blockquote></div><p>У меня то же самое.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2017-02-13T21:21:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112404#p112404</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Послать сообщение панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112402#p112402" />
			<content type="html"><![CDATA[<p>У меня работает только когда ПЗ неактивна или открыто меню Пуск (что по сути одно и тоже).</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2017-02-13T21:17:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112402#p112402</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Послать сообщение панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112401#p112401" />
			<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>2017-02-13T21:10:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112401#p112401</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Послать сообщение панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112399#p112399" />
			<content type="html"><![CDATA[<p>Да, именно так я и пытался с DV2ControlHost.<br />Только захардкодил id, в вашем примере переменная DirectUIHWND1 пустая остается (поиск windows отключен - фокуса нет):</p><div class="codebox"><pre><code>
DetectHiddenWindows On
PostMessage, 0x50, 2, 0, SysListView321, ahk_id 0x400e8</code></pre></div>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2017-02-13T21:08:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112399#p112399</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Послать сообщение панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112397#p112397" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>WM_INPUTLANGCHANGEREQUEST := 0x50, INPUTLANGCHANGE_FORWARD := 0x2

F11::
   DetectHiddenWindows, On
   ControlFocus, DirectUIHWND1, ahk_class DV2ControlHost
   PostMessage, WM_INPUTLANGCHANGEREQUEST, INPUTLANGCHANGE_FORWARD,, DirectUIHWND1, ahk_class DV2ControlHost
   Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2017-02-13T21:03:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112397#p112397</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Послать сообщение панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112396#p112396" />
			<content type="html"><![CDATA[<p>И опять: сообщение свернутому меню пуск из Inq&#039;a работает, из ahk - нет.<br />UPD: А, понятно, все из-за фокуса на панели.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2017-02-13T21:00:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112396#p112396</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Послать сообщение панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112392#p112392" />
			<content type="html"><![CDATA[<p>Да, с пуском работает и мой код, если меню пуск открыто.<br />Я пробовал окну Пуска посылать в неоткрытом состоянии.<br />Если бы удалось, тогда и панель задач по логике изменила бы раскладку.<br /><strong>Malcev</strong>, поэтому и назвал тему &quot;SendMessage to TaskBar&quot;, но тов. модератор изменил название темы на свой вкус.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2017-02-13T20:36:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112392#p112392</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Послать сообщение панели задач]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112391#p112391" />
			<content type="html"><![CDATA[<p>С Пуском у меня работает <a href="http://forum.script-coding.com/viewtopic.php?pid=112349#p112349">так</a>.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2017-02-13T20:35:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112391#p112391</id>
		</entry>
</feed>
