<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Windows 10]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=11573&amp;type=atom" />
	<updated>2016-05-09T20:58:47Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=11573</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Windows 10]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=103602#p103602" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>,спасибо!</p>]]></content>
			<author>
				<name><![CDATA[sabir.yanin2014]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33790</uri>
			</author>
			<updated>2016-05-09T20:58:47Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=103602#p103602</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Windows 10]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=103599#p103599" />
			<content type="html"><![CDATA[<p>0x4190419</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-05-09T20:15:42Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=103599#p103599</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Windows 10]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=103598#p103598" />
			<content type="html"><![CDATA[<p>Может 0x4090419 не правильный номер для русского пакета так как это работает:<br /></p><div class="codebox"><pre><code>
z::
ControlGetFocus, CtrlFocus, % &quot;ahk_id&quot; WinExist(&quot;A&quot;)
PostMessage, 0x50, 0, 0x4090409, %CtrlFocus% ;смена на английский
Return 
 </code></pre></div><p>А вот это нет:<br /></p><div class="codebox"><pre><code>
v::
ControlGetFocus, CtrlFocus, % &quot;ahk_id&quot; WinExist(&quot;A&quot;)
PostMessage, 0x50, 0, 0x4090419, %CtrlFocus% ;смена на русский
Return 
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[sabir.yanin2014]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33790</uri>
			</author>
			<updated>2016-05-09T19:47:48Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=103598#p103598</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Windows 10]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=103595#p103595" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong>, работает!<br />Но я хотел запустить свой переводчик-часть кода:<br /></p><div class="codebox"><pre><code>
If DllCall(&quot;GetKeyboardLayout&quot;, &quot;Int&quot;, DllCall(&quot;GetWindowThreadProcessId&quot;, &quot;Int&quot;, WinExist(&quot;A&quot;), &quot;Int&quot;, &quot;0&quot;)) = 0x4190419
PostMessage, 0x50, 0, 0x4090409,, A ;английский
Else
PostMessage, 0x50, 0, 0x4190419,, A ;русский
</code></pre></div><p>по вашему способу:<br /></p><div class="codebox"><pre><code>
If DllCall(&quot;GetKeyboardLayout&quot;, &quot;Int&quot;, DllCall(&quot;GetWindowThreadProcessId&quot;, &quot;Int&quot;, WinExist(&quot;A&quot;), &quot;Int&quot;, &quot;0&quot;))=0x4190419
{
ControlGetFocus, CtrlFocus, % &quot;ahk_id&quot; WinExist(&quot;A&quot;)
PostMessage, 0x50, 0, 0x4090409, %CtrlFocus% ;английский
}
else
{
ControlGetFocus, CtrlFocus, % &quot;ahk_id&quot; WinExist(&quot;A&quot;)
PostMessage, 0x50, 0, 0x4090419, %CtrlFocus% ;русский
}
</code></pre></div><p>Не работает. C русского на английский меняет раскладку, а наоборот не хочет.<br />DllCall язык определяет:<br /></p><div class="codebox"><pre><code>
If DllCall(&quot;GetKeyboardLayout&quot;, &quot;Int&quot;, DllCall(&quot;GetWindowThreadProcessId&quot;, &quot;Int&quot;, WinExist(&quot;A&quot;), &quot;Int&quot;, &quot;0&quot;)) = 0x4190419
MsgBox  русский
Else
MsgBox  английский
</code></pre></div><p>Может подскажете что я не так делаю?</p>]]></content>
			<author>
				<name><![CDATA[sabir.yanin2014]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33790</uri>
			</author>
			<updated>2016-05-09T18:52:04Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=103595#p103595</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Windows 10]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=103594#p103594" />
			<content type="html"><![CDATA[<p>Смежный вопрос: <a href="http://forum.script-coding.com/viewtopic.php?id=11549">Действия внутри приложения Windows 10</a></p>]]></content>
			<author>
				<name><![CDATA[becauseim]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33149</uri>
			</author>
			<updated>2016-05-09T18:45:36Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=103594#p103594</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Windows 10]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=103590#p103590" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>sabir.yanin2014 пишет:</cite><blockquote><p>Предлагаю создать тему посвященную работе AHK в среде Windows 10</p></blockquote></div><p>Вы это уже сделали, а так да, проблем очень много. Новые скрипты конечно надо тестировать в первую очередь на 10-ке, правда наверняка она меньше чем у половины <span class="bbu">активных пользователей</span> этого ресурса.<br /></p><div class="quotebox"><cite>sabir.yanin2014 пишет:</cite><blockquote><p>Вот пример</p></blockquote></div><p>А так работает?<br /></p><div class="codebox"><pre><code>ControlGetFocus, CtrlFocus, % &quot;ahk_id&quot; WinExist(&quot;A&quot;)
PostMessage, 0x50, 0, 0x4090409, %CtrlFocus% 
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2016-05-09T18:02:51Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=103590#p103590</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Windows 10]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=103589#p103589" />
			<content type="html"><![CDATA[<p>Предлагаю создать тему посвященную работе AHK в среде Windows 10.&nbsp; Думаю что меня поддержат многие, так как операционка новая и старые скрипты не очень то хотят в ней работать. <br />	Вот пример: переключение языка раскладки с помощью PostMessage. В Windows 10 почему то не работают команды:<br /></p><div class="codebox"><pre><code>
PostMessage, 0x50, 0, 0x4090409,, A ;английский
PostMessage, 0x50, 0, 0x4190419,, A ;русский
</code></pre></div><p>Кто нибудь знает как решить проблему?</p>]]></content>
			<author>
				<name><![CDATA[sabir.yanin2014]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33790</uri>
			</author>
			<updated>2016-05-09T17:51:19Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=103589#p103589</id>
		</entry>
</feed>
