<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Массив и поиск картинки.]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=11132</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11132&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Массив и поиск картинки.».]]></description>
		<lastBuildDate>Tue, 08 Dec 2015 15:13:38 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Массив и поиск картинки.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99579#p99579</link>
			<description><![CDATA[<p>Потому что в справке написано, что координаты в Imagesearch в отличие от имени файла могут быть выражениями.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Tue, 08 Dec 2015 15:13:38 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99579#p99579</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Массив и поиск картинки.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99578#p99578</link>
			<description><![CDATA[<p><strong>Malcev</strong></p><p>Спасибо!<br />Пожалуйста подскажите зачем нужен %, перед переменной?<br />Другие же переменные обрабатываются корректно.</p>]]></description>
			<author><![CDATA[null@example.com (bubaaa)]]></author>
			<pubDate>Tue, 08 Dec 2015 14:58:32 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99578#p99578</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Массив и поиск картинки.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99577#p99577</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Tue, 08 Dec 2015 14:31:29 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99577#p99577</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Массив и поиск картинки.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99576#p99576</link>
			<description><![CDATA[<p><strong>Malcev</strong></p><p>Спасибо, вижу что значение передается, но в моем скрипте почему то это не работает.</p>]]></description>
			<author><![CDATA[null@example.com (bubaaa)]]></author>
			<pubDate>Tue, 08 Dec 2015 14:10:22 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99576#p99576</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Массив и поиск картинки.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99575#p99575</link>
			<description><![CDATA[<div class="codebox"><pre><code>p1 := [0, 0, 1366, 768, &quot;1.png&quot;, 1]
msgbox % p1[5]</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Tue, 08 Dec 2015 14:01:35 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99575#p99575</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Массив и поиск картинки.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99573#p99573</link>
			<description><![CDATA[<p><span style="color: green"><strong>bubaaa</strong>, озаглавьте тему по-русски.</span><br />Также желательно повысить грамотность сообщения.</p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Tue, 08 Dec 2015 13:31:26 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99573#p99573</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Массив и поиск картинки.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99572#p99572</link>
			<description><![CDATA[<p><span style="color: green"><strong>bubaaa</strong>, ознакомьтесь с <a href="http://forum.script-coding.com/viewtopic.php?id=6148">этой</a> темой, отредактируйте заголовок.</span></p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Tue, 08 Dec 2015 13:25:38 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99572#p99572</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Массив и поиск картинки.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99571#p99571</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (bubaaa)]]></author>
			<pubDate>Tue, 08 Dec 2015 12:34:22 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99571#p99571</guid>
		</item>
	</channel>
</rss>
