<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: посылка в окно символов в кодировке Unicode]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=597&amp;type=atom" />
	<updated>2007-08-14T10:02:19Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=597</id>
		<entry>
			<title type="html"><![CDATA[AHK: посылка в окно символов в кодировке Unicode]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=3990#p3990" />
			<content type="html"><![CDATA[<p>Скрипт взят на форуме AutoHotkey в теме <a href="http://www.autohotkey.com/forum/topic17848.html">Inserting unicode special characters</a></p><p>В данном примере он при нажатии на F11 посылает в окно математический знак &quot;больше или равно&quot; ( <strong>&amp;#8805;</strong> , код символа 0x2265). Окно должно поддерживать отображение символов в юникоде, кроме того используемый шрифт должен содержать символ с таким кодом. Коды символов для разных шрифтов можно посмотреть во встроенной в Windows программе Таблица символов (Главное меню\Все программы\Стандартные\Служебные).</p><div class="codebox"><pre><code>F11::
  SendUnicodeChar(0x2265)
Return 

SendUnicodeChar(charCode) 
{ 
   VarSetCapacity(ki, 28 * 2, 0) 
   EncodeInteger(&amp;ki + 0, 1) 
   EncodeInteger(&amp;ki + 6, charCode) 
   EncodeInteger(&amp;ki + 8, 4) 
   EncodeInteger(&amp;ki +28, 1) 
   EncodeInteger(&amp;ki +34, charCode) 
   EncodeInteger(&amp;ki +36, 4|2) 

   DllCall(&quot;SendInput&quot;, &quot;UInt&quot;, 2, &quot;UInt&quot;, &amp;ki, &quot;Int&quot;, 28) 
} 

EncodeInteger(ref, val) 
{ 
   DllCall(&quot;ntdll\RtlFillMemoryUlong&quot;, &quot;Uint&quot;, ref, &quot;Uint&quot;, 4, &quot;Uint&quot;, val) 
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2007-08-14T10:02:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=3990#p3990</id>
		</entry>
</feed>
