<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Сохранение экрана через DwmpDxGetWindowSharedSurface]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=15061&amp;type=atom" />
	<updated>2025-01-16T10:34:15Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=15061</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение экрана через DwmpDxGetWindowSharedSurface]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=161902#p161902" />
			<content type="html"><![CDATA[<p>Ага, вышло, спасибо!</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2025-01-16T10:34:15Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=161902#p161902</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение экрана через DwmpDxGetWindowSharedSurface]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=161901#p161901" />
			<content type="html"><![CDATA[<p>Вот тут пример с использованием gdiplus:<br /><a href="http://forum.script-coding.com/viewtopic.php?pid=142210#p142210">http://forum.script-coding.com/viewtopi … 10#p142210</a><br />Вместо: <br /></p><div class="codebox"><pre><code>pBitmap := Gdip_CreateBitmap(width, height, PixelFormat32bppPARGB := 0xE200B, pitch, pBuf)</code></pre></div><p>попробуй:<br /></p><div class="codebox"><pre><code>pBitmap := Gdip_CreateBitmap(width, height, PixelFormat32bppRGB := 0x22009, pitch, pBuf)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2025-01-16T09:31:16Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=161901#p161901</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение экрана через DwmpDxGetWindowSharedSurface]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=161900#p161900" />
			<content type="html"><![CDATA[<p>А ты не разбирался, откуда там взялось GUID_WICPixelFormat24bppBGR ? Нельзя как-то проще сконвертировать через gdiplus? Я пробовал</p><div class="codebox"><pre><code>    pBuf := NumGet(D3D11_MAPPED_SUBRESOURCE, 0, &quot;ptr&quot;)
    pitch := NumGet(D3D11_MAPPED_SUBRESOURCE, A_PtrSize, &quot;uint&quot;)
    pBitmap := Gdip_CreateBitmap(width, height, PixelFormat32bppPARGB := 0xE200B, pitch, pBuf)</code></pre></div><p>но получается не полное изображение. Пробовал сконвертировать<br /></p><div class="codebox"><pre><code>Gdip_BitmapConvertFormat(pBitmap, PixelFormat32bppARGB := 0x26200A, 2, 1, 0, 0, 0, 0, 0)</code></pre></div><p>тот же результат.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2025-01-15T20:35:04Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=161900#p161900</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение экрана через DwmpDxGetWindowSharedSurface]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149673#p149673" />
			<content type="html"><![CDATA[<p>Вот тут об этом подробнее:<br /><a href="https://docs.microsoft.com/en-us/archive/msdn-magazine/2014/june/windows-with-c-high-performance-window-layering-using-the-windows-composition-engine">https://docs.microsoft.com/en-us/archiv … ion-engine</a><br />Интересно.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2021-09-23T22:59:54Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149673#p149673</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение экрана через DwmpDxGetWindowSharedSurface]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149672#p149672" />
			<content type="html"><![CDATA[<p>Попробую.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-09-23T22:27:04Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149672#p149672</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение экрана через DwmpDxGetWindowSharedSurface]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149671#p149671" />
			<content type="html"><![CDATA[<p>Знаешь как еще можешь протестировать, получай текстуру через<br /></p><div class="codebox"><pre><code>DwmGetDxSharedSurface(captureHwnd, phDxSurface, luidAdapter, FmtWindow, PresentFlags, Win32kUpdateId)</code></pre></div><p>И если получишь ошибку&nbsp; -1071243253, то это значит ERROR_GRAPHICS_PRESENT_REDIRECTION_DISABLED.<br />Такого можно добиться, например, установив на гуи WS_EX_NOREDIRECTIONBITMAP стиль.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2021-09-23T22:23:52Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149671#p149671</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение экрана через DwmpDxGetWindowSharedSurface]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149670#p149670" />
			<content type="html"><![CDATA[<p>Можно ради интереса, но практического смысла не будет, скрипт предполагается для массового использования. Я пока вышел из положения через try-catch, в случае ошибки использую обычный способ.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-09-23T21:41:42Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149670#p149670</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение экрана через DwmpDxGetWindowSharedSurface]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149669#p149669" />
			<content type="html"><![CDATA[<p>Я бы попробовал поиграться + еще могут драйвера видеокарты, наверное, тоже влиять.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2021-09-23T21:36:22Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149669#p149669</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение экрана через DwmpDxGetWindowSharedSurface]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149668#p149668" />
			<content type="html"><![CDATA[<p>Вряд ли в этом проблема, с большинством окон работает нормально.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-09-23T21:30:44Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149668#p149668</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение экрана через DwmpDxGetWindowSharedSurface]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149667#p149667" />
			<content type="html"><![CDATA[<p>Может это надо отключить?<br /><a href="https://www.tenforums.com/windows-10-news/159696-hardware-accelerated-gpu-scheduling-windows-10-version-2004-a.html">https://www.tenforums.com/windows-10-ne … 004-a.html</a></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2021-09-23T21:22:33Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149667#p149667</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение экрана через DwmpDxGetWindowSharedSurface]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149665#p149665" />
			<content type="html"><![CDATA[<p>Нет, у меня 20H2 19042.1237.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-09-23T21:09:09Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149665#p149665</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение экрана через DwmpDxGetWindowSharedSurface]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149664#p149664" />
			<content type="html"><![CDATA[<p>А у тебя тоже такая же версия виндовса?</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2021-09-23T21:06:53Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149664#p149664</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение экрана через DwmpDxGetWindowSharedSurface]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149662#p149662" />
			<content type="html"><![CDATA[<p>Pro 2004 19041.1237<br />У меня тоже такого не наблюдается. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-09-23T21:03:39Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149662#p149662</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение экрана через DwmpDxGetWindowSharedSurface]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149660#p149660" />
			<content type="html"><![CDATA[<p>А что за система на компьютере?<br />У меня такого не наблюдается.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2021-09-23T20:59:19Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149660#p149660</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение экрана через DwmpDxGetWindowSharedSurface]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149654#p149654" />
			<content type="html"><![CDATA[<p>Я использовал для определения пикселя. Когда ноль — пустое значение возвращает. Подробно не тестировал, так как не мой компьютер.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-09-23T13:28:28Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149654#p149654</id>
		</entry>
</feed>
