<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: If var and var - Возможно ли что-то такое?]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=5511</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5511&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: If var and var - Возможно ли что-то такое?».]]></description>
		<lastBuildDate>Sun, 13 Feb 2011 18:04:51 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: If var and var - Возможно ли что-то такое?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=45122#p45122</link>
			<description><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Почему не работает? Всё работает! <em>Py := 250</em>, <em>A := 252</em>, значит <em>Py &lt; A</em>, а в условии — <em>Py &gt; A</em>, и сообщение не появляется.</p></blockquote></div><p>Да, методом проб и ошибок тоже увидел это )) Спасибо&nbsp; огромное за помощь)</p>]]></description>
			<author><![CDATA[null@example.com (b.e.f.)]]></author>
			<pubDate>Sun, 13 Feb 2011 18:04:51 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=45122#p45122</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: If var and var - Возможно ли что-то такое?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=45121#p45121</link>
			<description><![CDATA[<p>Почему не работает? Всё работает! <em>Py := 250</em>, <em>A := 252</em>, значит <em>Py &lt; A</em>, а в условии — <em>Py &gt; A</em>, и сообщение не появляется.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sun, 13 Feb 2011 18:03:07 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=45121#p45121</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: If var and var - Возможно ли что-то такое?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=45120#p45120</link>
			<description><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>А как оно должно работать? Переменные <em>YI1</em> и <em>YI2</em> не определены. Вместо этого значения присвоены <em>IY1</em> и <em>IY2</em> (первые два символа перепутаны местами). Вывод: переменные нужно называть более внятно, желательно осмысленно. И не ставить рядом символы &quot;I&quot;, &quot;l&quot;, &quot;1&quot;.</p></blockquote></div><p>Прошу строго не судить, я только учусь) <br /></p><div class="codebox"><pre><code>Px := 850, Py := 250
A := 252, B := 256
if (Px &gt; 817 and Px &lt; 911 and Py &gt; A  and Py &lt; B)
   MsgBox, Все условия выполнены!</code></pre></div><p>Если я правильно понял, теперь я присваиваю значения А и В, следовательно они определены? Но все равно не работает((</p>]]></description>
			<author><![CDATA[null@example.com (b.e.f.)]]></author>
			<pubDate>Sun, 13 Feb 2011 17:54:00 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=45120#p45120</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: If var and var - Возможно ли что-то такое?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=45117#p45117</link>
			<description><![CDATA[<p>А как оно должно работать? Переменные <em>YI1</em> и <em>YI2</em> не определены. Вместо этого значения присвоены <em>IY1</em> и <em>IY2</em> (первые два символа перепутаны местами). Вывод: переменные нужно называть более внятно, желательно осмысленно. И не ставить рядом символы &quot;I&quot;, &quot;l&quot;, &quot;1&quot;.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sun, 13 Feb 2011 17:40:20 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=45117#p45117</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: If var and var - Возможно ли что-то такое?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=45116#p45116</link>
			<description><![CDATA[<div class="codebox"><pre><code>Px := 850, Py := 250
IY1 := 252, IY2 := 256
if (Px &gt; 817 and Px &lt; 911 and Py &gt; YI1  and Py &lt; YI2)
   MsgBox, Все условия выполнены!</code></pre></div><p>А почему так не работает, не подскажите?)</p>]]></description>
			<author><![CDATA[null@example.com (b.e.f.)]]></author>
			<pubDate>Sun, 13 Feb 2011 17:30:53 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=45116#p45116</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: If var and var - Возможно ли что-то такое?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=45115#p45115</link>
			<description><![CDATA[<p>Да, действительно, без скобок только одиночное сравнение работает.</p>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Sun, 13 Feb 2011 15:15:47 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=45115#p45115</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: If var and var - Возможно ли что-то такое?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=45114#p45114</link>
			<description><![CDATA[<p>Совсем без скобок нельзя:<br /></p><div class="codebox"><pre><code>Px := 850, Py := 10000
if Px &gt; 817 and Px &lt; 911 and Py &gt; 252 and Py &lt; 256
   MsgBox, Все условия выполнены!</code></pre></div><p>Можно так:<br /></p><div class="codebox"><pre><code>Px := 850, Py := 255
if (Px &gt; 817 and Px &lt; 911 and Py &gt; 252 and Py &lt; 256)
   MsgBox, Все условия выполнены!</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sun, 13 Feb 2011 14:53:37 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=45114#p45114</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: If var and var - Возможно ли что-то такое?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=45112#p45112</link>
			<description><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Точнее будет так:<br /></p><div class="codebox"><pre><code>Px := 850, Py := 255
if (Px &gt; 817 and Px &lt; 911) and (Py &gt; 252 and Py &lt; 256)
   MsgBox, Все условия выполнены!</code></pre></div></blockquote></div><p>Спасибо, все работает <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (b.e.f.)]]></author>
			<pubDate>Sun, 13 Feb 2011 14:47:23 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=45112#p45112</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: If var and var - Возможно ли что-то такое?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=45111#p45111</link>
			<description><![CDATA[<p><strong>teadrinker</strong><br />А зачем скобки-то? Они ничего не дают.</p>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Sun, 13 Feb 2011 14:47:14 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=45111#p45111</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: If var and var - Возможно ли что-то такое?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=45110#p45110</link>
			<description><![CDATA[<p>Точнее будет так:<br /></p><div class="codebox"><pre><code>Px := 850, Py := 255
if (Px &gt; 817 and Px &lt; 911) and (Py &gt; 252 and Py &lt; 256)
   MsgBox, Все условия выполнены!</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sun, 13 Feb 2011 14:36:18 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=45110#p45110</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: If var and var - Возможно ли что-то такое?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=45109#p45109</link>
			<description><![CDATA[<div class="quotebox"><cite>ypppu пишет:</cite><blockquote><div class="codebox"><pre><code>var1:=10
var2:=20
If (var1&gt;1) and (var2&lt;40)
msgbox, Оба условия выполнены</code></pre></div></blockquote></div><p>Спасибо, пытаюсь переварить и адаптировать для себя <img src="//forum.script-coding.com/img/smilies/roll.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (b.e.f.)]]></author>
			<pubDate>Sun, 13 Feb 2011 14:31:31 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=45109#p45109</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: If var and var - Возможно ли что-то такое?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=45108#p45108</link>
			<description><![CDATA[<div class="codebox"><pre><code>var1:=10
var2:=20
If (var1&gt;1) and (var2&lt;40)
msgbox, Оба условия выполнены</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Sun, 13 Feb 2011 14:26:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=45108#p45108</guid>
		</item>
		<item>
			<title><![CDATA[AHK: If var and var - Возможно ли что-то такое?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=45107#p45107</link>
			<description><![CDATA[<p>Всем доброе время суток. Заранее прошу прощение, если вдруг подобная тема создавалась, но я найти подобного не смог <img src="//forum.script-coding.com/img/smilies/sad.png" width="15" height="15" />.<br />Хочу реализовать нечто такое:<br /></p><div class="codebox"><pre><code>PixelSearch, Px, Py, 805, 183, 943, 305, 0xD4D4D4, 3, Fast ; ищем нужный цвет
      if ErrorLevel
          MsgBox, That color was not found in the specified region.
      if  (Px between 817 and 911) and (Py between 252 and 256) ; если (координата Х нужного цвета пикселя находится между 817 и 911) и 
                                                                       (координата У этого же пикселя находится между 252 и 256)
     goto, metka

metka:</code></pre></div><p>Очень важно чтобы исполнялось двойное условие. Перепробовал всячески: ставил скобки везде, не ставил итд. Буду очень благодарен, если кто-то поможет.</p>]]></description>
			<author><![CDATA[null@example.com (b.e.f.)]]></author>
			<pubDate>Sun, 13 Feb 2011 13:51:28 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=45107#p45107</guid>
		</item>
	</channel>
</rss>
