<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Перевод hotkey в обычную форму.]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=12862</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12862&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Перевод hotkey в обычную форму.».]]></description>
		<lastBuildDate>Tue, 01 Aug 2017 12:13:37 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Перевод hotkey в обычную форму.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117716#p117716</link>
			<description><![CDATA[<p>Если учесть что может быть такой префикс &quot;&lt;!+&quot;, то лучше так:<br /></p><div class="codebox"><pre><code>
MsgBox % HKToStr(&quot;~*$&lt;!+ScrollLock&quot;)
MsgBox % HKToStr(&quot;^#sc20&quot;)
MsgBox % HKToStr(&quot;&gt;!&lt;#vk44&quot;)

HKToStr(HK) {
	Static Prefix := {&quot;^&quot;:&quot;Ctrl&quot;,&quot;!&quot;:&quot;Alt&quot;,&quot;+&quot;:&quot;Shift&quot;,&quot;#&quot;:&quot;Win&quot;,&quot;&lt;&quot;:&quot;L&quot;,&quot;&gt;&quot;:&quot;R&quot;}
	Local K, K1, K2, R, R1, R2, M, P := 1
	RegExMatch(HK, &quot;S)^\s*([~\*\$\^\+!#&lt;&gt;]*)\{?(.*?)}?\s*$&quot;, K)
	If (K2 = &quot;&quot;)
		Return &quot;&quot;
	While P := RegExMatch(K1, &quot;S)([&lt;&gt;])*([\^\+!#])&quot;, R, P) + StrLen(R)
		M .= Prefix[R1] . Prefix[R2] . &quot;+&quot;
	K := (K2 ~= &quot;i)^(vk|sc[^r])&quot; ? GetKeyName(K2) : K2)
	Return M . (StrLen(K) = 1 ? Format(&quot;{:U}&quot;, K) : K)
}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Tue, 01 Aug 2017 12:13:37 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117716#p117716</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Перевод hotkey в обычную форму.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117695#p117695</link>
			<description><![CDATA[<p><a href="http://forum.script-coding.com/viewtopic.php?pid=104949#p104949">http://forum.script-coding.com/viewtopi … 49#p104949</a></p>]]></description>
			<author><![CDATA[null@example.com (svoboden)]]></author>
			<pubDate>Mon, 31 Jul 2017 22:31:45 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117695#p117695</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Перевод hotkey в обычную форму.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117694#p117694</link>
			<description><![CDATA[<p>Нужна функция RegExMatch которая сможет перевести hotkey в обычную текстовую форму.<br />Для примера: !F4 в Alt+F4.</p>]]></description>
			<author><![CDATA[null@example.com (Mechanic)]]></author>
			<pubDate>Mon, 31 Jul 2017 21:52:40 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117694#p117694</guid>
		</item>
	</channel>
</rss>
