<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Перевод hotkey в обычную форму.]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12862&amp;type=atom" />
	<updated>2017-08-01T12:13:37Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12862</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перевод hotkey в обычную форму.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=117716#p117716" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2017-08-01T12:13:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=117716#p117716</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перевод hotkey в обычную форму.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=117695#p117695" />
			<content type="html"><![CDATA[<p><a href="http://forum.script-coding.com/viewtopic.php?pid=104949#p104949">http://forum.script-coding.com/viewtopi … 49#p104949</a></p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-07-31T22:31:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=117695#p117695</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Перевод hotkey в обычную форму.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=117694#p117694" />
			<content type="html"><![CDATA[<p>Нужна функция RegExMatch которая сможет перевести hotkey в обычную текстовую форму.<br />Для примера: !F4 в Alt+F4.</p>]]></content>
			<author>
				<name><![CDATA[Mechanic]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34363</uri>
			</author>
			<updated>2017-07-31T21:52:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=117694#p117694</id>
		</entry>
</feed>
