<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Скриншот фуллскрин окна (Без Printscreen)]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9878&amp;type=atom" />
	<updated>2014-08-11T18:14:01Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9878</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скриншот фуллскрин окна (Без Printscreen)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=85835#p85835" />
			<content type="html"><![CDATA[<p>DX9 приложение. Через PrintScreen его видно и на Win8 и Win8.1 через:<br /></p><div class="codebox"><pre><code>X:=0, Y:=0, W:=A_ScreenWidth, H:=A_ScreenHeight
screenname = %A_DD%-%A_MMM%-%A_YYYY%_%A_Hour%-%A_Min%-%A_Sec%.png
    If !pToken := Gdip_Startup()
        Throw &quot;Ошибка GDI+!  Gdiplus.dll не найден в вашей системе!&quot;
    chdc := CreateCompatibleDC(), hbm := CreateDIBSection(w, h, chdc)
    obm := SelectObject(chdc, hbm), hhdc := GetDC()
    BitBlt(chdc, 0, 0, w, h, hhdc, x, y,  0x40000000|0x00CC0020)
    ReleaseDC(hhdc), FileName := A_ScriptDir &quot;\Screens\&quot; screenname 
    pBitmap := Gdip_CreateBitmapFromHBITMAP(hbm) 
    SelectObject(chdc, obm), DeleteObject(hbm), DeleteDC(hhdc), DeleteDC(chdc)  
    Gdip_SaveBitmapToFile(pBitmap, FileName), Gdip_DisposeImage(pBitmap), Gdip_Shutdown(pToken)
    Return</code></pre></div><p>прекрасно скринит, а вот на Win7 скринит сквозь окно.</p>]]></content>
			<author>
				<name><![CDATA[LeGoo]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32469</uri>
			</author>
			<updated>2014-08-11T18:14:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=85835#p85835</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скриншот фуллскрин окна (Без Printscreen)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=85831#p85831" />
			<content type="html"><![CDATA[<p>А что за окно? Некоторые окна не поддаются снимку.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2014-08-11T15:59:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=85831#p85831</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скриншот фуллскрин окна (Без Printscreen)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=85830#p85830" />
			<content type="html"><![CDATA[<p>Ну что, никто не может помочь?</p>]]></content>
			<author>
				<name><![CDATA[LeGoo]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32469</uri>
			</author>
			<updated>2014-08-11T15:10:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=85830#p85830</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скриншот фуллскрин окна (Без Printscreen)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=85750#p85750" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Куда же там мимо, если на весь экран.</p></blockquote></div><p>Ну в смысле скринит так, будто этого окна вовсе нет.</p><br /><div class="quotebox"><cite>ypppu пишет:</cite><blockquote><p>А чем страшен Printscreen? И в каком смысле &quot;не используя&quot; - не нажимая физически на клавишу, или не посылая окну нажатие вообще?</p></blockquote></div><p>Не посылать окну нажатие</p>]]></content>
			<author>
				<name><![CDATA[LeGoo]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32469</uri>
			</author>
			<updated>2014-08-07T18:13:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=85750#p85750</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скриншот фуллскрин окна (Без Printscreen)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=85749#p85749" />
			<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>2014-08-07T18:11:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=85749#p85749</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скриншот фуллскрин окна (Без Printscreen)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=85748#p85748" />
			<content type="html"><![CDATA[<p>На Win8 все работает отлично, а вот на Win7 скринит мимо окна. <img src="//forum.script-coding.com/img/smilies/sad.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[LeGoo]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32469</uri>
			</author>
			<updated>2014-08-07T18:07:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=85748#p85748</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скриншот фуллскрин окна (Без Printscreen)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=85744#p85744" />
			<content type="html"><![CDATA[<p>Вроде как обычный вариант работает.<br /></p><div class="codebox"><pre><code>
1::
    X:=0, Y:=0, W:=A_ScreenWidth, H:=A_ScreenHeight
    If !pToken := Gdip_Startup()
        Throw &quot;Ошибка GDI+!  Убедитесь в наличии gdiplus.dll в вашей системе!&quot;
    chdc := CreateCompatibleDC(), hbm := CreateDIBSection(w, h, chdc)
    obm := SelectObject(chdc, hbm), hhdc := GetDC()
    BitBlt(chdc, 0, 0, w, h, hhdc, x, y,  0x40000000|0x00CC0020)
    ReleaseDC(hhdc), FileName := A_Desktop &quot;\&quot; A_Now &quot;.png&quot;  
    pBitmap := Gdip_CreateBitmapFromHBITMAP(hbm) 
    SelectObject(chdc, obm), DeleteObject(hbm), DeleteDC(hhdc), DeleteDC(chdc)  
    Gdip_SaveBitmapToFile(pBitmap, FileName), Gdip_DisposeImage(pBitmap), Gdip_Shutdown(pToken)
    Return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-08-07T15:07:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=85744#p85744</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скриншот фуллскрин окна (Без Printscreen)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=85743#p85743" />
			<content type="html"><![CDATA[<p>А чем страшен Printscreen? И в каком смысле &quot;не используя&quot; - не нажимая физически на клавишу, или не посылая окну нажатие вообще?</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2014-08-07T15:06:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=85743#p85743</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Скриншот фуллскрин окна (Без Printscreen)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=85741#p85741" />
			<content type="html"><![CDATA[<p>Здравствуйте! Помогите мне, пожалуйста, разобраться как сделать скриншот фуллскрин окна не используя Printscreen и вставку в скрытый paint. <br />Слышал о BitBlt, но не пойму, как пользоваться, а при помощи Gdip, <span class="bbu">у меня</span>, не получается заскринить фуллскрин окно.</p>]]></content>
			<author>
				<name><![CDATA[LeGoo]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32469</uri>
			</author>
			<updated>2014-08-07T14:51:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=85741#p85741</id>
		</entry>
</feed>
