<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Imagesearch, работа с браузером]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=7828&amp;type=atom" />
	<updated>2012-11-30T16:22:43Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=7828</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Imagesearch, работа с браузером]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=66315#p66315" />
			<content type="html"><![CDATA[<p>Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[Jokero]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28382</uri>
			</author>
			<updated>2012-11-30T16:22:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=66315#p66315</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Imagesearch, работа с браузером]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=66314#p66314" />
			<content type="html"><![CDATA[<p>Задать для каждой кнопки в параметрах <em>Imagesearch</em> более точные области поиска и искать каждую отдельно. Для уточнения области поиска второй кнопки можно использовать координаты, полученные при поиске первой.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2012-11-30T15:47:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=66314#p66314</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Imagesearch, работа с браузером]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=66313#p66313" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><div class="quotebox"><cite>Jokero пишет:</cite><blockquote><p>Подскажите, как это правильно оформить.</p></blockquote></div><p>Знаки процента убрать. Эти параметры команды <a href="http://script-coding.com/AutoHotkey/MouseClick.html"><em>MouseClick</em></a> могут быть <a href="http://script-coding.com/AutoHotkey/Variables.1.0.46.07.html#2"><em>выражениями</em></a>.</p></blockquote></div><p>Спасибо. Скорее всего последний вопрос: в окне есть несколько одинаковых кнопок, другими словами одинаковых изображений. Как сделать так, чтобы скрипт кликал поочередно по каждой кнопке?</p>]]></content>
			<author>
				<name><![CDATA[Jokero]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28382</uri>
			</author>
			<updated>2012-11-30T15:31:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=66313#p66313</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Imagesearch, работа с браузером]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=66308#p66308" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Jokero пишет:</cite><blockquote><p>Подскажите, как это правильно оформить.</p></blockquote></div><p>Знаки процента убрать. Эти параметры команды <a href="http://script-coding.com/AutoHotkey/MouseClick.html"><em>MouseClick</em></a> могут быть <a href="http://script-coding.com/AutoHotkey/Variables.1.0.46.07.html#2"><em>выражениями</em></a>.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2012-11-30T13:00:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=66308#p66308</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Imagesearch, работа с браузером]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=66307#p66307" />
			<content type="html"><![CDATA[<p>Исправил, спасибо, но теперь возникла другая проблема - программа кликает немного выше нужной области.</p><div class="codebox"><pre><code>MouseClick, left, %x%+6, %y%+6</code></pre></div><p>- не работает. Подскажите, как это правильно оформить.</p>]]></content>
			<author>
				<name><![CDATA[Jokero]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28382</uri>
			</author>
			<updated>2012-11-30T12:28:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=66307#p66307</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Imagesearch, работа с браузером]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=66297#p66297" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ypppu пишет:</cite><blockquote><p>Но, с учётом того, что AutoHotkey + русский язык = дружба навеки... <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p></blockquote></div><p>Нет, это не имеет отношения к данному случаю, ведь в коде из первого поста для переменных использованы только ASCII-символы, а они как раз регистронезависимы в AHK. Так что X = x.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2012-11-29T18:19:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=66297#p66297</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Imagesearch, работа с браузером]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=66296#p66296" />
			<content type="html"><![CDATA[<p>Точно. Беру свои слова обратно. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2012-11-29T15:34:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=66296#p66296</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Imagesearch, работа с браузером]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=66295#p66295" />
			<content type="html"><![CDATA[<p>Но, с учётом того, что AutoHotkey + русский язык = дружба навеки... <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br /></p><div class="codebox"><pre><code>Р1 := 1
р1 := 2
msgbox, Р1=%Р1% р1=%р1%</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2012-11-29T15:05:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=66295#p66295</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Imagesearch, работа с браузером]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=66294#p66294" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>А для переменных заглавные и малые буквы - не одно и то же.</p></blockquote></div><p>Вы ошибаетесь.<br /></p><div class="quotebox"><blockquote><p>Variable names: Variable names are not case sensitive</p></blockquote></div><p><a href="http://www.autohotkey.com/docs/Variables.htm">http://www.autohotkey.com/docs/Variables.htm</a><br /></p><div class="codebox"><pre><code>x = 0
X = 1
Msgbox % x</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2012-11-29T14:33:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=66294#p66294</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Imagesearch, работа с браузером]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=66293#p66293" />
			<content type="html"><![CDATA[<p>лучше искать от 0,0 (или другой фиксированной точки). Если задать сначала x=0, y=0 и искать в цикле через %x% и %y%, то возникнет незапланированный побочный эффект ))</p>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2012-11-29T14:02:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=66293#p66293</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Imagesearch, работа с браузером]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=66292#p66292" />
			<content type="html"><![CDATA[<p>Вы не указали левую верхнюю точку, откуда следует начинать поиск (координаты 0;0)<br />Либо исправьте<br /></p><div class="codebox"><pre><code>         Imagesearch, x, y, 0, 0, %a_screenwidth%, %a_screenheight%, %a_scriptdir%\test.bmp</code></pre></div><p>либо добавьте в начало<br /></p><div class="codebox"><pre><code>x = 0
y = 0</code></pre></div><p>И ещё, координаты найденного изображения помещаются в переменные x, y. А щелчок мышью производится по X, Y. А для переменных заглавные и малые буквы - не одно и то же.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2012-11-29T13:54:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=66292#p66292</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Imagesearch, работа с браузером]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=66291#p66291" />
			<content type="html"><![CDATA[<p>Здравствуйте. Возникла потребность создать скрипт, который будет кликать по определенной области в браузере, но область каждый раз меняется. Поэтому решил использовать тег imagesearch, но увы, он не работает. Вот сам код:</p><div class="codebox"><pre><code>
CoordMode Pixel
^Z::
   Loop
      {
         Imagesearch, x, y, %x%, %y%, %a_screenwidth%, %a_screenheight%, %a_scriptdir%\test.bmp
         If Errorlevel = 0
         MouseClick, Left, X, Y
      }</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Jokero]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28382</uri>
			</author>
			<updated>2012-11-29T13:26:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=66291#p66291</id>
		</entry>
</feed>
