<?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=17563&amp;type=atom" />
	<updated>2023-01-17T18:18:56Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=17563</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Работа в определённом цветовом диапазоне.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=156424#p156424" />
			<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>2023-01-17T18:18:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=156424#p156424</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Работа в определённом цветовом диапазоне.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=156423#p156423" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong> Спасибо а не могли бы объяснить что за что отвечает?</p>]]></content>
			<author>
				<name><![CDATA[pwch]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42951</uri>
			</author>
			<updated>2023-01-17T15:15:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=156423#p156423</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Работа в определённом цветовом диапазоне.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=156418#p156418" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
MsgBox % BetweenColors(0xE0E0E7, 0xE0, 0xE7) 

BetweenColors(bgr, min, max) {  
	c := (bgr &amp; 0xff)
	if (c &lt; min || c &gt; max)
		return false 
	c := ((bgr &gt;&gt; 8) &amp; 0xff)
	if (c &lt; min || c &gt; max)
		return false  
	c := ((bgr &gt;&gt; 16) &amp; 0xff)
	if (c &lt; min || c &gt; max)
		return false
	return true
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2023-01-16T19:37:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=156418#p156418</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Работа в определённом цветовом диапазоне.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=156416#p156416" />
			<content type="html"><![CDATA[<p>Необходимо сделать так чтобы if в срабатывал в диапазоне цвета от 0xE0E0E0 до 0xE7E7E7.<br />По типу<br /></p><div class="codebox"><pre><code>
PixelGetColor, ec, 919, 900
if ec = 3и4 значение переменной ec в диапaзоне от E0 до E7
{
if ec = 5и6 значение переменной ec в диапaзоне от E0 до E7
{
if ec = 7и8 значение переменной ec в диапaзоне от E0 до E7
{
sendinput {e}
}
}
}</code></pre></div><p>Или<br /></p><div class="codebox"><pre><code>if ec = E и значение от 0 до 7 а остальное игнорируется. Также с 5 и 6 позицией переменной ec 7 и 8, а каждый раз ещё игорировать 1 и 2 значение переменной ec
</code></pre></div><p> <br />Последущее также но игнорируя</p>]]></content>
			<author>
				<name><![CDATA[pwch]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42951</uri>
			</author>
			<updated>2023-01-16T19:05:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=156416#p156416</id>
		</entry>
</feed>
