<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Перескакивание условия if]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=17696&amp;type=atom" />
	<updated>2023-03-18T08:51:55Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=17696</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перескакивание условия if]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=157222#p157222" />
			<content type="html"><![CDATA[<p>Скорее всего игра не успевает отреагировать, после SendInput, {Enter} надо добавить задержку.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2023-03-18T08:51:55Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=157222#p157222</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перескакивание условия if]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=157219#p157219" />
			<content type="html"><![CDATA[<p>Но у меня допустим в игре листает этажи нажимая на е, и вот допустим картинка нашлась на 6 этаже он выполняет условие errorlevel = 0 не успевает кликнуть как уже выполнилось else почему так?</p>]]></content>
			<author>
				<name><![CDATA[kol4p]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=43066</uri>
			</author>
			<updated>2023-03-18T07:48:03Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=157219#p157219</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перескакивание условия if]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=157217#p157217" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>kol4p пишет:</cite><blockquote><p>условие if (ErrorLevel = 0) не успело выполнится и уже началось выполнятся else</p></blockquote></div><p>Такого не может быть. Программа выполнятся сверху вниз.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2023-03-17T20:55:44Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=157217#p157217</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перескакивание условия if]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=157215#p157215" />
			<content type="html"><![CDATA[<p>Доброй ночи! Надеюсь теперь правильно.</p>]]></content>
			<author>
				<name><![CDATA[kol4p]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=43066</uri>
			</author>
			<updated>2023-03-17T20:29:53Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=157215#p157215</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перескакивание условия if]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=157209#p157209" />
			<content type="html"><![CDATA[<p><strong>kol4p</strong>, добро пожаловать на форум! Ознакомьтесь, пожалуйста, с <a href="https://forum.script-coding.com/misc.php?action=rules">Правилами</a>, отредактируйте свой пост. Обратите внимание на <a href="https://forum.script-coding.com/viewtopic.php?id=5421">составление заголовков</a> и <a href="https://forum.script-coding.com/misc.php?action=rules#literacy">точки</a> в конце предложений.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2023-03-17T19:41:01Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=157209#p157209</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Перескакивание условия if]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=157203#p157203" />
			<content type="html"><![CDATA[<p>Пишу скрипт для игры, проблема такова что я ищу определённую картинку и если она находится то выполняется код, если нет то выполняется другой код.<br />И проблема такова, что фото нашлось но условие if (ErrorLevel = 0) не успело выполнится и уже началось выполнятся else, как мне сделать что бы else не выполнялось если ErrorLevel = 0.<br /></p><div class="codebox"><pre><code>ImageSearch, X, Y, 500, 261, 1775, 900, *10 Photo.png
            if (ErrorLevel = 0)
            {
                Click, %X%, %Y%
                SendInput, {Enter}
            }
            else
            {
                 Sleep 90
                 SendInput, {E}
            }</code></pre></div>]]></content>
			<author>
				<name><![CDATA[kol4p]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=43066</uri>
			</author>
			<updated>2023-03-17T18:09:59Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=157203#p157203</id>
		</entry>
</feed>
