<?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=6252&amp;type=atom" />
	<updated>2011-09-26T00:52:32Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6252</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: код украинского языка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51854#p51854" />
			<content type="html"><![CDATA[<p>Определение идентификатора раскладки:<br /></p><div class="codebox"><pre><code>F11::
  SetFormat, Integer, H
  WinGet, WinID,, A
  ThreadID:=DllCall(&quot;GetWindowThreadProcessId&quot;, &quot;Int&quot;, WinID, &quot;Int&quot;, &quot;0&quot;)
  InputLocaleID:=DllCall(&quot;GetKeyboardLayout&quot;, &quot;Int&quot;, ThreadID)
  MsgBox, %InputLocaleID%
Exit</code></pre></div><p>Перейти в интересующую раскладку и нажать f11.</p>]]></content>
			<author>
				<name><![CDATA[mih]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24883</uri>
			</author>
			<updated>2011-09-26T00:52:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51854#p51854</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: код украинского языка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51846#p51846" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Вадим пишет:</cite><blockquote><p>SendMessage,0x50,,0x4190419,,A - переключить на рус<br />SendMessage,0x50,,0x4090409,,A - переключить на англ?<br />1) Как на укр?)<br />2) как это (0x50,,0x4090409) узнают? Есть какая-то программа?</p></blockquote></div><p>1) SendMessage,0x50,,0x422,,A ,старшее слово можно не выставлять.<br />2) <a href="http://msdn.microsoft.com/en-us/library/dd318693%28v=VS.85%29.aspx">Здесь</a> самый левый столбик, обычно этого хватит. Полное описание <a href="http://msdn.microsoft.com/en-us/library/ms632630%28v=VS.85%29.aspx">тут</a> и далее по ссылкам(там какой-то огород из макросов, получится что-то типа MAKELCID(MAKELANGID(LANG_XXX, SUBLANG_XXX_YYY), SORT_DEFAULT)- разберёмся если нужно будет <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> ).<br />Посмотрел макросы, похоже всё просто:<br /></p><div class="codebox"><pre><code>#define MAKELANGID(p, s) ((((WORD) (s)) &lt;&lt; 10) | (WORD) (p))</code></pre></div><p>например смена на норвежскую раскладку:<br /></p><div class="codebox"><pre><code>WM_INPUTLANGCHANGEREQUEST := 0x50 ; сообщение
LANG_SAMI                 := 0x3B ; Primary language
SUBLANG_SAMI_SKOLT_FINLAND:= 0x08 ; Sublanguage

MAKELANGID( p, s)
{
   return (s &lt;&lt; 10) | p
}
; сменить активному окну раскладку на финскую
SendMessage,WM_INPUTLANGCHANGEREQUEST,,MAKELANGID(LANG_SAMI,SUBLANG_SAMI_SKOLT_FINLAND),,A</code></pre></div><p>Если раскладка в системе не установлена, то её можно загрузить через LoadKeyboardLayout</p>]]></content>
			<author>
				<name><![CDATA[Александр_]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24888</uri>
			</author>
			<updated>2011-09-25T18:40:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51846#p51846</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: код украинского языка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51844#p51844" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>Вадим</strong>, читаем первую тему на странице, редактируем пост и заголовок.</span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-09-25T18:09:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51844#p51844</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: код украинского языка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51838#p51838" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>SendMessage,0x50,,0x4190419,,A - переключить на рус
SendMessage,0x50,,0x4090409,,A - переключить на англ?</code></pre></div><p>1) Как на укр?)<br />2) как это (0x50,,0x4090409) узнают? Есть какая-то программа?</p>]]></content>
			<author>
				<name><![CDATA[Вадим]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27175</uri>
			</author>
			<updated>2011-09-25T17:11:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51838#p51838</id>
		</entry>
</feed>
