<?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=18178&amp;type=atom" />
	<updated>2024-04-29T23:29:42Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=18178</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Зажатие клавиши при условии]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160858#p160858" />
			<content type="html"><![CDATA[<p>Нет идей, ждите гуру по скриптам для игр! <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-04-29T23:29:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160858#p160858</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Зажатие клавиши при условии]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160857#p160857" />
			<content type="html"><![CDATA[<p>Было бы удобно если бы вместо &quot;x&quot; была боковая кнопка мыши, верхняя или нижняя, я попробовал так сделать но ничего не происходит.</p><div class="codebox"><pre><code>while (GetKeyState(&quot;XButton2&quot;, &quot;P&quot;))
</code></pre></div><div class="codebox"><pre><code>while (GetKeyState(&quot;XButton1&quot;, &quot;P&quot;))
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[efomine.74]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43708</uri>
			</author>
			<updated>2024-04-29T21:45:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160857#p160857</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Зажатие клавиши при условии]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160856#p160856" />
			<content type="html"><![CDATA[<p>Попробовал поменять в игре ключевую клавишу на &quot;c&quot;, и всё работает прекрасно, но всё же это совсем не удобно.</p>]]></content>
			<author>
				<name><![CDATA[efomine.74]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43708</uri>
			</author>
			<updated>2024-04-29T21:39:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160856#p160856</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Зажатие клавиши при условии]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160855#p160855" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />С этим кодом происходит всё тоже самое что и в изначальной версии. В этой он просто в момент срабатывания всё также отжимается на а затем снова нажимается.</p>]]></content>
			<author>
				<name><![CDATA[efomine.74]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43708</uri>
			</author>
			<updated>2024-04-29T21:36:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160855#p160855</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Зажатие клавиши при условии]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160854#p160854" />
			<content type="html"><![CDATA[<p>Или как-то так:<br /></p><div class="codebox"><pre><code>if (Color1R &gt; (Color2R + Threshold)) or (Color1R &lt; (Color2R - Threshold)) or (Color1G &gt; (Color2G + Threshold)) or (Color1G &lt; (Color2G - Threshold)) or (Color1B &gt; (Color2B + Threshold)) or (Color1B &lt; (Color2B - Threshold))
    {
        send {LButton}
        if GetKeyState(&quot;Ctrl&quot;, &quot;P&quot;) {
            send {Ctrl Down}
        }
    }</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-04-29T21:29:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160854#p160854</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Зажатие клавиши при условии]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160853#p160853" />
			<content type="html"><![CDATA[<p>Ну, тогда попробуйте добавить {Ctrl Down} после {LButton}.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-04-29T21:25:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160853#p160853</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Зажатие клавиши при условии]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160852#p160852" />
			<content type="html"><![CDATA[<p>Это достаточно странно, я проверил остальные клавиши, например &quot;<strong>Shift</strong>&quot; и всё работает отлично, и ничего не отжимается при срабатывании, но вот именно &quot;<strong>Ctrl</strong>&quot; ему чем-то не угодил.</p>]]></content>
			<author>
				<name><![CDATA[efomine.74]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43708</uri>
			</author>
			<updated>2024-04-29T21:24:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160852#p160852</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Зажатие клавиши при условии]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160851#p160851" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Попробовал, ничего не происходит, как и должно было, но при этом Ctrl теперь не отжимается.<br /></p><div class="codebox"><pre><code>if (Color1R &gt; (Color2R + Threshold)) or (Color1R &lt; (Color2R - Threshold)) or (Color1G &gt; (Color2G + Threshold)) or (Color1G &lt; (Color2G - Threshold)) or (Color1B &gt; (Color2B + Threshold)) or (Color1B &lt; (Color2B - Threshold))
            {
                
            }</code></pre></div>]]></content>
			<author>
				<name><![CDATA[efomine.74]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43708</uri>
			</author>
			<updated>2024-04-29T21:19:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160851#p160851</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Зажатие клавиши при условии]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160850#p160850" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>efomine.74 пишет:</cite><blockquote><p>Может команда Send мешает зажатию клавиши?</p></blockquote></div><p>Не должна, проверьте без неё.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-04-29T21:15:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160850#p160850</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Зажатие клавиши при условии]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160849#p160849" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Проверил на сайте для теста клавиатуры, отображающий все нажатые клавиши в данный момент. Ctrl отжимается сразу же в момент наведения курсора на другой цвет (Удалил строчки в коде блокирующие перемещение курсора), видимо дело все же не в игре.</p><p>Может команда <strong>Send</strong> мешает зажатию клавиши?</p><p>Ctrl отжимается только тогда когда меняется цвет, а не зажимается клавиша &quot;x&quot;, то есть при воспроизведении этой части кода: </p><div class="codebox"><pre><code>if (Color1R &gt; (Color2R + Threshold)) or (Color1R &lt; (Color2R - Threshold)) or (Color1G &gt; (Color2G + Threshold)) or (Color1G &lt; (Color2G - Threshold)) or (Color1B &gt; (Color2B + Threshold)) or (Color1B &lt; (Color2B - Threshold))
            {
                send {LButton}
            }</code></pre></div><p>Не отжимая клавиши &quot;x&quot; и &quot;Ctrl&quot;, если вернуть курсор на изначальный цвет, тем самым остановив цикл нажатия левой кнопки мыши, Ctrl снова начинает нажиматся.</p>]]></content>
			<author>
				<name><![CDATA[efomine.74]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43708</uri>
			</author>
			<updated>2024-04-29T21:10:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160849#p160849</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Зажатие клавиши при условии]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160848#p160848" />
			<content type="html"><![CDATA[<p>Спасибо, но не то. Надо было отредактировать ответ, где &quot;Да&quot;. Точку нужно ставить в конце любого предложения, даже если оно состоит из одного слова.<br />По вопросу, в коде нет ничего, что мешало бы ему работать с зажатой кнопкой Ctrl. Игра чаще всего перехватывает клавиатурный ввод, тут нужно экспериментировать непосредственно с конкретной игрой.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-04-29T21:00:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160848#p160848</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Зажатие клавиши при условии]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160847#p160847" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Отредактировал, подметьте пожалуйста, если что-то не так, спасибо.</p>]]></content>
			<author>
				<name><![CDATA[efomine.74]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43708</uri>
			</author>
			<updated>2024-04-29T20:52:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160847#p160847</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Зажатие клавиши при условии]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160846#p160846" />
			<content type="html"><![CDATA[<p>Ой, забыл добавить &quot;заранее спасибо&quot;!</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-04-29T20:51:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160846#p160846</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Зажатие клавиши при условии]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160845#p160845" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>efomine.74 пишет:</cite><blockquote><p>Да</p></blockquote></div><p><strong>efomine.74</strong>, ознакомьтесь, пожалуйста, с <a href="https://forum.script-coding.com/misc.php?action=rules">Правилами</a>, отредактируйте свой пост. Обратите внимание на <a href="https://forum.script-coding.com/misc.php?action=rules#literacy">точки</a> в конце предложений.<br />Для вопросов по играм у нас есть специальная ветка, если вы не заметили.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-04-29T20:45:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160845#p160845</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Зажатие клавиши при условии]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160844#p160844" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Да.</p>]]></content>
			<author>
				<name><![CDATA[efomine.74]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43708</uri>
			</author>
			<updated>2024-04-29T20:13:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160844#p160844</id>
		</entry>
</feed>
