<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Прозрачность отдельного элемента]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=10066</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=10066&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Прозрачность отдельного элемента».]]></description>
		<lastBuildDate>Thu, 23 Oct 2014 09:05:28 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Прозрачность отдельного элемента]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=87687#p87687</link>
			<description><![CDATA[<p>*шмырг* Читаю такие темы, и прям ностальгия наваливается *шмырг-шмырг*</p>]]></description>
			<author><![CDATA[null@example.com (Mikki)]]></author>
			<pubDate>Thu, 23 Oct 2014 09:05:28 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=87687#p87687</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прозрачность отдельного элемента]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=87683#p87683</link>
			<description><![CDATA[<p>Спасибо <strong>teadrinke</strong>r, скрипт в посте 29 идеален для меня <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" />.</p>]]></description>
			<author><![CDATA[null@example.com (sergeiplugatyr)]]></author>
			<pubDate>Thu, 23 Oct 2014 00:40:23 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=87683#p87683</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прозрачность отдельного элемента]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=87677#p87677</link>
			<description><![CDATA[<p>Скорее всего, по-другому и не получится. Окно с ActiveX хотя бы на мгновение должно получить клавиатурный фокус (а значит и активность), т. к. в ином случае невозможно будет взаимодействовать с его элементами управления (если таковые есть). </p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header"><strong>+</strong>&nbsp;Вариант без получения активности</div><div class="fancy_spoiler"><div class="codebox"><pre><code>SetWinDelay, 0
global hMainGui, hChildGui, hWorkGui

Gui, Main: +hwndhMainGui +LastFound
Gui, Child: +hwndhChildGui -Caption +ParentMain
Gui, Child: Color, 123456
WinSet, TransColor, 123456
Gui, Main: Add, Button, x227 y167 w65 h23 gPlay, Play
Gui, Main: Show, w300 h200
Gui, Child: Show, x10 y10 w280 h150

Gui, Work: +hwndhWorkGui -Caption +ToolWindow +LastFound
Gui, Work: Add, ActiveX, x0 y0 w280 h150 vWMP, WMPlayer.OCX.7
WMP.url := A_WinDir &quot;\Media\tada.wav&quot;
WMP.controls.stop

WinSet, Transparent, 180
WinGetPos, X, Y,,, ahk_id %hChildGui%
Gui, Work: Show, x%X% y%Y% w280 h150 NA

OnMessage(0x6, &quot;WM_ACTIVATE&quot;)
OnMessage(0x3, &quot;WM_MOVE&quot;)
OnExit, Exit
Return

Play:
   WMP.controls.play
   Return

Exit:
   DllCall(&quot;DeregisterShellHookWindow&quot;, &quot;UInt&quot;, A_ScriptHwnd)
   ExitApp

MainGuiClose:
   Gui, Main: Cancel
   ExitApp
   
WM_MOVE(wp, lp, msg, hwnd)
{
   if (hwnd != hMainGui)
      Return
   
   WinGetPos, X, Y,,, ahk_id %hChildGui%
   Gui, Work: Show, x%X% y%Y% NA
}

WM_ACTIVATE(wp, lp, msg, hwnd)
{
   if (hwnd != hWorkGui)
      Return
   
   if (wp &amp; 0xFFFF != 0)
      WinActivate, ahk_id %hMainGui%
}</code></pre></div></div></div><p>В нём не получается взаимодействовать с кнопками плеера.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Wed, 22 Oct 2014 19:19:51 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=87677#p87677</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прозрачность отдельного элемента]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=87675#p87675</link>
			<description><![CDATA[<div class="quotebox"><cite>ypppu пишет:</cite><blockquote><p>Очередной экспонат для Коллекции!</p></blockquote></div><p>Доработать для Коллекции надо, чтобы не мелькало. Может, кто предложит чего.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Wed, 22 Oct 2014 18:32:09 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=87675#p87675</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прозрачность отдельного элемента]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=87674#p87674</link>
			<description><![CDATA[<p><strong>sergeiplugatyr</strong>, беги за поллитрой! <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Wed, 22 Oct 2014 18:15:34 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=87674#p87674</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прозрачность отдельного элемента]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=87673#p87673</link>
			<description><![CDATA[<p>Получилось, но не айс. С подпорками, и всё же окно с ActiveX иногда на мгновение становится активным, возникает мелькание.<br /></p><div class="codebox"><pre><code>SetWinDelay, 0
global hMainGui, hChildGui, hWorkGui

Gui, Main: +hwndhMainGui +LastFound
Gui, Child: +hwndhChildGui -Caption +ParentMain
Gui, Child: Color, 123456
WinSet, TransColor, 123456
Gui, Main: Add, Button, x227 y167 w65 h23 gPlay, Play
Gui, Main: Show, w300 h200
Gui, Child: Show, x10 y10 w280 h150

Gui, Work: +hwndhWorkGui -Caption +ToolWindow +LastFound +OwnerMain
Gui, Work: Add, ActiveX, x0 y0 w280 h150 vWMP, WMPlayer.OCX.7
WMP.url := A_WinDir &quot;\Media\tada.wav&quot;
WMP.controls.stop

WinSet, ExStyle, +0x8000000   ; WS_EX_NOACTIVATE
WinSet, Transparent, 150
WinGetPos, X, Y,,, ahk_id %hChildGui%
Gui, Work: Show, x%X% y%Y% w280 h150 NA

DllCall(&quot;RegisterShellHookWindow&quot;, &quot;UInt&quot;, A_ScriptHwnd) 
OnMessage(DllCall(&quot;RegisterWindowMessage&quot;, &quot;str&quot;, &quot;SHELLHOOK&quot;), &quot;ShellProc&quot;)
OnMessage(0x3, &quot;WM_MOVE&quot;)
OnExit, Exit
Return

Play:
   WMP.controls.play
   Return

Exit:
   DllCall(&quot;DeregisterShellHookWindow&quot;, &quot;UInt&quot;, A_ScriptHwnd)
   ExitApp

MainGuiClose:
   Gui, Main: Cancel
   ExitApp
   
WM_MOVE(wp, lp, msg, hwnd)
{
   if (hwnd != hMainGui)
      Return
   
   WinGetPos, X, Y,,, ahk_id %hChildGui%
   Gui, Work: Show, x%X% y%Y% NA
}

ShellProc(nCode, wParam)
{ 
   if (nCode = 4 &amp;&amp; WinActive(&quot;ahk_id&quot; hWorkGui))   ; HSHELL_WINDOWACTIVATED := 4
      WinActivate, ahk_id %hMainGui%
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Wed, 22 Oct 2014 17:33:36 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=87673#p87673</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прозрачность отдельного элемента]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=87672#p87672</link>
			<description><![CDATA[<p>Тут уже написано:<br /><a href="http://www.autohotkey.com/board/topic/100835-semi-transparent-pictureoverlay-in-gui/">http://www.autohotkey.com/board/topic/1 … ay-in-gui/</a></p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Wed, 22 Oct 2014 14:26:09 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=87672#p87672</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прозрачность отдельного элемента]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=87671#p87671</link>
			<description><![CDATA[<p>Напишу попозже.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Wed, 22 Oct 2014 13:58:42 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=87671#p87671</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прозрачность отдельного элемента]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=87670#p87670</link>
			<description><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Если совсем извратится, то через WinSet Region вырезать кусок окна, поместить туда другое прозрачное окно, применить к нему WS_EX_NOACTIVATE, ну и следить за перемещением основного окна.</p></blockquote></div><p>Так можно. Тоже думал об этом, но не знал, что есть такой стиль.</p></blockquote></div><p>Пробовал. Не придумал, как организовать быстро перемещение. Всё рывками, на нервы действует.</p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Wed, 22 Oct 2014 13:57:15 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=87670#p87670</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прозрачность отдельного элемента]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=87669#p87669</link>
			<description><![CDATA[<p>Да, не подходит мой вариант.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Wed, 22 Oct 2014 11:34:02 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=87669#p87669</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прозрачность отдельного элемента]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=87668#p87668</link>
			<description><![CDATA[<p>И что в таком одноцветном контроле будет отображаться (учитывая, что это ActiveX) ?</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Wed, 22 Oct 2014 11:22:01 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=87668#p87668</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прозрачность отдельного элемента]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=87667#p87667</link>
			<description><![CDATA[<p>Сделать контрол определенного цвета и применить к нему WinSet, Transcolor с нужной прозрачностью.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Wed, 22 Oct 2014 11:20:02 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=87667#p87667</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прозрачность отдельного элемента]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=87666#p87666</link>
			<description><![CDATA[<p>Ну, а дальше что?</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Wed, 22 Oct 2014 11:04:23 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=87666#p87666</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прозрачность отдельного элемента]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=87665#p87665</link>
			<description><![CDATA[<p>Все-таки не понял, почему так нельзя?<br /></p><div class="codebox"><pre><code>#Persistent
#SingleInstance, Force
Gui, Add, Progress, x0 y0 w300 h20 100
Gui, Color, 000111
Gui, Show, W400 H300, Test
WinSet, Transcolor, 000111, Test
Return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Wed, 22 Oct 2014 11:02:50 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=87665#p87665</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Прозрачность отдельного элемента]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=87663#p87663</link>
			<description><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Если совсем извратится, то через WinSet Region вырезать кусок окна, поместить туда другое прозрачное окно, применить к нему WS_EX_NOACTIVATE, ну и следить за перемещением основного окна.</p></blockquote></div><p>Так можно. Тоже думал об этом, но не знал, что есть такой стиль.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Wed, 22 Oct 2014 10:58:28 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=87663#p87663</guid>
		</item>
	</channel>
</rss>
