<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Поиск цвета на 1 пикселе не в активном-перекрытом окне]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=16388</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=16388&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Поиск цвета на 1 пикселе не в активном-перекрытом окне».]]></description>
		<lastBuildDate>Sat, 29 May 2021 23:16:59 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Поиск цвета на 1 пикселе не в активном-перекрытом окне]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=148134#p148134</link>
			<description><![CDATA[<p>Участник <strong>Achkosnik</strong> заблокирован за нежелание выполнять правила форума.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 29 May 2021 23:16:59 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=148134#p148134</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поиск цвета на 1 пикселе не в активном-перекрытом окне]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=148131#p148131</link>
			<description><![CDATA[<p><strong>Achkosnik</strong>, если вы думаете, что игнорирование правил и требований модератора — это хорошая идея, вы заблуждаетесь. У вас время до вечера, чтобы исправиться, а пока вам запрещено создавать новые темы и оставлять комментарии. Эту закрываю.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 29 May 2021 11:16:53 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=148131#p148131</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Поиск цвета на 1 пикселе не в активном-перекрытом окне]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=148130#p148130</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Achkosnik)]]></author>
			<pubDate>Sat, 29 May 2021 07:35:39 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=148130#p148130</guid>
		</item>
	</channel>
</rss>
