<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Получение цвета пикселя из перекрытого окна.]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16232&amp;type=atom" />
	<updated>2021-04-04T15:26:19Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16232</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение цвета пикселя из перекрытого окна.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147165#p147165" />
			<content type="html"><![CDATA[<p>Ну вот, отлично, оттуда и можете скачать. Поместить можно в сам скрипт, или создать в папке скрипта папку lib и поместить туда. Чтобы работало вообще со всеми скриптами, сохраните в папку Мои документы\AutoHotkey\Lib.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-04-04T15:26:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147165#p147165</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение цвета пикселя из перекрытого окна.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147164#p147164" />
			<content type="html"><![CDATA[<p><a href="https://github.com/tariqporter/Gdip/blob/master/Gdip.ahk">https://github.com/tariqporter/Gdip/blo … r/Gdip.ahk</a> <strong>teadrinker</strong></p>]]></content>
			<author>
				<name><![CDATA[hypechel]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41099</uri>
			</author>
			<updated>2021-04-04T15:17:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147164#p147164</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение цвета пикселя из перекрытого окна.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147150#p147150" />
			<content type="html"><![CDATA[<p>Если в поиск Гугла вбить Gdip.ahk, какой у вас самый первый результат?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-04-04T01:52:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147150#p147150</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Получение цвета пикселя из перекрытого окна.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147147#p147147" />
			<content type="html"><![CDATA[<p>Видел на форуме темы по этому поводу но не совсем разобрался.<br /></p><div class="codebox"><pre><code>F11::
   Title =   ; указать заголовок окна
   x =       ; указать координаты пиксела
   y =  

   pToken := Gdip_Startup()
      
   hWnd := WinExist(Title)
   pBitmap := Gdip_BitmapFromHWND(hWnd)
   SetFormat, IntegerFast, H
   ARGB := Gdip_GetPixel(pBitmap, x, y)
   Gdip_DisposeImage(pBitmap), Gdip_Shutdown(pToken)

   MsgBox, % &quot;Red = &quot; (ARGB &amp; 0xffffff) &gt;&gt; 16
         . &quot;`nGreen = &quot; (ARGB &amp; 0xffff) &gt;&gt; 8
         . &quot;`nBlue = &quot; ARGB &amp; 0xff
   Return</code></pre></div><p>Код выдает ошибку в &quot;Gdip_Startup()&quot;, не совсем понимаю где скачать библиотеку Gdip.ahk. Можете по пунктом рассказать где ее скачать и куда поместить чтобы скрипт начал работать?</p>]]></content>
			<author>
				<name><![CDATA[hypechel]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41099</uri>
			</author>
			<updated>2021-04-03T20:30:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147147#p147147</id>
		</entry>
</feed>
