<?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=14401&amp;type=atom" />
	<updated>2018-12-15T13:04:53Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14401</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Зажатие двух кнопок одной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=130416#p130416" />
			<content type="html"><![CDATA[<p>После if перед вызовом функции тоже скобки не нужны. Но дело вкуса, конечно.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-12-15T13:04:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=130416#p130416</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Зажатие двух кнопок одной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=130411#p130411" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, для меня while тот же if, по этому мне удобнее писать скобки.</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2018-12-15T11:56:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=130411#p130411</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Зажатие двух кнопок одной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=130410#p130410" />
			<content type="html"><![CDATA[<p><strong>Phoenixxx_Czar</strong>, скобки лишние, кавычки нехватает.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-12-15T08:28:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=130410#p130410</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Зажатие двух кнопок одной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=130409#p130409" />
			<content type="html"><![CDATA[<p><strong>Ms_Smail</strong>, можно было и while обойтись, меньше строк бы занял.<br /></p><div class="codebox"><pre><code>
wait1 := 100 ;Время зажатия LShift
wait2 := 30 ;Время зажатия LCtrl

~vk43::
while(GetKeyState(&quot;vk43&quot;, &quot;P&quot;))
{
	Send, {LShift Down}
	Sleep %wait1%
	Send, {LCtrl Down}
	Sleep %wait2%
	Send, {LCtrl Up}
}
Send, {LShift Up}
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2018-12-15T08:10:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=130409#p130409</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Зажатие двух кнопок одной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=130408#p130408" />
			<content type="html"><![CDATA[<p><strong>vlad.kosmicheskiy</strong>, настроить задержки можешь сам, как тебе нужно.<br /></p><div class="codebox"><pre><code>
Sleep := 100 ;Время зажатия LShift
Sleep2 := 30 ;Время зажатия LCtrl
~vk43::
Loop
{
GetKeyState, State, vk43, P
if State = u
{
Send, {LShift Up}
break
}
Send, {LShift Down}
Sleep %Sleep%
Send, {LCtrl Down}
Sleep %Sleep2%
Send, {LCtrl Up}
}
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Ms_Smail]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39022</uri>
			</author>
			<updated>2018-12-14T22:21:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=130408#p130408</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Зажатие двух кнопок одной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=130401#p130401" />
			<content type="html"><![CDATA[<p><strong>Ms_Smail</strong></p><p>Очень похоже на то, но нажатия LCtrl слишком короткое, какая строчка отвечает за это?</p>]]></content>
			<author>
				<name><![CDATA[vlad.kosmicheskiy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39678</uri>
			</author>
			<updated>2018-12-14T11:50:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=130401#p130401</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Зажатие двух кнопок одной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=130379#p130379" />
			<content type="html"><![CDATA[<p>Это то что вы хотели?<br /></p><div class="codebox"><pre><code>
~vk43::
Sleep := 100
Loop
{
GetKeyState, State, vk43, P
if State = u
{
Send, {LShift Up}
break
}
Send, {LShift Down}
Sleep %Sleep%
Send, {LCtrl}
}
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Ms_Smail]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39022</uri>
			</author>
			<updated>2018-12-12T15:19:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=130379#p130379</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Зажатие двух кнопок одной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=130371#p130371" />
			<content type="html"><![CDATA[<p><span style="color: green">Да, так лучше.</span></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2018-12-12T07:59:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=130371#p130371</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Зажатие двух кнопок одной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=130370#p130370" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong><br />Вроде исправил, сообщите если всё сделал правильно.</p>]]></content>
			<author>
				<name><![CDATA[vlad.kosmicheskiy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39678</uri>
			</author>
			<updated>2018-12-12T05:43:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=130370#p130370</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Зажатие двух кнопок одной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=130367#p130367" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>vlad.kosmicheskiy</strong>, название темы должно отражать суть вопроса. В конце предложений ставится точка. Исправьте.</span></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2018-12-11T16:10:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=130367#p130367</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK:Зажатие двух кнопок одной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=130366#p130366" />
			<content type="html"><![CDATA[<p>Здравствуйте, в ахк полный ноль, как сделать чтобы при зажатие буквы С кнопка LShift была зажата, а кнопка LCtrl как бы тыкалась постоянно через определенное кол-во миллисекунд, после того как я отпускаю кнопку C всё прекращается.</p><br /><br /><p>UPD: Сейчас пытаюсь что-то сделать, LCTRL она нажимается слишком слабо, как сделать чтобы она нажималась сильнее, а то получается слишком короткое нажатие.</p>]]></content>
			<author>
				<name><![CDATA[vlad.kosmicheskiy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39678</uri>
			</author>
			<updated>2018-12-11T13:45:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=130366#p130366</id>
		</entry>
</feed>
