<?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=11132&amp;type=atom" />
	<updated>2015-12-08T15:13:38Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11132</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Массив и поиск картинки.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=99579#p99579" />
			<content type="html"><![CDATA[<p>Потому что в справке написано, что координаты в Imagesearch в отличие от имени файла могут быть выражениями.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2015-12-08T15:13:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=99579#p99579</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Массив и поиск картинки.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=99578#p99578" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong></p><p>Спасибо!<br />Пожалуйста подскажите зачем нужен %, перед переменной?<br />Другие же переменные обрабатываются корректно.</p>]]></content>
			<author>
				<name><![CDATA[bubaaa]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28631</uri>
			</author>
			<updated>2015-12-08T14:58:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=99578#p99578</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Массив и поиск картинки.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=99577#p99577" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>SetWorkingDir %A_ScriptDir%

IfNotExist, 1.png
    MsgBox Error: Your file either doesn&#039;t exist or isn&#039;t in this location.

p1 := [0, 0, 1366, 768, &quot;1.png&quot;, 1]

loop
{
   loop 1
   {
	  ImageSearch, Px, Py, p%A_Index%[1], p%A_Index%[2], p%A_Index%[3], p%A_Index%[4], % p%A_Index%[5]
      if !errorlevel
   {
         send % p%A_Index%[6]
         break            
   } 
   }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2015-12-08T14:31:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=99577#p99577</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Массив и поиск картинки.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=99576#p99576" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong></p><p>Спасибо, вижу что значение передается, но в моем скрипте почему то это не работает.</p>]]></content>
			<author>
				<name><![CDATA[bubaaa]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28631</uri>
			</author>
			<updated>2015-12-08T14:10:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=99576#p99576</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Массив и поиск картинки.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=99575#p99575" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>p1 := [0, 0, 1366, 768, &quot;1.png&quot;, 1]
msgbox % p1[5]</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2015-12-08T14:01:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=99575#p99575</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Массив и поиск картинки.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=99573#p99573" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>bubaaa</strong>, озаглавьте тему по-русски.</span><br />Также желательно повысить грамотность сообщения.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2015-12-08T13:31:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=99573#p99573</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Массив и поиск картинки.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=99572#p99572" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>bubaaa</strong>, ознакомьтесь с <a href="http://forum.script-coding.com/viewtopic.php?id=6148">этой</a> темой, отредактируйте заголовок.</span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2015-12-08T13:25:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=99572#p99572</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Массив и поиск картинки.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=99571#p99571" />
			<content type="html"><![CDATA[<p>Добрый день.<br />Скрипт ищет картинку на экране, если есть совпадение - инициирует нажатие клавиши.</p><br /><div class="codebox"><pre><code>
SetWorkingDir %A_ScriptDir%

IfNotExist, 1.png
    MsgBox Error: Your file either doesn&#039;t exist or isn&#039;t in this location.

p1 := [0, 0, 1366, 768, 1.png, 1]

loop
{
   loop 1
   {
	  ImageSearch, Px, Py, p%A_Index%[1], p%A_Index%[2], p%A_Index%[3], p%A_Index%[4], p%A_Index%[5]
      if !errorlevel
   {
         send % p%A_Index%[6]
         break            
   } 
   }
}
</code></pre></div><p>Проблема - почему то значение 1.png не передается в p%A_Index%[5].</p><p>В скрипте ниже все работает корректно.</p><div class="codebox"><pre><code>
SetWorkingDir %A_ScriptDir%

IfNotExist, 1.png
    MsgBox Error: Your file either doesn&#039;t exist or isn&#039;t in this location.

p1 := [0, 0, 1366, 768, 1]

loop
{
   loop 1
   {
	  ImageSearch, Px, Py, p%A_Index%[1], p%A_Index%[2], p%A_Index%[3], p%A_Index%[4], 1.png
      if !errorlevel
   {
         send % p%A_Index%[5]
         break            
   } 
   }
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[bubaaa]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28631</uri>
			</author>
			<updated>2015-12-08T12:34:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=99571#p99571</id>
		</entry>
</feed>
