<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Hotkey клавиша через config.ini]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13508&amp;type=atom" />
	<updated>2018-03-05T14:32:09Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13508</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Hotkey клавиша через config.ini]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=123925#p123925" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>mtc_err</strong>, создание одинаковых тем запрещено.</span><br /><a href="http://forum.script-coding.com/viewtopic.php?id=13503">http://forum.script-coding.com/viewtopic.php?id=13503</a></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2018-03-05T14:32:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=123925#p123925</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Hotkey клавиша через config.ini]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=123916#p123916" />
			<content type="html"><![CDATA[<p>Приветствую. Помогите пожалуйста дописать то, что на самом деле не правильно. <br />Суть: чтобы в поля ввода &lt;&lt;Hotkey&gt;&gt; (назначение клавиш) - сохраняло в config.ini, и соответственно содействовало назначенное в скрипте.</p><div class="codebox"><pre><code>
IfNotExist, %SkDir%\config.ini
 {
    FileAppend,
    (
    [settings]
PrintR=F8
    ), %SkDir%\config.ini
}
}
global Key := new Key
global bKey := new Key
Class GUISystem
{
isPrintR := Object()
}
    addSettingGUI()
    {
        global
Gui, set:-0x80000 -0x20000 +OwnerMain
Gui, set:Add, Text, x88 y119 w150 h15 +BackgroundTrans, Горячая клавиша
Gui, set:Add, Hotkey, x5 y115 w80 h20 vcisPrintR, ~%PrintR%
Gui, set:Add, button, x2 y139 w125 h23 center gsaveSetting, Сохранить
Gui, set:Show, Hide w322 h164, Sk » Настройки
}
}
GUISys.isPrintR := ReadIni(&quot;settings&quot;, &quot;PrintR&quot;)
}
Setting:
GuiControl, set: , cisPrintR, % GUISys.isPrintR
Gui, Main:+Disabled
Gui, set:Show
return
saveSetting:
GuiControlGet, nisPrintR, Set:, cisPrintR
Gui, Main:-Disabled
Gui, set:Hide
WriteIni(nisPrintR, &quot;settings&quot;, &quot;PrintR&quot;)
return

PrintR: ; (sc42) Тут нужно изменять клавишу через config.ini
SendChat(&quot;/time&quot;)
Sleep 250
SendInput {F12}
return
</code></pre></div><p>Очень прошу помочь. Спасибо!</p>]]></content>
			<author>
				<name><![CDATA[mtc_err]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39106</uri>
			</author>
			<updated>2018-03-05T07:52:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=123916#p123916</id>
		</entry>
</feed>
