<?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=15694&amp;type=atom" />
	<updated>2020-10-01T22:06:19Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15694</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Встраивание вырезанной области - в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142413#p142413" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong></p><p>Очень интересный вариант создать свою &#039;песочницу&#039;. Можно добавить свои кнопки к Gui и будет свой настраиваемый блокнот.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2020-10-01T22:06:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142413#p142413</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Встраивание вырезанной области - в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142398#p142398" />
			<content type="html"><![CDATA[<p>serzh82saratov, теперь ясно.<br />Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[plank1433]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40962</uri>
			</author>
			<updated>2020-10-01T12:29:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142398#p142398</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Встраивание вырезанной области - в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142394#p142394" />
			<content type="html"><![CDATA[<p>А новые координаты за вас Пушкин должен дописать?</p><div class="codebox"><pre><code>WinExist(&quot;ahk_class TTOTAL_CMD&quot;) 
WinSet, Style, -0x00C00000			; WS_CAPTION
WinSet, Style, -0x00040000			; WS_SIZEBOX
WinSet, Region, 860-121 W340 H600
Gui, +HWNDhGui
Gui, Color, 123456
Gui, Show, w340 h600  
DllCall(&quot;SetParent&quot;, &quot;Ptr&quot;, WinExist(), &quot;Ptr&quot;, hGui)
WinMove -860, -121
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2020-10-01T11:48:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142394#p142394</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Встраивание вырезанной области - в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142392#p142392" />
			<content type="html"><![CDATA[<p>Спасибо.<br />Объясните пожалуйста, а как использовать этот код?<br />Я применяю этот скрипт к открытому на весь экран тотал-коммандеру:<br /></p><div class="codebox"><pre><code>WinExist(&quot;ahk_class TTOTAL_CMD&quot;) 
WinSet, Style, -0x00C00000			; WS_CAPTION
WinSet, Style, -0x00040000			; WS_SIZEBOX
WinSet, Style, +0x80000000			; WS_POPUP
WinSet, Region, 860-121 W340 H600
Gui, +HWNDhGui
Gui, Color, 123456
Gui, Show, w250 h200  
DllCall(&quot;SetParent&quot;, &quot;Ptr&quot;, WinExist(), &quot;Ptr&quot;, hGui)
WinMove -35, -28
Return
</code></pre></div><p>Не работает.</p><p>Применяю его для VLC:<br /></p><div class="codebox"><pre><code>WinExist(&quot;ahk_class Qt5QWindowIcon&quot;) 
WinSet, Style, -0x00C00000			; WS_CAPTION
WinSet, Style, -0x00040000			; WS_SIZEBOX
WinSet, Style, +0x80000000			; WS_POPUP
WinSet, Region, 860-121 W340 H600
Gui, +HWNDhGui
Gui, Color, 123456
Gui, Show, w250 h200  
DllCall(&quot;SetParent&quot;, &quot;Ptr&quot;, WinExist(), &quot;Ptr&quot;, hGui)
WinMove -35, -28
Return
</code></pre></div><p>Не работает.</p><p>Применяю его на 3DMeNow:<br /></p><div class="codebox"><pre><code>WinExist(&quot;ahk_class TMainForm&quot;) 
WinSet, Style, -0x00C00000			; WS_CAPTION
WinSet, Style, -0x00040000			; WS_SIZEBOX
WinSet, Style, +0x80000000			; WS_POPUP
WinSet, Region, 860-121 W340 H600
Gui, +HWNDhGui
Gui, Color, 123456
Gui, Show, w250 h200  
DllCall(&quot;SetParent&quot;, &quot;Ptr&quot;, WinExist(), &quot;Ptr&quot;, hGui)
WinMove -35, -28
Return
</code></pre></div><p>Тоже не работает.<br />То есть - создает такое небольшое окно с синим фоном внутри. <br />Ошибку не показывает - просто не отображает вырезанную область.</p><p>Как этот скрипт - применить не только для блокнота, но и для этих программ тоже ?</p>]]></content>
			<author>
				<name><![CDATA[plank1433]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40962</uri>
			</author>
			<updated>2020-10-01T08:20:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142392#p142392</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Встраивание вырезанной области - в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142376#p142376" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
WinExist(&quot;ahk_class Notepad&quot;) 
WinSet, Style, -0x00C00000			; WS_CAPTION
WinSet, Style, -0x00040000			; WS_SIZEBOX
WinSet, Region, 35-28 W250 H200
Gui, +HWNDhGui
Gui, Color, 123456
Gui, Show, w250 h200  
DllCall(&quot;SetParent&quot;, &quot;Ptr&quot;, WinExist(), &quot;Ptr&quot;, hGui)
WinMove -35, -28
Return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2020-09-30T23:53:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142376#p142376</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Встраивание вырезанной области - в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142368#p142368" />
			<content type="html"><![CDATA[<p>dmitry-semin, да я хочу чтобы эту вырезанную область можно было мышкой за title - перемещать.</p>]]></content>
			<author>
				<name><![CDATA[plank1433]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40962</uri>
			</author>
			<updated>2020-09-30T13:58:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142368#p142368</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Встраивание вырезанной области - в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142356#p142356" />
			<content type="html"><![CDATA[<p><strong>plank1433</strong><br />Цикл, который следит за сменой координат основного окна и пропорционально смещению основного окна смещает ваш интерфейс? Вы это хотите?</p>]]></content>
			<author>
				<name><![CDATA[dmitry-semin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39549</uri>
			</author>
			<updated>2020-09-30T02:34:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142356#p142356</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Встраивание вырезанной области - в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142355#p142355" />
			<content type="html"><![CDATA[<p>Так в GUI-то это окно как встроить ?</p><p>Это же два разных окна - окно GUI и&nbsp; вырезанное окно.</p>]]></content>
			<author>
				<name><![CDATA[plank1433]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40962</uri>
			</author>
			<updated>2020-09-30T01:27:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142355#p142355</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Встраивание вырезанной области - в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142354#p142354" />
			<content type="html"><![CDATA[<ol class="decimal"><li><p><em>WinGetPos</em></p></li><li><p>Сами считаете</p></li><li><p>Уже выше написал</p></li></ol>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2020-09-29T14:27:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142354#p142354</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Встраивание вырезанной области - в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142353#p142353" />
			<content type="html"><![CDATA[<p>А как реализовать в скрипте - эти три команды?</p><p>Приведите пример, если несложно.<br />А я потом его сам доработаю.</p>]]></content>
			<author>
				<name><![CDATA[plank1433]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40962</uri>
			</author>
			<updated>2020-09-29T04:16:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142353#p142353</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Встраивание вырезанной области - в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142347#p142347" />
			<content type="html"><![CDATA[<ol class="decimal"><li><p>Узнаёте координаты своего GUI;</p></li><li><p>Из них вычисляете, какие координаты должны быть у вырезанной области;</p></li><li><p>Изменяете координаты вырезанной области командой <em>WinMove</em>.</p></li></ol>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2020-09-28T14:03:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142347#p142347</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Встраивание вырезанной области - в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142341#p142341" />
			<content type="html"><![CDATA[<p>ypppu, а как это скриптом сделать.</p>]]></content>
			<author>
				<name><![CDATA[plank1433]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40962</uri>
			</author>
			<updated>2020-09-28T00:08:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142341#p142341</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Встраивание вырезанной области - в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142340#p142340" />
			<content type="html"><![CDATA[<p>Подскажите - как скриптом - встроить эту вырезанную область - в gui, чтобы можно было ее перетаскивать по рабочему столу ?</p>]]></content>
			<author>
				<name><![CDATA[plank1433]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40962</uri>
			</author>
			<updated>2020-09-28T00:00:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142340#p142340</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Встраивание вырезанной области - в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142335#p142335" />
			<content type="html"><![CDATA[<p><strong>plank1433</strong>, можно периодически проверять координаты окна GUI скрипта. А если они изменились, подтягивать туда же вырезанную область.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2020-09-27T18:37:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142335#p142335</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Встраивание вырезанной области - в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=142333#p142333" />
			<content type="html"><![CDATA[<p>Не знаю, как у вас, а у меня этот код на Windows 10 не делает ничего, а на Windows 7 вырезает регион, но оставляет заголовок и рамку окна видимыми.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-09-27T17:17:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=142333#p142333</id>
		</entry>
</feed>
