<?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=14538&amp;type=atom" />
	<updated>2019-01-31T18:07:25Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14538</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прозрачность для элемента в окне (скрипта).]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131838#p131838" />
			<content type="html"><![CDATA[<p>Вот такой пример был.<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>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2019-01-31T18:07:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131838#p131838</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прозрачность для элемента в окне (скрипта).]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131837#p131837" />
			<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>2019-01-31T18:07:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131837#p131837</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прозрачность для элемента в окне (скрипта).]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131831#p131831" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong><br />Ничего не нашел.</p>]]></content>
			<author>
				<name><![CDATA[morgan]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39372</uri>
			</author>
			<updated>2019-01-31T16:46:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131831#p131831</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прозрачность для элемента в окне (скрипта).]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131829#p131829" />
			<content type="html"><![CDATA[<p>Как-то можно, только нужно по форуму поискать. Попробуйте по словам &quot;привязка окна&quot;.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2019-01-31T16:25:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131829#p131829</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прозрачность для элемента в окне (скрипта).]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131828#p131828" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong><br />Я тоже так сначала решил сделать, но думал, что можно другим способом. Но есть проблема. Окно то может пользователь передвинуть. А текст на месте будет. Или серьезно можно сделать окно поверх окна (чтобы сохранял размер, координаты (куда передвинул))?</p>]]></content>
			<author>
				<name><![CDATA[morgan]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39372</uri>
			</author>
			<updated>2019-01-31T16:10:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131828#p131828</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прозрачность для элемента в окне (скрипта).]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131827#p131827" />
			<content type="html"><![CDATA[<p>Если только это, можно сделать отдельное окно с текстом и прикрепить его поверх основного окна.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2019-01-31T16:06:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131827#p131827</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прозрачность для элемента в окне (скрипта).]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131826#p131826" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong>, Я хочу сделать плавное появление текста (анимацию).</p>]]></content>
			<author>
				<name><![CDATA[morgan]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39372</uri>
			</author>
			<updated>2019-01-31T15:42:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131826#p131826</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прозрачность для элемента в окне (скрипта).]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131825#p131825" />
			<content type="html"><![CDATA[<p>А какой интерес делать Checkbox, Edit, Text и т. д. прозрачными? Чтобы показать, что элемент неактивен, есть опция &quot;disable&quot;. Чтобы скрывать / показывать группы элементов управления, существуют вкладки &quot;tab&quot;.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2019-01-31T15:22:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131825#p131825</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Прозрачность для элемента в окне (скрипта).]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131823#p131823" />
			<content type="html"><![CDATA[<p>Прозрачные элементы GUI не могут быть реализованы нативно. Их нужно либо рисовать при помощи GDI+, либо в контроле ActiveX.</p>]]></content>
			<author>
				<name><![CDATA[KusochekDobra]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33846</uri>
			</author>
			<updated>2019-01-31T15:17:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131823#p131823</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Прозрачность для элемента в окне (скрипта).]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131820#p131820" />
			<content type="html"><![CDATA[<p>Добрый вечер. Давно хотел разобраться с этим. В общем, мне необходимо, чтобы я мог менять прозрачность элемента на определенный процент или число.<br />Например,<br /></p><div class="codebox"><pre><code>WinSet, Transparent, 200, Untitled - Notepad</code></pre></div><p>тоже самое, только не с окном, а с его элементом.</p><p>-- Оффтоп --<br /><em>Также, я приношу свои извинения всему форуму, что я о нем &quot;разочаровываюсь&quot;. Беру свои слова обратно, так как мне тут неоднократно помогали. Кто просматривает эту тему, напишите &quot;извиняю&quot; или &quot;прощаю&quot;, чтобы на душе было легче. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></em></p>]]></content>
			<author>
				<name><![CDATA[morgan]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39372</uri>
			</author>
			<updated>2019-01-31T14:48:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131820#p131820</id>
		</entry>
</feed>
