<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Поиск цвета на 1 пикселе не в активном-перекрытом окне]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=16388&amp;type=atom" />
	<updated>2021-05-29T23:16:59Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=16388</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск цвета на 1 пикселе не в активном-перекрытом окне]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=148134#p148134" />
			<content type="html"><![CDATA[<p>Участник <strong>Achkosnik</strong> заблокирован за нежелание выполнять правила форума.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-05-29T23:16:59Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=148134#p148134</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск цвета на 1 пикселе не в активном-перекрытом окне]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=148131#p148131" />
			<content type="html"><![CDATA[<p><strong>Achkosnik</strong>, если вы думаете, что игнорирование правил и требований модератора — это хорошая идея, вы заблуждаетесь. У вас время до вечера, чтобы исправиться, а пока вам запрещено создавать новые темы и оставлять комментарии. Эту закрываю.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-05-29T11:16:53Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=148131#p148131</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Поиск цвета на 1 пикселе не в активном-перекрытом окне]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=148130#p148130" />
			<content type="html"><![CDATA[<p>На этом форуме нашёл код на поиск цвета в неактивном-перекрытом окне<br />Там в за основу был взят пейнт, определялся пейнт через ahk_class<br />Я попробовал код в Opera gx и на Rage mp, но по всем цветам у меня выдаёт 0х0<br />В пеинте всё прекрасно<br />Я пробовал запускать скрипт от имени админа<br /></p><div class="codebox"><pre><code>
Numpad1::

X := 871
Y := 549

SetFormat, Integer, Hex

WinGet, hWnd, ID, ahk_class Chrome_WidgetWin_1

hDC     := DllCall(&quot;GetDC&quot;, Int, hWnd)
hMemDC  := DllCall(&quot;CreateCompatibleDC&quot;, UInt, hDC)
WinGetPos,,, Width, Height, ahk_id %hWnd%
hBitmap := DllCall(&quot;CreateCompatibleBitmap&quot;, UInt, hDC, Int, Width, Int, Height)
DllCall(&quot;SelectObject&quot;, UInt, hMemDC, UInt, hBitmap)
DllCall(&quot;PrintWindow&quot;, UInt, hWnd, UInt, hMemDC, UInt, 0)
Color   := DllCall(&quot;GetPixel&quot;, UInt, hMemDC, UInt, X, Uint, Y)

DllCall(&quot;DeleteObject&quot;, UInt, hBitmap)
DllCall(&quot;DeleteDC&quot;, UInt, hMemDC)
DllCall(&quot;ReleaseDC&quot;, UInt, ahk_id hWnd, UInt, hDC)

Transform, Red,   BitAnd, Color, 0x0000FF

Transform, Green, BitAnd, Color, 0x00FF00
Transform, Green, BitShiftRight, Green, 8

Transform, Blue,  BitAnd, Color, 0xFF0000
Transform, Blue,  BitShiftRight, Blue, 16

SetFormat, Integer, D

MsgBox, Color %A_Tab% %Color%`n`nRed %A_Tab% %Red%`nGreen %A_Tab% %Green%`nBlue %A_Tab% %Blue%
return
</code></pre></div><p>За помощь буду благодарен</p>]]></content>
			<author>
				<name><![CDATA[Achkosnik]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41751</uri>
			</author>
			<updated>2021-05-29T07:35:39Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=148130#p148130</id>
		</entry>
</feed>
