<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: CapsLock мешает скрипту]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=17936&amp;type=atom" />
	<updated>2023-09-16T22:55:38Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=17936</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CapsLock мешает скрипту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159192#p159192" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> Все прекрасно работает, огромное вам спасибо.</p>]]></content>
			<author>
				<name><![CDATA[dizzlight]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43330</uri>
			</author>
			<updated>2023-09-16T22:55:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159192#p159192</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CapsLock мешает скрипту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159188#p159188" />
			<content type="html"><![CDATA[<p>Попробуйте так:<br /></p><div class="codebox"><pre><code>#UseHook
SetCapslockState, AlwaysOff

End::
   Suspend
   HotKey, CapsLock, % A_IsSuspended ? &quot;Off&quot; : &quot;On&quot;
   SetCapslockState, % A_IsSuspended ? &quot;Off&quot; : &quot;AlwaysOff&quot;
Return

CapsLock::
   While GetKeyState(&quot;CapsLock&quot;, &quot;P&quot;) {
      Send {CapsLock}
      Sleep 10
   }
Return

1::
   while GetKeyState(A_ThisHotkey, &quot;P&quot;) {
      Send % A_ThisHotkey
   }
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2023-09-16T21:52:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159188#p159188</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CapsLock мешает скрипту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159187#p159187" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> Чтобы включал и выключал ввод текста в верхнем регистре, а то если использовать скрипт на спам клавиши 1 то после нажатия END, CapsLock вообще перестает реагировать.</p>]]></content>
			<author>
				<name><![CDATA[dizzlight]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43330</uri>
			</author>
			<updated>2023-09-16T20:54:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159187#p159187</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CapsLock мешает скрипту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159181#p159181" />
			<content type="html"><![CDATA[<p>А что CapsLock должен делать после нажатия END?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2023-09-16T19:30:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159181#p159181</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CapsLock мешает скрипту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159180#p159180" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> Что бы CapsLock работал после нажатия END.</p>]]></content>
			<author>
				<name><![CDATA[dizzlight]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43330</uri>
			</author>
			<updated>2023-09-16T18:50:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159180#p159180</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CapsLock мешает скрипту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159177#p159177" />
			<content type="html"><![CDATA[<p>Что он должен делать?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2023-09-16T00:58:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159177#p159177</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CapsLock мешает скрипту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159176#p159176" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> А что можно добавить к скрипту чтобы CapsLock работал после нажатия END?</p>]]></content>
			<author>
				<name><![CDATA[dizzlight]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43330</uri>
			</author>
			<updated>2023-09-15T21:03:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159176#p159176</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CapsLock мешает скрипту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159175#p159175" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>dizzlight пишет:</cite><blockquote><p>нажать END чтобы отключить AHK то CapsLock не работает вообще</p></blockquote></div><p>Ну да, мы же его отключаем тоже. Как именно он должен работать?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2023-09-15T20:58:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159175#p159175</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CapsLock мешает скрипту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159167#p159167" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> Прошу прощения, изменил.</p>]]></content>
			<author>
				<name><![CDATA[dizzlight]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43330</uri>
			</author>
			<updated>2023-09-15T14:18:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159167#p159167</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CapsLock мешает скрипту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159166#p159166" />
			<content type="html"><![CDATA[<p><strong>dizzlight</strong>, пользуйтесь тегом code для оформления кода.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2023-09-15T13:03:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159166#p159166</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CapsLock мешает скрипту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159164#p159164" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> Вот этот скрипт если поспамить 1 а потом нажать END чтобы отключить AHK то CapsLock не работает вообще, с остальными комбинациями все хорошо.</p><div class="codebox"><pre><code>#UseHook
1::
SetCapsLockState AlwaysOFF
while GetKeyState(A_ThisHotkey, &quot;P&quot;)
   Send % A_ThisHotkey
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[dizzlight]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43330</uri>
			</author>
			<updated>2023-09-15T10:10:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159164#p159164</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CapsLock мешает скрипту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159163#p159163" />
			<content type="html"><![CDATA[<p>Ну, горячие клавиши так устроены, что работают только с теми комбинациями, которые изначально прописаны. Когда спамится какая-то ещё клавиша, то получается, что она добавляется в комбинацию, и горячие клавиши могут перестать работать. Иногда это можно обойти, но нужно разбираться с каждым случаем в отдельности.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2023-09-14T21:53:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159163#p159163</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CapsLock мешает скрипту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159161#p159161" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> Когда нажимаю END то CapsLock работает как обычно это то что я и хотел, но как только я нажму спам другой клавиши то CapsLock опять перестает работать когда я нажимаю END.</p>]]></content>
			<author>
				<name><![CDATA[dizzlight]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43330</uri>
			</author>
			<updated>2023-09-14T21:27:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159161#p159161</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CapsLock мешает скрипту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159154#p159154" />
			<content type="html"><![CDATA[<p>Как-то так, наверно:<br /></p><div class="codebox"><pre><code>#UseHook
End::
   Suspend
   HotKey, CapsLock, % A_IsSuspended ? &quot;Off&quot; : &quot;On&quot;
Return

CapsLock::
   While GetKeyState(&quot;CapsLock&quot;, &quot;P&quot;) {
      Send {CapsLock}
      Sleep 10
   }
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2023-09-14T02:12:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159154#p159154</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CapsLock мешает скрипту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159153#p159153" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> Да это то что надо, спасибо.</p><p>У меня есть скрип на отключение скрипта по кнопке и когда я отключаю скрипт то CapsLock перестает работать.</p><div class="codebox"><pre><code>END::Suspend Toggle ; вкл/выкл</code></pre></div><p>А это сам скрипт на спам CapsLock.</p><div class="codebox"><pre><code>capslock::
   While GetKeyState(&quot;capslock&quot;, &quot;P&quot;)
	Send {capslock}
	Sleep 1
Return</code></pre></div><p>Что добавить или изменить чтобы при отключение скрипта CapsLock работал.</p>]]></content>
			<author>
				<name><![CDATA[dizzlight]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43330</uri>
			</author>
			<updated>2023-09-13T21:29:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159153#p159153</id>
		</entry>
</feed>
