<?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=14172&amp;type=atom" />
	<updated>2018-09-16T14:02:49Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14172</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Подскажите как создать условия?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128720#p128720" />
			<content type="html"><![CDATA[<p>Посмотри справку по if - <strong>else</strong>.</p>]]></content>
			<author>
				<name><![CDATA[Foma]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31521</uri>
			</author>
			<updated>2018-09-16T14:02:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128720#p128720</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Подскажите как создать условия?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128717#p128717" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>egorhay пишет:</cite><blockquote><p>Нужно чтобы в случаи нахождения изображения. Выскакивала уведомление/ также и в случаи его не нахождения. А лучше чтобы информация о нахождении записывалась в файл info.txt результатом 0 если не нашел и 1 если нашел. <br /></p><div class="codebox"><pre><code>Run, chrome.exe &quot;http://site&quot;
Sleep, 4500
Send, {tab}
Sleep, 3500
ImageSearch, xp, yp, 354, 449, 561, 484, *30 yes.png
Sleep 200
if xp = 0 
MsgBox, no!
if xp &gt; 0 
MsgBox, Yes!
ExitApp
</code></pre></div></blockquote></div><p>Вроде разобрался, решил это вот так, <br /></p><div class="codebox"><pre><code>
Run, chrome.exe &quot;http://*&quot;
Sleep, 4500
Send, {tab}
Sleep, 3500
loop,
{
ImageSearch, xp, yp, 354, 449, 561, 484, *30 yes.png
sleep, 200 
if xp &gt; 0
MsgBox, Yes!
Break
}

Loop,
{
ImageSearch, , , 354, 449, 561, 484, *30 yes.png
Sleep 200
if xp &lt; 0
MsgBox, No!
Break
}

ExitApp
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[egorhay]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39529</uri>
			</author>
			<updated>2018-09-16T11:48:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128717#p128717</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Подскажите как создать условия?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128716#p128716" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Правила форума пишет:</cite><blockquote><p><span style="color: red">Не используйте в заголовках тем слова &quot;простой вопрос&quot;, &quot;нужна помощь&quot;, &quot;помогите&quot;, &quot;новичок&quot; и т.п. </span></p></blockquote></div><p><span style="color: green"><strong>egorhay</strong>, исправьте заголовок темы.</span></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2018-09-16T11:06:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128716#p128716</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Подскажите как создать условия?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128715#p128715" />
			<content type="html"><![CDATA[<p>Нужно чтобы в случаи нахождения изображения. Выскакивала уведомление/ также и в случаи его не нахождения. А лучше чтобы информация о нахождении записывалась в файл info.txt результатом 0 если не нашел и 1 если нашел. <br /></p><div class="codebox"><pre><code>Run, chrome.exe &quot;http://site&quot;
Sleep, 4500
Send, {tab}
Sleep, 3500
ImageSearch, xp, yp, 354, 449, 561, 484, *30 yes.png
Sleep 200
if xp = 0 
MsgBox, no!
if xp &gt; 0 
MsgBox, Yes!
ExitApp
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[egorhay]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39529</uri>
			</author>
			<updated>2018-09-16T10:31:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128715#p128715</id>
		</entry>
</feed>
