<?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=9724&amp;type=atom" />
	<updated>2022-03-15T14:29:20Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9724</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Распознавание цвета]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152583#p152583" />
			<content type="html"><![CDATA[<p><strong>groubik</strong>, добро пожаловать на форум! Ознакомьтесь, пожалуйста, с <a href="https://forum.script-coding.com/misc.php?action=rules">Правилами</a>, отредактируйте свой пост. Обратите внимание на оформление <a href="https://forum.script-coding.com/misc.php?action=rules#links-formatting">ссылок</a>, заглавные <a href="https://forum.script-coding.com/misc.php?action=rules#literacy">буквы</a> в начале и точки в конце предложений.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-03-15T14:29:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152583#p152583</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Распознавание цвета]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152580#p152580" />
			<content type="html"><![CDATA[<p>помогите пожалуйста с ахк, сделал как надо, а оно не работает https://vk.com/zezea1 , скину вам все ахк подскажите что делать, спасибо</p>]]></content>
			<author>
				<name><![CDATA[groubik]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42411</uri>
			</author>
			<updated>2022-03-15T10:34:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152580#p152580</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Распознавание цвета]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84163#p84163" />
			<content type="html"><![CDATA[<p>Да, так гораздо лучше <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br /></p><div class="codebox"><pre><code>
PixelSearch, x, y, 58, 196, 78, 216, 0x000000
MsgBox, Совпал
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[otecubuntu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29967</uri>
			</author>
			<updated>2014-06-24T16:33:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84163#p84163</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Распознавание цвета]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84162#p84162" />
			<content type="html"><![CDATA[<p><a href="http://ahkscript.org/docs/commands/PixelSearch.htm">PixelSearch</a></p>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2014-06-24T16:08:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84162#p84162</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Распознавание цвета]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84161#p84161" />
			<content type="html"><![CDATA[<p>Приходит в голову только это:</p><div class="codebox"><pre><code>
;координаты левого верхнего угла 58, 196
;координаты правого нижнего угла 78, 216
x=58
y=196
loop,
{
PixelGetColor, Color, x, y
if Color = 0x000000
{
MsgBox, Совпал
}
x:=x+1
if (x &gt; 78)
{
x=58
y:=y+1
}
if (y &gt; 216)
{
x=58
y=196
}
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[otecubuntu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29967</uri>
			</author>
			<updated>2014-06-24T15:40:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84161#p84161</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Распознавание цвета]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84160#p84160" />
			<content type="html"><![CDATA[<p>Вы немного не поняли, у меня есть определенный квадрат на экране. И если в нем появляется нужный цвет, то происходит действие.<br />1. Как задать квадрат?<br />2. Как сделать проверку квадрата не пиксели?</p>]]></content>
			<author>
				<name><![CDATA[tuma4ok]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32022</uri>
			</author>
			<updated>2014-06-24T15:01:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84160#p84160</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Распознавание цвета]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84157#p84157" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
PixelGetColor, Color, 650, 174
if Color = 0xFFFFFF
{
MsgBox, Совпал
}
</code></pre></div><p>Координаты пикселя можно узнать через Window Spy</p>]]></content>
			<author>
				<name><![CDATA[otecubuntu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29967</uri>
			</author>
			<updated>2014-06-24T14:34:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84157#p84157</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Распознавание цвета]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84154#p84154" />
			<content type="html"><![CDATA[<p><span style="color: #008800"><strong>tuma4ok</strong>, избегайте <a href="https://forum.script-coding.com/misc.php?action=rules#quotation">избыточного цитирования</a>, я отредактировал Ваш пост.</span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-06-24T14:19:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84154#p84154</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Распознавание цвета]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84153#p84153" />
			<content type="html"><![CDATA[<p>Спасибо, помогли. Но у меня теперь новый вопрос, можно ли как-то сделать так, что если в определенном участке экрана, есть нужный цвет пикселя, то происходит нужное действие. Если поможете, цены вам не будет.</p>]]></content>
			<author>
				<name><![CDATA[tuma4ok]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32022</uri>
			</author>
			<updated>2014-06-24T14:17:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84153#p84153</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Распознавание цвета]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84100#p84100" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
;Задаем цвет в переменную
Color1:=0xFFFFFF

;Вычисляем текущие координаты курсора
MouseGetPos, xpos, ypos

;Считываем цвет в текущих координатах
PixelGetColor, Color, %xpos%, %ypos%

;Если цвет совпал 1 действие
if Color = %Color1%
{
MsgBox, Совпал
} 

;Если цвет не совпал 2 действие
else
{
MsgBox, Не совпал
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[otecubuntu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29967</uri>
			</author>
			<updated>2014-06-22T16:37:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84100#p84100</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Распознавание цвета]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84063#p84063" />
			<content type="html"><![CDATA[<p>Возможно ли сделать такой скрипт. Суть такова: Если в координатах там где находиться курсор, цвет пикселя совпадает с заданным в переменную, происходит нужное действие.<br />Спасибо что прочли, надеюсь поможете.<br />Если кому-то что-то не понятно, я объясню по подробней.</p>]]></content>
			<author>
				<name><![CDATA[tuma4ok]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32022</uri>
			</author>
			<updated>2014-06-21T19:24:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84063#p84063</id>
		</entry>
</feed>
