<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Изменение переменной после каждого loop.]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9911&amp;type=atom" />
	<updated>2014-08-21T17:29:27Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9911</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Изменение переменной после каждого loop.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=86023#p86023" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>freeker0k пишет:</cite><blockquote><p>В чем может быть проблема, на одном компе работает, а на другом - нет?)</p></blockquote></div><p>В разных версиях Ahk.</p>]]></content>
			<author>
				<name><![CDATA[Drugoy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27463</uri>
			</author>
			<updated>2014-08-21T17:29:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=86023#p86023</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Изменение переменной после каждого loop.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=86022#p86022" />
			<content type="html"><![CDATA[<p>Спасибо, вариант второй очень подходит.</p><p>В чем может быть проблема, на одном компе работает, а на другом - нет?)</p><p><span class="postimg"><img src="http://i67.fastpic.ru/big/2014/0821/3b/52c83b3c7b847acda26191c3d120213b.jpg" alt="PunBB bbcode test" /></span></p>]]></content>
			<author>
				<name><![CDATA[freeker0k]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27280</uri>
			</author>
			<updated>2014-08-21T17:07:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=86022#p86022</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Изменение переменной после каждого loop.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=86018#p86018" />
			<content type="html"><![CDATA[<p>2ой из 100 вариантов:<br /></p><div class="codebox"><pre><code>loop
    {  
        x1 := [962,44,2344,4664][Mod(A_Index - 1,4)+1]
        y1 := [58,345,449,4894][Mod(A_Index - 1,4)+1]
        MsgBox % x1 &quot;|&quot; y1
    }</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2014-08-21T13:39:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=86018#p86018</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Изменение переменной после каждого loop.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=86017#p86017" />
			<content type="html"><![CDATA[<p>Хм, не получается встроить в скрипт из-за этого двойного лупа <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /><br />Можно вариант в пределах&nbsp; одного лупа?</p><p>Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[freeker0k]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27280</uri>
			</author>
			<updated>2014-08-21T13:31:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=86017#p86017</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Изменение переменной после каждого loop.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=86015#p86015" />
			<content type="html"><![CDATA[<p>Один из ста вариантов:<br /></p><div class="codebox"><pre><code>
loop
    loop 4
    {  
        x1 := [962,44,2344,4664][A_Index]
        y1 := [58,345,449,4894][A_Index]
        MsgBox % x1 &quot;|&quot; y1
    }
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-08-21T11:32:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=86015#p86015</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Изменение переменной после каждого loop.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=86014#p86014" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Массивы:<br /></p><div class="codebox"><pre><code>
    loop
    {  
        x1 := [962,44,2344,4664][A_Index]
        y1 := [58,345,449,4894][A_Index]
        MsgBox % x1 &quot;|&quot; y1
    }
</code></pre></div></blockquote></div><p>Отлично, а чтоб подбор значений повторялся по кругу так, как после последних значений идет пустая переменная?</p>]]></content>
			<author>
				<name><![CDATA[freeker0k]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27280</uri>
			</author>
			<updated>2014-08-21T10:30:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=86014#p86014</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Изменение переменной после каждого loop.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=86011#p86011" />
			<content type="html"><![CDATA[<p>Массивы:<br /></p><div class="codebox"><pre><code>
    loop
    {  
        x1 := [962,44,2344,4664][A_Index]
        y1 := [58,345,449,4894][A_Index]
        MsgBox % x1 &quot;|&quot; y1
    }
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-08-21T08:43:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=86011#p86011</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Изменение переменной после каждого loop.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=86010#p86010" />
			<content type="html"><![CDATA[<p>Здравствуйте.</p><p>Есть пример скрипта (ниже), который двигает мышку в зависимости от положения определенного пикселя в определенном месте активного окна. Как сделать, что бы с каждым лупом переменные x1, y1 изменялись на заданное значение? Например, за первый луп x1, y1 принимают значение 962, 58, за второй - 980, 71 и т. д.)?</p><p>Спасибо.</p><div class="codebox"><pre><code>
start1:
loop
{
PixelSearch x2, y2, 885, 50, 1010, 173, 0x0000D6, , Fast ; этот пиксель есть всегда, записываем его координаты.
if errorlevel=0
x1:=962 ; эта переменная должна меняться с каждым лупом
y1:=58   ; эта переменная должна меняться с каждым лупом
x3:=x1-x2
y3:=y1-y2
       {
       mousemove, %x3%, %y3%
       goto, start1
       }
}
return


</code></pre></div>]]></content>
			<author>
				<name><![CDATA[freeker0k]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27280</uri>
			</author>
			<updated>2014-08-21T08:37:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=86010#p86010</id>
		</entry>
</feed>
