<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: GUI с прозрачным фоном]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=18053&amp;type=atom" />
	<updated>2024-01-09T10:45:31Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=18053</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI с прозрачным фоном]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159864#p159864" />
			<content type="html"><![CDATA[<p>Кстати да, че то не припомню чтобы я UpDown к Text привязывал.)<br />Я там добавил, чтобы окно не активировалось.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2024-01-09T10:45:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159864#p159864</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI с прозрачным фоном]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159849#p159849" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong>, красотища какая! Благодарю за помощь.</p>]]></content>
			<author>
				<name><![CDATA[p.polena]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33346</uri>
			</author>
			<updated>2024-01-08T20:51:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159849#p159849</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI с прозрачным фоном]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159848#p159848" />
			<content type="html"><![CDATA[<p>Может кому пригодится. В некоторых случаях чтобы колесико заработало, надо добавить SS_NOTIFY сопряженному контролу.<br /></p><div class="codebox"><pre><code>SS_NOTIFY := 0x100
Gui, +AlwaysOnTop
Gui, +ToolWindow
Gui, -Caption
Gui, Font, s32, Verdana
Gui, Add, Text, Limit2 x0 y0 w120 Center %SS_NOTIFY%
Gui, Add, UpDown, Range0-99 
Gui, Show, w100  
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2024-01-08T20:11:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159848#p159848</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI с прозрачным фоном]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159847#p159847" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
#SingleInstance Force
#NoEnv 

SS_NOTIFY := 0x100

OnMessage(WM_MOUSEWHEEL := 0x020A, &quot;Wheel&quot;)

Gui, 2: -Caption +AlwaysOnTop +ToolWindow +LastFound +E0x08000000
Gui, 2: Color, 2A211C
Gui, 2: Add, Text, x0 y0 w220 h222
Gui, 2: Show, x576 y235 w220 h66, 122
WinSet, Transparent, 1

Gui, +AlwaysOnTop +ToolWindow -Caption +LastFound +Owner2 +E0x08000000
Gui, Color, 12345
WinSet, TransColor, 12345
Gui, Font, s32, MS sans serif
Gui, Add, Text, cffffff Limit2 Center x0 y0 w220 0x0100 vFirstName
Gui, Add, UpDown, Range0-99 vUpDown
Gui, Show, NA x576 y235 w200 h66
Return

Wheel(WP, LP, Msg, H) { 
	Static SB_LINEMINUS := 0, SB_LINEPLUS := 1    
	SB := ((WP &gt;&gt; 16) &gt; 0x7FFF) || (WP &lt; 0) ? SB_LINEPLUS : SB_LINEMINUS 
	GuiControlGet, UpDown, 1: 
	GuiControl, 1:, UpDown, % UpDown + (SB ? -1 : 1)
}

1:: 
	Gui, 2: Show, % (i := !i) ? &quot;NA Hide&quot; : &quot;NA &quot;
	Gui, Show, % (i) ? &quot;NA Hide&quot; : &quot;NA &quot;
	Return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2024-01-08T20:09:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159847#p159847</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI с прозрачным фоном]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159846#p159846" />
			<content type="html"><![CDATA[<p>Семерки нет. На 10 и 11 у меня не крутит.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2024-01-08T19:42:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159846#p159846</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI с прозрачным фоном]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159845#p159845" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong>, исправлено.</p>]]></content>
			<author>
				<name><![CDATA[p.polena]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33346</uri>
			</author>
			<updated>2024-01-08T19:40:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159845#p159845</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI с прозрачным фоном]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159844#p159844" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>p.polena пишет:</cite><blockquote><p>https://youtu.be/ywjwS79u9ec</p></blockquote></div><p>Надо ссылкой оформлять.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2024-01-08T19:34:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159844#p159844</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI с прозрачным фоном]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159843#p159843" />
			<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>2024-01-08T19:34:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159843#p159843</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI с прозрачным фоном]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159842#p159842" />
			<content type="html"><![CDATA[<p>Странно, что у меня работает.<br /><a href="https://youtu.be/ywjwS79u9ec">https://youtu.be/ywjwS79u9ec</a><br />P.S. Я без претензий. Разобраться хочу. Посему и обращаюсь за помощью.<br />На ПК Win7, видео Radeon. На ноутеWin7, видео NV.</p>]]></content>
			<author>
				<name><![CDATA[p.polena]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33346</uri>
			</author>
			<updated>2024-01-08T19:27:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159842#p159842</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI с прозрачным фоном]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159841#p159841" />
			<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>2024-01-08T19:18:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159841#p159841</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI с прозрачным фоном]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159840#p159840" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong>, ну как не работает? Видео предоставить?</p>]]></content>
			<author>
				<name><![CDATA[p.polena]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33346</uri>
			</author>
			<updated>2024-01-08T19:17:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159840#p159840</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI с прозрачным фоном]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159839#p159839" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>p.polena пишет:</cite><blockquote><p><strong>serzh82saratov</strong>, спасибо. Но вашем коде тоже не работает &quot;UpDown, Range0-99&quot; при прокрутки в области GUI. Только при точном наведении на цифру. Без &quot;прозрачности&quot; работает...<br /></p><div class="codebox"><pre><code>
Gui, +AlwaysOnTop
Gui, +ToolWindow
Gui, -Caption
Gui, Font, s12, Verdana
Gui, Add, Text, Limit2 x0 y0, vFirstName
Gui, Add, UpDown, Range0-99,
Gui, Show, x976 y35,
Gui, Show, w20 h18
</code></pre></div></blockquote></div><p>Она тут не работает.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2024-01-08T18:52:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159839#p159839</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI с прозрачным фоном]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159838#p159838" />
			<content type="html"><![CDATA[<p>В этом и задача. Чтобы прокрутка колесом в области GUI работала и с прозрачным фоном.</p>]]></content>
			<author>
				<name><![CDATA[p.polena]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33346</uri>
			</author>
			<updated>2024-01-08T18:46:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159838#p159838</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI с прозрачным фоном]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159837#p159837" />
			<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>2024-01-08T18:24:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159837#p159837</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI с прозрачным фоном]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159836#p159836" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong>, спасибо. Но вашем коде тоже не работает &quot;UpDown, Range0-99&quot; при прокрутки в области GUI. Только при точном наведении на цифру. Без &quot;прозрачности&quot; работает...<br /></p><div class="codebox"><pre><code>
Gui, +AlwaysOnTop
Gui, +ToolWindow
Gui, -Caption
Gui, Font, s12, Verdana
Gui, Add, Text, Limit2 x0 y0, vFirstName
Gui, Add, UpDown, Range0-99,
Gui, Show, x976 y35,
Gui, Show, w20 h18
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[p.polena]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33346</uri>
			</author>
			<updated>2024-01-08T17:08:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159836#p159836</id>
		</entry>
</feed>
