<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Send Unicode]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=13643</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13643&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Send Unicode».]]></description>
		<lastBuildDate>Sat, 21 Apr 2018 10:10:39 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Send Unicode]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124840#p124840</link>
			<description><![CDATA[<p>Был уверен, что какой-то простой способ есть, но не вспонил. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 21 Apr 2018 10:10:39 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124840#p124840</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Send Unicode]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124837#p124837</link>
			<description><![CDATA[<p>А зачем так сложно?<br /></p><div class="codebox"><pre><code>f1::
send, {U+1F4B8}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Sat, 21 Apr 2018 09:01:45 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124837#p124837</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Send Unicode]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124834#p124834</link>
			<description><![CDATA[<p>Можно через буфер обмена:<br /></p><div class="codebox"><pre><code>symHex := { MoneyWithWings: &quot;D83DDCB8&quot;
          , Dizzy:          &quot;D83DDCAB&quot;
          , Flag:           &quot;D83DDEA9&quot; }

$F1::
   if SetUnicodeFromHexToClipboard(symHex.MoneyWithWings)
      Send, ^{vk56}
   Return
   
$F2::
   if SetUnicodeFromHexToClipboard(symHex.Dizzy)
      Send, ^{vk56}
   Return
   
$F3::
   if SetUnicodeFromHexToClipboard(symHex.Flag)
      Send, ^{vk56}
   Return

SetUnicodeFromHexToClipboard(hex)  {
   static GMEM_ZEROINIT := 0x40, GMEM_MOVEABLE := 0x2, CF_UNICODETEXT := 13
   if mod(StrLen(hex), 4) || RegExMatch(hex, &quot;i)[^\dA-F]&quot;)  {
      MsgBox, Wrong hex!
      Return
   }
   if !DllCall(&quot;OpenClipboard&quot;, Ptr, A_ScriptHwnd)  {
      MsgBox, Failed to open Clipboard!
      Return
   }
   DllCall(&quot;EmptyClipboard&quot;)
   hMem := DllCall(&quot;GlobalAlloc&quot;, UInt, GMEM_ZEROINIT|GMEM_MOVEABLE, Ptr, StrLen(hex)//2 + 2, Ptr)
   pMem := DllCall(&quot;GlobalLock&quot;, Ptr, hMem, Ptr)
   
   while str := SubStr(hex, 1 + (A_Index - 1)*4, 4)
      NumPut(&quot;0x&quot; . str, pMem + (A_Index - 1)*2, &quot;UShort&quot;)
   
   DllCall(&quot;GlobalUnlock&quot;, Ptr, hMem)
   res := DllCall(&quot;SetClipboardData&quot;, UInt, CF_UNICODETEXT, Ptr, hMem, Ptr)
   DllCall(&quot;CloseClipboard&quot;)
   if !res  {
      MsgBox, Failed to set data to Clipboard!
      Return
   }
   Return true
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 21 Apr 2018 03:19:47 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124834#p124834</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Send Unicode]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124832#p124832</link>
			<description><![CDATA[<p>Привет народ.<br />Есть такая задача, заставить выводить unicode символы, пример - <a href="https://emojipedia.org/money-with-wings/">https://emojipedia.org/money-with-wings/</a></p>]]></description>
			<author><![CDATA[null@example.com (sememix)]]></author>
			<pubDate>Fri, 20 Apr 2018 22:26:19 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124832#p124832</guid>
		</item>
	</channel>
</rss>
