<?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=11937&amp;type=atom" />
	<updated>2016-08-23T19:14:49Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11937</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Появление GUI вокруг точки нажатия]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=107007#p107007" />
			<content type="html"><![CDATA[<p>Есть еще такое решение.<br /><a href="https://autohotkey.com/boards/viewtopic.php?f=6&amp;t=12078">https://autohotkey.com/boards/viewtopic … mp;t=12078</a></p>]]></content>
			<author>
				<name><![CDATA[red2881]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30934</uri>
			</author>
			<updated>2016-08-23T19:14:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=107007#p107007</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Появление GUI вокруг точки нажатия]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=107003#p107003" />
			<content type="html"><![CDATA[<p>Всем спасибо, дальше сам. Низкий поклон за вашу помощь.<br />Поторопился, как быть с приложениями?</p><p>Хм, сейчас работает.</p>]]></content>
			<author>
				<name><![CDATA[Larec]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34139</uri>
			</author>
			<updated>2016-08-23T17:22:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=107003#p107003</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Появление GUI вокруг точки нажатия]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=107002#p107002" />
			<content type="html"><![CDATA[<p>Можно бы каждую кнопку поместить в отдельный GUI.<br />8 кнопок по кругу:<br /></p><div class="codebox"><pre><code>CoordMode Mouse, Screen
PI := acos(0) * 2
N = 8
R := 100

MouseGetPos x0, y0
x0 -= 20, y0 -=15
Loop %N% {
	Gui %A_Index%:-Caption +ToolWindow
	Gui %A_Index%:Margin, 0, 0
	Gui %A_Index%:Add, Button, w40 h30, %A_Index%
	a := (2 * PI / N) * A_Index
	Gui %A_Index%:Show, % &quot;X&quot; (x0 + R * sin(a)) &quot; Y&quot; (y0 + R * cos(a))
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[wisgest]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=3850</uri>
			</author>
			<updated>2016-08-23T17:03:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=107002#p107002</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Появление GUI вокруг точки нажатия]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=107001#p107001" />
			<content type="html"><![CDATA[<p>Примерно так и писал, но без Return во второй и не работало...<br />Есть ли возможность сделать прозрачной область всего всплывающего окна, кроме кнопок и с возможностью интерактива через невидимую область? И не работает во многих приложениях, но я где то видел решение.</p><p>Взял по соседству<br /></p><div class="codebox"><pre><code>
WinGet, WinHND, ID, A
Gui, +0x40000000 -0x80000000  +Owner%WinHND% -Caption +AlwaysOnTop +Lastfound
Gui, Color, Black
WinSet, TransColor, Black</code></pre></div><p>Прозрачность есть. Вылетает ошибка при повторном нажатии. И не работает в приложениях.</p>]]></content>
			<author>
				<name><![CDATA[Larec]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34139</uri>
			</author>
			<updated>2016-08-23T16:51:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=107001#p107001</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Появление GUI вокруг точки нажатия]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=107000#p107000" />
			<content type="html"><![CDATA[<p>Для примера.<br /></p><div class="codebox"><pre><code>CoordMode, Mouse, Screen
Return

MButton::
MouseGetPos, OutputVarX, OutputVarY
GUIx := OutputVarX - 150
GUIy := OutputVarY - 150
GUI, Add, Button, w100 h100 x100 y000, Верх
GUI, Add, Button, w100 h100 x000 y100, Лево
GUI, Add, Button, w100 h100 x200 y100, Право
GUI, Add, Button, w100 h100 x100 y200, Низ
GUI, Show, x%GUIx% y%GUIy% w300 h300
Return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2016-08-23T16:09:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=107000#p107000</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Появление GUI вокруг точки нажатия]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=106999#p106999" />
			<content type="html"><![CDATA[<p>Можете подсказать как сделать так что бы при нажатии средней кнопки мыши открывался ГУЙ с 4-мя кнопками, вокруг центра нажатия. Слева, снизу, справа, слева примерно как в Мае хотбоксы, может кто знаком.</p><p>Примерно понимаю как реализовать, но не понимаю как появляется Гуй, всегда в центре?</p>]]></content>
			<author>
				<name><![CDATA[Larec]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34139</uri>
			</author>
			<updated>2016-08-23T15:30:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=106999#p106999</id>
		</entry>
</feed>
