<?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=7912&amp;type=atom" />
	<updated>2012-12-26T03:55:14Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=7912</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка русских букв в НЕрусской раскладке.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67884#p67884" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Pokerist пишет:</cite><blockquote><p>Вопрос по кодам русских клавиш остался.</p></blockquote></div><p>Можно на время переключать окно на русский, потом обратно. Вот так работает вызов пункта &quot;Файл - Сохранить как&quot; в Блокноте (если его окно активно).<br /></p><div class="codebox"><pre><code>
Ru = 0x419
En = 0x409

F11::
    Lang := GetLang()
    If (Lang = En) {
        PostMessage, 0x50,, Ru,, A
        Sleep, 200
    }
    Send, {Alt Down}фк{Alt Up}
    PostMessage, 0x50,, Lang,, A
Return

GetLang()
{
    hWnd := WinExist(&quot;A&quot;)
    ThreadID := DllCall(&quot;GetWindowThreadProcessId&quot;, Ptr, hWnd, UInt, 0, Ptr)
    Return DllCall(&quot;GetKeyboardLayout&quot;, Ptr, ThreadID, UShort)
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2012-12-26T03:55:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67884#p67884</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка русских букв в НЕрусской раскладке.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67880#p67880" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Irbis пишет:</cite><blockquote><p>Делай &quot;1&quot;, делай &quot;2&quot; <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /><br />по хоткею Alt+цифра, в моем случае - Alt+4</p></blockquote></div><p>&nbsp; Тоже выход, спасибо.</p><br /><p>Вопрос по кодам русских клавиш остался.</p>]]></content>
			<author>
				<name><![CDATA[Pokerist]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24990</uri>
			</author>
			<updated>2012-12-25T22:42:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67880#p67880</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка русских букв в НЕрусской раскладке.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67874#p67874" />
			<content type="html"><![CDATA[<p><span style="color: #008800"><strong>Pokerist</strong>, ознакомься с <a href="http://forum.script-coding.com/viewtopic.php?id=6148">этой</a> темой, отредактируй заголовок.</span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2012-12-25T18:47:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67874#p67874</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка русских букв в НЕрусской раскладке.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67871#p67871" />
			<content type="html"><![CDATA[<p>Делай &quot;1&quot;, делай &quot;2&quot; <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /><br />После добавления иконки на панель быстрого доступа сохранить в *.jpg можно по хоткею Alt+цифра, в моем случае - Alt+4<br /><a href="http://savepic.ru/3731852.htm"><span class="postimg"><img src="http://savepic.ru/3731852m.png" alt="http://savepic.ru/3731852m.png" /></span></a></p>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2012-12-25T18:12:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67871#p67871</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка русских букв в НЕрусской раскладке.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67865#p67865" />
			<content type="html"><![CDATA[<p>Кстати, ErrorLevel после WinMenuSelectItem равен 1.</p>]]></content>
			<author>
				<name><![CDATA[Pokerist]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24990</uri>
			</author>
			<updated>2012-12-25T17:25:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67865#p67865</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка русских букв в НЕрусской раскладке.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67864#p67864" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>creature.ws пишет:</cite><blockquote><p><a href="http://l.autohotkey.net/docs/commands/WinMenuSelectItem.htm">WinMenuSelectItem</a></p></blockquote></div><p> Я так и пытался сначала, когда не смог поймать нужный код WM_COMMAND, но почему-то тоже не получилось.&nbsp; Вот фрагмент кода с форума, который я пытаюсь приспособить.</p><div class="codebox"><pre><code>

^t::
clip_save := ClipboardAll ; сохраняем клипбоард 
ClipWait, 1
Send, {AltDown}{PRINTSCREEN}{AltUp} ; снимок окна 
;создаём пустой файл
name_f = %A_Now%
FileAppend,, D:\test\%name_f%.jpg

;открываем пустой файл в скрытом окне Paint
Run, mspaint D:\test\%name_f%.jpg
;ждём запуска Paint
WinWait, %name_f%.jpg - Paint

;команда меню &quot;Правка&quot; - &quot;Вставить&quot;
PostMessage, 0x111, 57637, 0, , %name_f%.jpg - Paint

WinMenuSelectItem, %name_f%.jpg - Paint,, 1&amp;, 4&amp;,2&amp;
return


</code></pre></div><br /><p>Вот картинки.<br /><span class="postimg"><img src="http://data1.floomby.com/files/share/25_12_2012/Wsb47Jwv5kmgBqolSzqTpQ.png" alt="http://data1.floomby.com/files/share/25_12_2012/Wsb47Jwv5kmgBqolSzqTpQ.png" /></span></p><p><span class="postimg"><img src="http://data1.floomby.com/files/share/25_12_2012/rvIMacveyUypBH4GAd8YhQ.png" alt="http://data1.floomby.com/files/share/25_12_2012/rvIMacveyUypBH4GAd8YhQ.png" /></span></p><p> Всё срабатывает вплоть до&nbsp; WinMenuSelectItem.&nbsp; Что я в него не так вписал?</p><br /><br /><p>И, кроме этого, всё-таки очень хотелось бы знать ответ и на вопрос о кодах.<br /> Спасибо!</p>]]></content>
			<author>
				<name><![CDATA[Pokerist]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24990</uri>
			</author>
			<updated>2012-12-25T16:23:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67864#p67864</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка русских букв в НЕрусской раскладке.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67856#p67856" />
			<content type="html"><![CDATA[<p><a href="http://l.autohotkey.net/docs/commands/WinMenuSelectItem.htm">WinMenuSelectItem</a></p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-12-25T13:48:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67856#p67856</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка русских букв в НЕрусской раскладке.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67847#p67847" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><div class="codebox"><pre><code>Send, {AltDown}{vk43}{AltUp}</code></pre></div><p>Так тут ошибка<br /></p><div class="codebox"><pre><code>Send, {Alt Down}{vk43}{Alt Up}</code></pre></div><p>Но наверно проще:<br /></p><div class="codebox"><pre><code>Send, !{vk43} </code></pre></div></blockquote></div><p>&nbsp; Не работает. <img src="//forum.script-coding.com/img/smilies/sad.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Pokerist]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24990</uri>
			</author>
			<updated>2012-12-25T13:10:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67847#p67847</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка русских букв в НЕрусской раскладке.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67846#p67846" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>wisgest пишет:</cite><blockquote><p>Почему не <strong>Ctrl-S</strong>?</p></blockquote></div><p>&nbsp; Я сохраняю как jpg.</p>]]></content>
			<author>
				<name><![CDATA[Pokerist]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24990</uri>
			</author>
			<updated>2012-12-25T13:08:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67846#p67846</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка русских букв в НЕрусской раскладке.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67845#p67845" />
			<content type="html"><![CDATA[<p>Почему не <strong>Ctrl-S</strong>?</p>]]></content>
			<author>
				<name><![CDATA[wisgest]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=3850</uri>
			</author>
			<updated>2012-12-25T12:56:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67845#p67845</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка русских букв в НЕрусской раскладке.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67844#p67844" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Send, {AltDown}{vk43}{AltUp}</code></pre></div><p>Так тут ошибка<br /></p><div class="codebox"><pre><code>Send, {Alt Down}{vk43}{Alt Up}</code></pre></div><p>Но наверно проще:<br /></p><div class="codebox"><pre><code>Send, !{vk43} </code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2012-12-25T12:55:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67844#p67844</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Отправка русских букв в НЕрусской раскладке.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67843#p67843" />
			<content type="html"><![CDATA[<p>Нужно отправить в Paint&nbsp; в русском Windows на запрос <strong><span class="bbu">С</span>охранить</strong> отправить&nbsp; ALT + русскую <strong>С</strong>.<br />Send, {AltDown}{vk43}{AltUp} не срабатывает, наверное потому, что раскладка по умолчанию НЕрусская и отсылка идёт латинской <strong>С</strong>.</p><p>Если вместо vk43 втавить русскую <strong>с</strong>, то тоже не срабатывает. </p><p>Как вообще <strong>правильно</strong> делаются такие вещи?</p>]]></content>
			<author>
				<name><![CDATA[Pokerist]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24990</uri>
			</author>
			<updated>2012-12-25T12:24:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67843#p67843</id>
		</entry>
</feed>
