<?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=8275&amp;type=atom" />
	<updated>2013-05-06T13:38:52Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8275</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отключение одной клавиши при нажатии другой клавиши.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=71943#p71943" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>s=0 ;по умолчанию CapsLock выключен

+CapsLock::
if s = 0
{
 SetCapsLockState, on
 s = 1
 return
}
if s = 1
{
 SetCapsLockState, off
 s = 0
 return
}
return</code></pre></div><p>Эм... недосмотрел. Не знаю откуда это и почему я это написал, но это и НЕ ДОЛЖНО РАБОТАТЬ.</p>]]></content>
			<author>
				<name><![CDATA[Nox_The_Great]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30084</uri>
			</author>
			<updated>2013-05-06T13:38:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=71943#p71943</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отключение одной клавиши при нажатии другой клавиши.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=71923#p71923" />
			<content type="html"><![CDATA[<p>Залипает LShift.<br />Но так как мне достаточно что бы здесь две любых клавиши работали по LShift. То сделал:<br /></p><div class="codebox"><pre><code>*LShift:: 
if GetKeyState(&quot;LShift&quot;, &quot;P&quot;) 
 SendInput {AppsKey Down} 
sleep 1000
if GetKeyState(&quot;LShift&quot;, &quot;P&quot;)  
 SendInput {RShift Down}
Return

*LShift Up::
SendInput {AppsKey Up}
SendInput {RShift Up}
Return</code></pre></div><p>И все работает.</p><p>А вот:<br /></p><div class="codebox"><pre><code>s=0 ;по умолчанию CapsLock выключен

+CapsLock::
if s = 0
{
 SetCapsLockState, on
 s = 1
 return
}
if s = 1
{
 SetCapsLockState, off
 s = 0
 return
}
return</code></pre></div><p>Не работает. CapsLock только залипает и все.</p>]]></content>
			<author>
				<name><![CDATA[Andrey3242]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29933</uri>
			</author>
			<updated>2013-05-06T02:05:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=71923#p71923</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отключение одной клавиши при нажатии другой клавиши.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=71906#p71906" />
			<content type="html"><![CDATA[<p>Может так?<br /></p><div class="codebox"><pre><code>*LShift::
if GetKeyState(&quot;LShift&quot;, &quot;P&quot;) 
 SendInput {RShift Down}   
sleep 1000
if GetKeyState(&quot;LShift&quot;, &quot;P&quot;)  
 SendInput {LShift Down}
Return

*LShift Up::
SendInput {LShift Up}
SendInput {RShift Up}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Nox_The_Great]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30084</uri>
			</author>
			<updated>2013-05-05T11:08:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=71906#p71906</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отключение одной клавиши при нажатии другой клавиши.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=71904#p71904" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>То есть замена срабатывала как при нажатии правого так и при нажатии левого? В таком случае вместо</p></blockquote></div><p>Нет, что бы по LShift, помимо LShift с задержкой еще и RShift без задержки включался и выключался.</p>]]></content>
			<author>
				<name><![CDATA[Andrey3242]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29933</uri>
			</author>
			<updated>2013-05-05T10:54:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=71904#p71904</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отключение одной клавиши при нажатии другой клавиши.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=71900#p71900" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Надо что бы при одновременном нажатии и удержании CapsLock и LShift, CapsLock работала как CapsLock, а LShift не работала как будто её и не нажимали.</p></blockquote></div><div class="codebox"><pre><code>s=0 ;по умолчанию CapsLock выключен

+CapsLock::
if s = 0
{
 SetCapsLockState, on
 s = 1
 return
}
if s = 1
{
 SetCapsLockState, off
 s = 0
 return
}
return</code></pre></div><p>На сколько я знаю, то в таком случае shift посылаться не будет</p>]]></content>
			<author>
				<name><![CDATA[Nox_The_Great]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30084</uri>
			</author>
			<updated>2013-05-05T10:13:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=71900#p71900</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отключение одной клавиши при нажатии другой клавиши.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=71899#p71899" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>по LShift работала и RShift</p></blockquote></div><p>То есть замена срабатывала как при нажатии правого так и при нажатии левого? В таком случае вместо <br /></p><div class="codebox"><pre><code>LShift::
</code></pre></div><p>используй<br /></p><div class="codebox"><pre><code>+::</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Nox_The_Great]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30084</uri>
			</author>
			<updated>2013-05-05T10:02:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=71899#p71899</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Отключение одной клавиши при нажатии другой клавиши.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=71837#p71837" />
			<content type="html"><![CDATA[<p>Надо что бы при одновременном нажатии и удержании CapsLock и LShift, CapsLock работала как CapsLock, а LShift не работала как будто её и не нажимали.</p><p>Еще просьба по одному скрипту: Клавиша LShift при её нажатии и удержании начинает работать через секунду, а при отпускании сразу прекращает работу. <br /></p><div class="codebox"><pre><code>*LShift::
   sleep 1000
   if GetKeyState(&quot;LShift&quot;, &quot;P&quot;)
      SendInput {LShift Down}
Return
*LShift Up:: SendInput {LShift Up}</code></pre></div><p>Надо что бы вдобавок по LShift работала и RShift обыкновенно без всяких задержек.</p>]]></content>
			<author>
				<name><![CDATA[Andrey3242]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29933</uri>
			</author>
			<updated>2013-05-03T08:27:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=71837#p71837</id>
		</entry>
</feed>
