<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Обратный слэш вводит разные слэши в разных раскладках.]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=17531</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=17531&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Обратный слэш вводит разные слэши в разных раскладках.».]]></description>
		<lastBuildDate>Fri, 06 Jan 2023 12:09:50 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Обратный слэш вводит разные слэши в разных раскладках.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=156196#p156196</link>
			<description><![CDATA[<p>Спасибо большое, скрипт идеально работает.</p>]]></description>
			<author><![CDATA[null@example.com (Lortrum)]]></author>
			<pubDate>Fri, 06 Jan 2023 12:09:50 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=156196#p156196</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Обратный слэш вводит разные слэши в разных раскладках.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=156155#p156155</link>
			<description><![CDATA[<p>Попробуйте так:<br /></p><div class="codebox"><pre><code>#If GetLocale() = &quot;ru&quot;
 \:: Send {Text}/
+\:: Send {Text}\
#If

GetLocale() {
   ThreadID := DllCall(&quot;GetWindowThreadProcessId&quot;, &quot;Ptr&quot;, WinExist(&quot;A&quot;), &quot;Ptr&quot;, 0)
   Return {0x409: &quot;en&quot;, 0x419: &quot;ru&quot;}[DllCall(&quot;GetKeyboardLayout&quot;, &quot;UInt&quot;, ThreadID) &amp; 0xFFFF]
}</code></pre></div><div class="quotebox"><cite>Lortrum пишет:</cite><blockquote><p>скрипт пытается запустить себя сам вместо того чтобы ввести символ.</p></blockquote></div><p>Для предотвращения такого поведения читайте #UseHook.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 31 Dec 2022 15:06:30 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=156155#p156155</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Обратный слэш вводит разные слэши в разных раскладках.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=156154#p156154</link>
			<description><![CDATA[<p>С наступающим вас!</p><p>Есть цель, чтобы в русской раскладке клавиша &quot;обратный слэш&quot; вводила обычный слэш, и с шифтом вводила обратный, а в английской раскладке ничего бы не менялось. Как такое сделать?</p><p>Пока-что есть такая наработка:</p><div class="codebox"><pre><code>;0x4090409 - ENG
;0x4190419 - RUS
\::
  SetFormat, Integer, H
  WinGet, WinID,, A
  ThreadID:=DllCall(&quot;GetWindowThreadProcessId&quot;, &quot;UInt&quot;, WinID, &quot;UInt&quot;, 0)
  InputLocaleID:=DllCall(&quot;GetKeyboardLayout&quot;, &quot;UInt&quot;, ThreadID, &quot;UInt&quot;)
  ;MsgBox, %InputLocaleID%

  If InputLocaleID = 0x4090409
    ;MsgBox, ENG
    Send, \
  If InputLocaleID = 0x4190419
    ;MsgBox, RUS
    Send, /
Return</code></pre></div><p>но в ней обратный слэш в английской раскладке не срабатывает. Видимо, скрипт пытается запустить себя сам вместо того чтобы ввести символ.</p>]]></description>
			<author><![CDATA[null@example.com (Lortrum)]]></author>
			<pubDate>Sat, 31 Dec 2022 14:36:04 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=156154#p156154</guid>
		</item>
	</channel>
</rss>
