<?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=17875&amp;type=atom" />
	<updated>2023-07-18T13:54:56Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=17875</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: if/else]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158796#p158796" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Спасибо огромное что помогли.</p>]]></content>
			<author>
				<name><![CDATA[lvrule]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43252</uri>
			</author>
			<updated>2023-07-18T13:54:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158796#p158796</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: if/else]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158795#p158795" />
			<content type="html"><![CDATA[<p>Если в блок if или else нужно поместить больше одной строки, то нужны фигурные скобки:<br /></p><div class="codebox"><pre><code>f2::
loop {
    sleep, 2500
    PixelSearch, Px, Py, 932, 514, 987, 569, 0xCBC0FF, 2, fast
    if ErrorLevel
        soundbeep, 105, 300
    else {
        soundbeep 972, 150
        click right
    }
}</code></pre></div><p>Отступы не стоит делать хаотично, они нужны не для красоты, а для понимания, что в каком блоке находится.<br /></p><div class="quotebox"><cite>lvrule пишет:</cite><blockquote><p>проблемма</p></blockquote></div><p>Это слово лучше писать с одной <em>м</em>.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2023-07-18T13:14:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158795#p158795</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: if/else]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158794#p158794" />
			<content type="html"><![CDATA[<p>Здраствуйте! проблемма такова, при не нахождение пикселя (розовый) происходит нажатие правой кнопки мыши. Понимаю может проблемма в чем то простом но увы я не пойму в чем проблемма. Прошу не ругать так как не давно в этом языке.</p><br /><div class="codebox"><pre><code>f2::
loop {
	sleep, 2500
			PixelSearch, Px, Py, 932, 514, 987, 569, 0xCBC0FF, 2, fast
		if ErrorLevel
			soundbeep, 105, 300
		else
			soundbeep 972, 150
			click right
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[lvrule]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43252</uri>
			</author>
			<updated>2023-07-18T13:03:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158794#p158794</id>
		</entry>
</feed>
