<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: If/Else]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=17932&amp;type=atom" />
	<updated>2023-09-09T15:21:38Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=17932</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: If/Else]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159144#p159144" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>F1::
x1 := 0
y1 := 0
x2 := A_ScreenWidth
y2 := A_ScreenHeight

word := &quot;M3&quot;
rgb1 := 0xFF9632
send, ^f
send, %word%{enter}
sleep, 2500
PixelSearch, x, y, x1, y1, x2, y2, rgb1, 5, Fast RGB
if ErrorLevel {
    MsgBox, True
}
else {
    MsgBox, False
    click right
}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2023-09-09T15:21:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159144#p159144</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: If/Else]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159143#p159143" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> Можете пожалуйста составить правильный код.</p>]]></content>
			<author>
				<name><![CDATA[gfrv_l8]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43327</uri>
			</author>
			<updated>2023-09-09T15:00:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159143#p159143</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: If/Else]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159142#p159142" />
			<content type="html"><![CDATA[<p>Когда блок состоит более, чем из одной строки, он должен быть заключён в фигурные скобки.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2023-09-09T14:50:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159142#p159142</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: If/Else]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159139#p159139" />
			<content type="html"><![CDATA[<p>Здравствуйте!<br />Проблема В том в скрипте не реагирует на команду Else то есть если скрипт найдет нужное слова в вкладке должно открыть.</p><div class="codebox"><pre><code>MsgBox, True</code></pre></div><p> А если не найдет слово должно открыть </p><div class="codebox"><pre><code>MsgBox,</code></pre></div><p>.</p><div class="codebox"><pre><code>F1::
rgb1:= 0xFF9632
word:=&quot;M3&quot;
send,^f
send,%word%{enter}
{
    sleep, 2500
    PixelSearch,x,y,x1,y1,w1,h1, rgb1, 5, Fast RGB
    if ErrorLevel
        MsgBox, True
        return
    else {
        MsgBox, False
        click right
        return
    }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[gfrv_l8]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43327</uri>
			</author>
			<updated>2023-09-09T14:48:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159139#p159139</id>
		</entry>
</feed>
