<?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>http://forum.script-coding.com/viewtopic.php?id=14794</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=14794&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Преобразование переменной в дргую».]]></description>
		<lastBuildDate>Thu, 23 May 2019 12:13:27 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Преобразование переменной в дргую]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=134430#p134430</link>
			<description><![CDATA[<p>Так проще, если не нужны левые\правые модификаторы.<br /></p><div class="codebox"><pre><code>HKToStr(HK) {
	Static Prefix := {&quot;^&quot;:&quot;Ctrl&quot;,&quot;!&quot;:&quot;Alt&quot;,&quot;+&quot;:&quot;Shift&quot;,&quot;#&quot;:&quot;Win&quot;}
	For k, v in Prefix
		Instr(HK, k) &amp;&amp; (HK := StrReplace(HK, k), M .= v &quot;+&quot;)
	Return M . (StrLen(HK) = 1 ? Format(&quot;{:U}&quot;, HK) : HK)
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Thu, 23 May 2019 12:13:27 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=134430#p134430</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Преобразование переменной в дргую]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=134426#p134426</link>
			<description><![CDATA[<p><strong>serzh82saratov</strong><br />Спасибо большое, помогло.</p>]]></description>
			<author><![CDATA[null@example.com (Artem_Glade)]]></author>
			<pubDate>Wed, 22 May 2019 14:16:29 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=134426#p134426</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Преобразование переменной в дргую]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=134425#p134425</link>
			<description><![CDATA[<p><a href="http://forum.script-coding.com/viewtopic.php?pid=105023#p105023">http://forum.script-coding.com/viewtopi … 23#p105023</a></p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Wed, 22 May 2019 13:49:31 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=134425#p134425</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Преобразование переменной в дргую]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=134423#p134423</link>
			<description><![CDATA[<p>StringReplace?</p>]]></description>
			<author><![CDATA[null@example.com (belyankin12)]]></author>
			<pubDate>Tue, 21 May 2019 19:34:43 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=134423#p134423</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Преобразование переменной в дргую]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=134422#p134422</link>
			<description><![CDATA[<p>Ссылка в подписи.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Tue, 21 May 2019 17:13:47 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=134422#p134422</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Преобразование переменной в дргую]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=134421#p134421</link>
			<description><![CDATA[<p>Есть функция &quot;IniWrite&quot;, она записывает инфу в переменную файла .ini, так вот, есть в AHK функция Hotkey. Допустим мы создадим окно GUI<br /></p><div class="codebox"><pre><code>Gui, add, hotkey, x20 y10 w80 h20 vkey,
Gui, add, button, x20 y40 w80 h20 gsave, Сохранить
Gui, add, button, x20 y70 w80 h20 gcheck, Проверить
Gui, show, Center w200 h100, GUI Hotkey
return

save:
Gui Submit, Nohide
IniWrite %key%, %A_ScriptDir%/Proverka.ini, proverka, key
TrayTip, GUI Hotkey, Сохранено
return

check:
Gui Submit, Nohide
IniRead, key, %A_ScriptDir%/Proverka.ini, proverka, key
MsgBox, Клавиша будет - %key%
return</code></pre></div><p>Так, вот, вопрос вот в чём, как сделать, чтобы из этого .ini файла считывал переменную &quot;key&quot; (допустим мы в Хоткее указали сочетание клавиш - Alt + 1, в ини файл он запишет key=!1) и преобразовывал её не в !1 а в Alt + 1. <br />P.S. Мне нужно, чтобы не именно какую-то цифру или букву преобразовывало из !1 в Alt + 1, а любую букву или цифру с восклицательным знаком или^, #,+ и тд<br />Пример:<br />из !2 в Alt + 2<br />из +1 в Shift + 1<br />из ^a в Ctrl + A</p>]]></description>
			<author><![CDATA[null@example.com (Artem_Glade)]]></author>
			<pubDate>Tue, 21 May 2019 16:17:42 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=134421#p134421</guid>
		</item>
	</channel>
</rss>
