<?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=5726&amp;type=atom" />
	<updated>2011-04-14T12:06:14Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5726</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: поиск картинок с выводом сообщения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47616#p47616" />
			<content type="html"><![CDATA[<p>Спасибо большое скрипт подошел, находит моментально...))) Только вот теперь не могу сделать так, что бы искало не одну конкретную а примерно из 10 картинок которые лежат в папке со скриптом...</p>]]></content>
			<author>
				<name><![CDATA[FozdeR]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26900</uri>
			</author>
			<updated>2011-04-14T12:06:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47616#p47616</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: поиск картинок с выводом сообщения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47611#p47611" />
			<content type="html"><![CDATA[<p><a href="http://www.autohotkey.com/docs/commands/ImageSearch.htm">ImageSearch</a> поможет! <br />Не знаю, как с большими картинками, я использовал максимум 50х50 пикселей, работает даже быстрее <strong>PixelSearch</strong>.</p><div class="codebox"><pre><code>F1::
SetTimer, ImageCheck, 100
return


ImageCheck:

;берем размеры окна и вычисляем координаты для функции
WinGetPos, WinX, WinY, Width, Height, A    
Width := Width + WinX
Height := Height + WinY
ImageSearch, ImageX, ImageY, WinX, WinY, Width, Height, %A_ScriptDir%\YourImage.bmp
    if ( ErrorLevel &gt; 0 )
        {
        ;если ErrorLevel &gt; 0
        ;значит картинка не найдена
        return
        }
msgbox Картинка найдена по координатам X:%ImageX% - Y:%ImageY%
return</code></pre></div><p>В папке со скриптом должна находиться искомая картинка в формате <strong>bmp</strong>.</p>]]></content>
			<author>
				<name><![CDATA[MasS]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26824</uri>
			</author>
			<updated>2011-04-14T08:48:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47611#p47611</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: поиск картинок с выводом сообщения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47605#p47605" />
			<content type="html"><![CDATA[<p>Возможно, <a href="http://www.autohotkey.com/docs/commands/PixelSearch.htm"><strong>PixelSearch</strong></a> тебе поможет.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-04-14T07:10:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47605#p47605</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: поиск картинок с выводом сообщения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47585#p47585" />
			<content type="html"><![CDATA[<p>Добрый вечер. Помогите если можете и если это возможно... <br />Необходимо следующее: когда на мониторе появляется определенная картинка, скрипты идентифицируют что это имено та картинка что надо и показывает окошко с определенным текстом и кнопочкой &quot;ОК&quot;. Это процедура должна идти по кругу...</p>]]></content>
			<author>
				<name><![CDATA[FozdeR]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26900</uri>
			</author>
			<updated>2011-04-13T14:15:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47585#p47585</id>
		</entry>
</feed>
