<?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=7912</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=7912&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Отправка русских букв в НЕрусской раскладке.».]]></description>
		<lastBuildDate>Wed, 26 Dec 2012 03:55:14 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Отправка русских букв в НЕрусской раскладке.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=67884#p67884</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Wed, 26 Dec 2012 03:55:14 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=67884#p67884</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Отправка русских букв в НЕрусской раскладке.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=67880#p67880</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Pokerist)]]></author>
			<pubDate>Tue, 25 Dec 2012 22:42:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=67880#p67880</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Отправка русских букв в НЕрусской раскладке.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=67874#p67874</link>
			<description><![CDATA[<p><span style="color: #008800"><strong>Pokerist</strong>, ознакомься с <a href="http://forum.script-coding.com/viewtopic.php?id=6148">этой</a> темой, отредактируй заголовок.</span></p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Tue, 25 Dec 2012 18:47:42 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=67874#p67874</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Отправка русских букв в НЕрусской раскладке.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=67871#p67871</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Irbis)]]></author>
			<pubDate>Tue, 25 Dec 2012 18:12:40 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=67871#p67871</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Отправка русских букв в НЕрусской раскладке.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=67865#p67865</link>
			<description><![CDATA[<p>Кстати, ErrorLevel после WinMenuSelectItem равен 1.</p>]]></description>
			<author><![CDATA[null@example.com (Pokerist)]]></author>
			<pubDate>Tue, 25 Dec 2012 17:25:19 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=67865#p67865</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Отправка русских букв в НЕрусской раскладке.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=67864#p67864</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Pokerist)]]></author>
			<pubDate>Tue, 25 Dec 2012 16:23:58 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=67864#p67864</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Отправка русских букв в НЕрусской раскладке.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=67856#p67856</link>
			<description><![CDATA[<p><a href="http://l.autohotkey.net/docs/commands/WinMenuSelectItem.htm">WinMenuSelectItem</a></p>]]></description>
			<author><![CDATA[null@example.com (creature.ws)]]></author>
			<pubDate>Tue, 25 Dec 2012 13:48:45 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=67856#p67856</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Отправка русских букв в НЕрусской раскладке.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=67847#p67847</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Pokerist)]]></author>
			<pubDate>Tue, 25 Dec 2012 13:10:24 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=67847#p67847</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Отправка русских букв в НЕрусской раскладке.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=67846#p67846</link>
			<description><![CDATA[<div class="quotebox"><cite>wisgest пишет:</cite><blockquote><p>Почему не <strong>Ctrl-S</strong>?</p></blockquote></div><p>&nbsp; Я сохраняю как jpg.</p>]]></description>
			<author><![CDATA[null@example.com (Pokerist)]]></author>
			<pubDate>Tue, 25 Dec 2012 13:08:42 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=67846#p67846</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Отправка русских букв в НЕрусской раскладке.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=67845#p67845</link>
			<description><![CDATA[<p>Почему не <strong>Ctrl-S</strong>?</p>]]></description>
			<author><![CDATA[null@example.com (wisgest)]]></author>
			<pubDate>Tue, 25 Dec 2012 12:56:12 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=67845#p67845</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Отправка русских букв в НЕрусской раскладке.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=67844#p67844</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Tue, 25 Dec 2012 12:55:18 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=67844#p67844</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Отправка русских букв в НЕрусской раскладке.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=67843#p67843</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Pokerist)]]></author>
			<pubDate>Tue, 25 Dec 2012 12:24:03 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=67843#p67843</guid>
		</item>
	</channel>
</rss>
