<?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=15965&amp;type=atom" />
	<updated>2021-01-04T17:11:44Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15965</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK:При зажатии обеих клавиш в коде исполняется только одна часть кода]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144514#p144514" />
			<content type="html"><![CDATA[<p>Большое спасибо <strong>serzh82saratov</strong></p>]]></content>
			<author>
				<name><![CDATA[Lumpenl]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41338</uri>
			</author>
			<updated>2021-01-04T17:11:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144514#p144514</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:При зажатии обеих клавиш в коде исполняется только одна часть кода]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144508#p144508" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>sc10:: 
sc2C::
	If Loop
		return
	Loop := 1
	While GetKeyState(&quot;sc10&quot;, &quot;P&quot;) || GetKeyState(&quot;sc2C&quot;,&quot;P&quot;)
	{ 
		If GetKeyState(&quot;sc10&quot;, &quot;P&quot;)
		{
			Send {sc11}
			Send {sc11}
			Sleep 0
		}
		If GetKeyState(&quot;sc2C&quot;, &quot;P&quot;)
		{
			Send {space}
			Send {space}
			Sleep 109
		} 
	}
	Loop := 0
	return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2021-01-03T23:00:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144508#p144508</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:При зажатии обеих клавиш в коде исполняется только одна часть кода]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144506#p144506" />
			<content type="html"><![CDATA[<p><strong>Lumpenl</strong></p><p>Если задача объединить два цикла при зажатии обеих клавиш, то метод не верный.<br />Программа выполнить лишь один цикл, второй цикл будет прерывать первый.</p><p>Для выхода из ситуации советую сделать ещё одну метку, которая будет выполнятся при условии нажатия двух клавиш. В этой метке в нужном порядке поставьте необходимые команды.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-01-03T21:06:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144506#p144506</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:При зажатии обеих клавиш в коде исполняется только одна часть кода]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144477#p144477" />
			<content type="html"><![CDATA[<p>исправил</p>]]></content>
			<author>
				<name><![CDATA[Lumpenl]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41338</uri>
			</author>
			<updated>2021-01-03T08:48:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144477#p144477</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:При зажатии обеих клавиш в коде исполняется только одна часть кода]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144476#p144476" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>Lumpenl</strong>, заголовок темы должен содержать префикс скриптового языка и отражать суть вопроса. Исправьте!<br />Предложения должны начинаться с заглавной буквы и заканчиваться знаками препинания. Исправьте!<br />Для оформления кода следует использовать теги &quot;code&quot; и &quot;/code&quot;. Соответствующая кнопка имеется.</span></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2021-01-03T08:37:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144476#p144476</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK:При зажатии обеих клавиш в коде исполняется только одна часть кода]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144475#p144475" />
			<content type="html"><![CDATA[<p>При зажатии обеих клавиш в коде исполняется только одна часть кода.<br />Простите за невыставленный тег кода в сообщении, прошу помощи, так как сам не смог к сожалению справиться с данной проблемой.</p><div class="codebox"><pre><code>
sc10::
Loop
{
send, {sc11}
send, {sc11}
sleep,0
If !getkeystate(&quot;sc10&quot; , &quot;P&quot;)
Break
}
return 
sc2C::
Loop
{
send , {space}
send , {space}
sleep , 109
if !GetKeyState(&quot;sc2C&quot;,&quot;P&quot;)
break
}
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Lumpenl]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41338</uri>
			</author>
			<updated>2021-01-03T08:02:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144475#p144475</id>
		</entry>
</feed>
