<?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=9566</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9566&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Как узнать язык окна и задать его в переменную».]]></description>
		<lastBuildDate>Sun, 04 May 2014 16:11:48 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Как узнать язык окна и задать его в переменную]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=82656#p82656</link>
			<description><![CDATA[<p>Спасибо за ответы. Всё отлично работает.</p>]]></description>
			<author><![CDATA[null@example.com (Странникх)]]></author>
			<pubDate>Sun, 04 May 2014 16:11:48 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=82656#p82656</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как узнать язык окна и задать его в переменную]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=82637#p82637</link>
			<description><![CDATA[<p>Да, весь код надо в цикл.</p>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Sun, 04 May 2014 05:21:54 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=82637#p82637</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как узнать язык окна и задать его в переменную]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=82636#p82636</link>
			<description><![CDATA[<p>Присвоение InputLocaleID у Вас за циклом.<br />Получается, что язык определяется один раз, а потом каждые 100 мс проверяется, что за язык. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (многобанофф)]]></author>
			<pubDate>Sun, 04 May 2014 04:44:57 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=82636#p82636</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как узнать язык окна и задать его в переменную]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=82635#p82635</link>
			<description><![CDATA[<div class="codebox"><pre><code>hWnd := WinExist(&quot;A&quot;)
ThreadID := DllCall(&quot;GetWindowThreadProcessId&quot;, &quot;Ptr&quot;, hWnd, &quot;UInt&quot;, 0, &quot;Ptr&quot;)
InputLocaleID := DllCall(&quot;GetKeyboardLayout&quot;, &quot;Ptr&quot;, ThreadID, &quot;Ptr&quot;)

Loop
{
sleep, 100

If (InputLocaleID = 0x4090409)
    X = 2
Else If (InputLocaleID = 0x4190419)
    X = 1
Else
    X = 0

}
return

1::
MsgBox, X = %X%
return</code></pre></div><p>Что-то не так.. Можете отослать код с комментариями, чтобы разобраться в нем?</p>]]></description>
			<author><![CDATA[null@example.com (Странникх)]]></author>
			<pubDate>Sun, 04 May 2014 04:38:30 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=82635#p82635</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Как узнать язык окна и задать его в переменную]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=82634#p82634</link>
			<description><![CDATA[<p>Каждую миллисекунду — слишком часто. Определить язык активного окна можно так:<br /></p><div class="codebox"><pre><code>
hWnd := WinExist(&quot;A&quot;)
ThreadID := DllCall(&quot;GetWindowThreadProcessId&quot;, &quot;Ptr&quot;, hWnd, &quot;UInt&quot;, 0, &quot;Ptr&quot;)
InputLocaleID := DllCall(&quot;GetKeyboardLayout&quot;, &quot;Ptr&quot;, ThreadID, &quot;Ptr&quot;)
If (InputLocaleID = 0x4090409)
    X = 2
Else If (InputLocaleID = 0x4190419)
    X = 1
Else
    X = 0
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Sun, 04 May 2014 02:46:44 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=82634#p82634</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Как узнать язык окна и задать его в переменную]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=82633#p82633</link>
			<description><![CDATA[<p>Задача: если в окне язык английский, то переменная Х должна равняться 2, если язык стал русский, то Х=1. Проверка должна быть каждую милисекунду. Как это сделать?</p>]]></description>
			<author><![CDATA[null@example.com (Странникх)]]></author>
			<pubDate>Sun, 04 May 2014 00:56:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=82633#p82633</guid>
		</item>
	</channel>
</rss>
