<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: При нажатии 2 клавиш миши выполняется цикл]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=15753</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15753&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: При нажатии 2 клавиш миши выполняется цикл».]]></description>
		<lastBuildDate>Wed, 28 Oct 2020 20:22:38 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: При нажатии 2 клавиш миши выполняется цикл]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142954#p142954</link>
			<description><![CDATA[<p><strong>CD_MyAcO</strong>, <a href="https://ru.wikipedia.org/wiki/%D0%A2%D0%B0%D0%B1%D1%83%D0%BB%D1%8F%D1%86%D0%B8%D1%8F">Табуляция</a>.</p>]]></description>
			<author><![CDATA[null@example.com (qqlexa)]]></author>
			<pubDate>Wed, 28 Oct 2020 20:22:38 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142954#p142954</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: При нажатии 2 клавиш миши выполняется цикл]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142946#p142946</link>
			<description><![CDATA[<p><strong>qqlexa</strong> Но ведь если в блокноте кодить, надо раз 20 отступов делать для 1 строки. И это время затратно.</p>]]></description>
			<author><![CDATA[null@example.com (CD_MyAcO)]]></author>
			<pubDate>Wed, 28 Oct 2020 18:11:16 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142946#p142946</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: При нажатии 2 клавиш миши выполняется цикл]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142939#p142939</link>
			<description><![CDATA[<p><strong>CD_MyAcO</strong>, независимо от среды программирования стоит обращать на стиль кода.</p>]]></description>
			<author><![CDATA[null@example.com (qqlexa)]]></author>
			<pubDate>Wed, 28 Oct 2020 15:32:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142939#p142939</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: При нажатии 2 клавиш миши выполняется цикл]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142925#p142925</link>
			<description><![CDATA[<p><strong>qqlexa</strong><br />Я писал ранее в блокноте <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br />Уже скачал полноценную нормальную программу для кодинга ахк</p>]]></description>
			<author><![CDATA[null@example.com (CD_MyAcO)]]></author>
			<pubDate>Wed, 28 Oct 2020 12:46:01 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142925#p142925</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: При нажатии 2 клавиш миши выполняется цикл]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142923#p142923</link>
			<description><![CDATA[<p><strong>CD_MyAcO</strong>, делайте отступы для лучшего прочтения:<br /></p><div class="codebox"><pre><code>
~LButton &amp; RButton::
sleep 1000
GetKeyState(&quot;LButton&quot;)
loop
{
	if GetKeyState(&quot;LButton&quot;, &quot;P&quot;)
	{
		if GetKeyState(&quot;RButton&quot;, &quot;P&quot;)
			click
		else
			break
	}
	else
		break
}
return
</code></pre></div><p>Преподователи советуют использовать скобки даже на одну строку, в случае, если нужно будет дописать - вы не сломаете ничего, кроме тела условного оператора:<br /></p><div class="codebox"><pre><code>
~LButton &amp; RButton::
sleep 1000
GetKeyState(&quot;LButton&quot;)
loop
{
	if GetKeyState(&quot;LButton&quot;, &quot;P&quot;)
	{
		if GetKeyState(&quot;RButton&quot;, &quot;P&quot;)
		{
			click
		}
		else
		{
			break
		}
	}
	else
	{
		break
	}
}
return
</code></pre></div><p>Так же есть практика, когда открываете скобку на той же строчке:<br /></p><div class="codebox"><pre><code>
~LButton &amp; RButton::
sleep 1000
GetKeyState(&quot;LButton&quot;)
loop {
	if GetKeyState(&quot;LButton&quot;, &quot;P&quot;) {
		if GetKeyState(&quot;RButton&quot;, &quot;P&quot;) {
			click
		}
		else {
			break
		}
	}
	else {
		break
	}
}
return
</code></pre></div><p>Но это уже вкусовщина. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (qqlexa)]]></author>
			<pubDate>Wed, 28 Oct 2020 11:43:42 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142923#p142923</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: При нажатии 2 клавиш миши выполняется цикл]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142919#p142919</link>
			<description><![CDATA[<p>Всё, я уже сам разобрался.<br /></p><div class="codebox"><pre><code>~LButton &amp; RButton::
sleep 1000
GetKeyState(&quot;LButton&quot;)
loop
{
if GetKeyState(&quot;LButton&quot;, &quot;P&quot;)
{
if GetKeyState(&quot;RButton&quot;, &quot;P&quot;)
click
else
break
}
else
break
}
return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (CD_MyAcO)]]></author>
			<pubDate>Wed, 28 Oct 2020 10:30:44 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142919#p142919</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: При нажатии 2 клавиш миши выполняется цикл]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142887#p142887</link>
			<description><![CDATA[<p><strong>Botsy</strong> Метки я нашёл в интернете, но скрипт всё равно не работает пока зажата клавиша.<br /></p><div class="codebox"><pre><code>~LButton &amp; RButton::
1:
While GetKeyState(&quot;LButton&quot;)
{
click
Goto, 1
}
return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (CD_MyAcO)]]></author>
			<pubDate>Tue, 27 Oct 2020 19:28:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142887#p142887</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: При нажатии 2 клавиш миши выполняется цикл]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142884#p142884</link>
			<description><![CDATA[<p><strong>CD_MyAcO</strong> возможно нельзя повторно использовать клавишу, которая используется для хоткея.</p>]]></description>
			<author><![CDATA[null@example.com (Botsy)]]></author>
			<pubDate>Tue, 27 Oct 2020 19:19:53 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142884#p142884</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: При нажатии 2 клавиш миши выполняется цикл]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142883#p142883</link>
			<description><![CDATA[<p><strong>Botsy</strong> Это тот же цикл что и я написал.</p>]]></description>
			<author><![CDATA[null@example.com (CD_MyAcO)]]></author>
			<pubDate>Tue, 27 Oct 2020 19:17:38 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142883#p142883</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: При нажатии 2 клавиш миши выполняется цикл]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142881#p142881</link>
			<description><![CDATA[<p><strong>CD_MyAcO</strong> А так ? Если не поможет, то я больше не знаю.<br /></p><div class="codebox"><pre><code>
~LButton &amp; RButton::

While GetKeyState(&quot;LButton&quot;)
{
click ; или Send {LButton}
}
return
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Botsy)]]></author>
			<pubDate>Tue, 27 Oct 2020 19:16:08 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142881#p142881</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: При нажатии 2 клавиш миши выполняется цикл]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142880#p142880</link>
			<description><![CDATA[<p><strong>Botsy</strong> Я где то находил маяки на просторах интернета, но давно их не использовал. Поэтому забил как они работают.</p>]]></description>
			<author><![CDATA[null@example.com (CD_MyAcO)]]></author>
			<pubDate>Tue, 27 Oct 2020 19:08:24 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142880#p142880</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: При нажатии 2 клавиш миши выполняется цикл]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142879#p142879</link>
			<description><![CDATA[<p><strong>Botsy</strong> Тогда зациклиться на 1 клике и будет работать бесконечно. Мне нужно пока зажата - работает, отпустили - не работает.<br />Я пробовал такой код. Но я не знаю как ставить маяки(Когда доходит до кода, возвращает туда где поставлен маяк. В этом случаи если после клика стоит код(хз как там он пишеться) то он возвращается до маяка под названием которое указанное, который ищет в коде.)<br /></p><div class="codebox"><pre><code>~LButton &amp; RButton::
While GetKeyState(&quot;LButton&quot;)
click
return</code></pre></div><p>К примеру с маяком<br /></p><div class="codebox"><pre><code>~LButton &amp; RButton::
1:
While GetKeyState(&quot;LButton&quot;)
{
click
mayak, 1 
}
return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (CD_MyAcO)]]></author>
			<pubDate>Tue, 27 Oct 2020 19:06:57 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142879#p142879</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: При нажатии 2 клавиш миши выполняется цикл]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142878#p142878</link>
			<description><![CDATA[<p><strong>CD_MyAcO</strong> Мб так получиться.<br /></p><div class="codebox"><pre><code>
~LButton &amp; RButton::
loop
{
click
}
return
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Botsy)]]></author>
			<pubDate>Tue, 27 Oct 2020 19:01:57 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142878#p142878</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: При нажатии 2 клавиш миши выполняется цикл]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142877#p142877</link>
			<description><![CDATA[<p><strong>Botsy</strong><br />Вот цикл работает, но он работает только раз.<br /></p><div class="codebox"><pre><code>~LButton &amp; RButton::
click
return</code></pre></div><p>Если сделать такой же, только с клавиатурой. То он будет работать пока зажата кнопка клавиатуры(потому что когда зажата кнопка клавиатуры то клавиша подаёт 1 клик, затем немерено пока не отпуститься клавиша. А в мышке только 1 раз то есть нажатый, и отпущенный.) Как это исправить?</p><div class="codebox"><pre><code>Numpad0::
click
return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (CD_MyAcO)]]></author>
			<pubDate>Tue, 27 Oct 2020 19:00:47 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142877#p142877</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: При нажатии 2 клавиш миши выполняется цикл]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=142876#p142876</link>
			<description><![CDATA[<p><strong>CD_MyAcO</strong> Я не понимаю, не понятно объясняете.</p>]]></description>
			<author><![CDATA[null@example.com (Botsy)]]></author>
			<pubDate>Tue, 27 Oct 2020 18:57:23 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=142876#p142876</guid>
		</item>
	</channel>
</rss>
