<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Спрятать окно с помощью WinApi]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=17452&amp;type=atom" />
	<updated>2022-11-04T16:03:34Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=17452</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Спрятать окно с помощью WinApi]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=155541#p155541" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong><br />Мне помог способ сделать окно полностью прозрачным и отключив его в TaskBar.</p>]]></content>
			<author>
				<name><![CDATA[Clannad5]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39853</uri>
			</author>
			<updated>2022-11-04T16:03:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=155541#p155541</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Спрятать окно с помощью WinApi]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=155538#p155538" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Clannad5 пишет:</cite><blockquote><p>если это как-то отражается на самом окне игры</p></blockquote></div><p>По играм есть отдельная ветка.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2022-11-04T13:45:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=155538#p155538</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Спрятать окно с помощью WinApi]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=155537#p155537" />
			<content type="html"><![CDATA[<p>Вас же в гугле не забанили?<br />Гуглите: setwindowlongptr, inject ahk, setcloak virtual desktop.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2022-11-04T13:44:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=155537#p155537</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Спрятать окно с помощью WinApi]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=155536#p155536" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong><br />Для меня эти ответы, как капля в море.<br />Еще бы понимать, что вы пишите, у меня в этом опыта 0 практически.<br />К тому же не думаю что приложение разрешит мне запустить виртуальную среду, если это как-то отражается на самом окне игры, т.к действуют костыльные методы защиты от виртуалок и тд.</p>]]></content>
			<author>
				<name><![CDATA[Clannad5]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39853</uri>
			</author>
			<updated>2022-11-04T13:40:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=155536#p155536</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Спрятать окно с помощью WinApi]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=155535#p155535" />
			<content type="html"><![CDATA[<p>Или еще проще - сделать владельцем чужого окна своё окно.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2022-11-04T13:37:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=155535#p155535</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Спрятать окно с помощью WinApi]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=155534#p155534" />
			<content type="html"><![CDATA[<p>Инжектесь в процесс или пытайтесь ставить cloak с недокумментированного virtual desktop api.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2022-11-04T13:23:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=155534#p155534</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Спрятать окно с помощью WinApi]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=155533#p155533" />
			<content type="html"><![CDATA[<p>Здравствуйте!<br />На зарубежном форуме мне посоветовали способ спрятать окно через WinApi Dll:</p><div class="codebox"><pre><code>
Gui, Show, w500 h500
F10::
{
WinGet, hwnd, ID, A
SetWindowCloaked(hwnd) 

SetWindowCloaked(hwnd, cloak=1) {
  ; DWMWA_CLOAK = 13
 DllCall(&quot;Dwmapi\DwmSetWindowAttribute&quot;, &quot;Ptr&quot;, hwnd, &quot;UInt&quot;, 13, &quot;Int*&quot;, cloak, &quot;UInt&quot;, 4) ; Прячем окно.
Sleep 1000
  DllCall(&quot;Dwmapi\DwmSetWindowAttribute&quot;, &quot;Ptr&quot;, hwnd, &quot;UInt&quot;, 13, &quot;Int*&quot;, 0, &quot;UInt&quot;, 4) ; Отображаем окно.
}
return
}
</code></pre></div><p>Зачем я добавил строчку &quot;Gui, Show, w500 h500&quot;: Чтобы продемонстрировать проблему.</p><p>Проблема заключается в том, что родное окно от скрипта выполняет вызов DllCall успешно и прячет окно, затем вновь отображает.<br />Если использовать этот же скрипт в любых других окнах, он почему-то не работает.</p><p>Можно ли это как-то исправить или это невозможно?</p>]]></content>
			<author>
				<name><![CDATA[Clannad5]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39853</uri>
			</author>
			<updated>2022-11-04T11:34:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=155533#p155533</id>
		</entry>
</feed>
