<?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>https://forum.script-coding.com/viewtopic.php?id=11902</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11902&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: оптимизация меток в скрипте».]]></description>
		<lastBuildDate>Sun, 14 Aug 2016 08:19:54 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: оптимизация меток в скрипте]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106749#p106749</link>
			<description><![CDATA[<div class="codebox"><pre><code>Hotkey(&quot;F1&quot;, &quot;getfunc&quot;, 1)
Hotkey(&quot;F2&quot;, &quot;getfunc&quot;, 2)
Hotkey(&quot;F3&quot;, &quot;getfunc&quot;, 3)
Hotkey(&quot;F4&quot;, &quot;getfunc&quot;, 4)

getfunc(var) {
	msgbox % var
}

Hotkey(hk, fun, args*)  {
	funcObj := Func(fun).Bind(args*)
	Hotkey, % hk, % funcObj
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (stealzy)]]></author>
			<pubDate>Sun, 14 Aug 2016 08:19:54 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106749#p106749</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: оптимизация меток в скрипте]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106738#p106738</link>
			<description><![CDATA[<p><strong>McFree</strong>, расставьте точки в своих постах.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 13 Aug 2016 11:39:59 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106738#p106738</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: оптимизация меток в скрипте]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106733#p106733</link>
			<description><![CDATA[<p>Можно через массивы:<br /></p><div class="codebox"><pre><code>HotKeys := {F1: 1, F2: 2}
F1::
F2::
msgbox % getfunc(HotKeys[A_ThisHotkey])
return

getfunc(var)
{
   return, var
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Sat, 13 Aug 2016 03:15:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106733#p106733</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: оптимизация меток в скрипте]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106732#p106732</link>
			<description><![CDATA[<p><strong>Malcev</strong> мне нужна работа на 100 горячих клавиш. А разница в них лишь в том, что там меняется переменная.</p>]]></description>
			<author><![CDATA[null@example.com (McFree)]]></author>
			<pubDate>Sat, 13 Aug 2016 02:31:08 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106732#p106732</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: оптимизация меток в скрипте]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106731#p106731</link>
			<description><![CDATA[<p>А&nbsp; зачем тут вообще метки.<br />Почему не хотите сразу вызывать функцию?</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Fri, 12 Aug 2016 22:48:07 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106731#p106731</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: оптимизация меток в скрипте]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106730#p106730</link>
			<description><![CDATA[<p><span style="color: green"><strong>McFree</strong>, ознакомьтесь с <a href="http://forum.script-coding.com/viewtopic.php?id=6148">этой</a> темой, отредактируйте заголовок.</span></p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Fri, 12 Aug 2016 21:36:04 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106730#p106730</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: оптимизация меток в скрипте]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106729#p106729</link>
			<description><![CDATA[<p>Слегка изменил код для большей наглядности.</p>]]></description>
			<author><![CDATA[null@example.com (McFree)]]></author>
			<pubDate>Fri, 12 Aug 2016 21:22:29 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106729#p106729</guid>
		</item>
		<item>
			<title><![CDATA[AHK: оптимизация меток в скрипте]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106728#p106728</link>
			<description><![CDATA[<p>Доброй ночи серые форумчане, у меня вопрос. Как сократить подобный код. Хотелось бы узнать реально ли уменьшить количество меток, если разница в метках изменяется лишь в изменении значения переменной var.</p><div class="codebox"><pre><code>
Key1:
var = 1
getfunc(var)
return

Key2:
var = 2 
getfunc(var)
return

Key3:
var = 3
getfunc(var)
return

Key4:
var = 4
getfunc(var)
return

Key5:
var = 5
getfunc(var)
return

Key6:
var = 6
getfunc(var)
return
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (McFree)]]></author>
			<pubDate>Fri, 12 Aug 2016 21:14:12 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106728#p106728</guid>
		</item>
	</channel>
</rss>
