<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Gui, Hotkey, Сохранить HotKey в ini фаил.]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14005&amp;type=atom" />
	<updated>2018-08-05T01:41:04Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14005</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Gui, Hotkey, Сохранить HotKey в ini фаил.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127693#p127693" />
			<content type="html"><![CDATA[<p>Все работает спасибо.</p>]]></content>
			<author>
				<name><![CDATA[DaGer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39390</uri>
			</author>
			<updated>2018-08-05T01:41:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127693#p127693</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Gui, Hotkey, Сохранить HotKey в ini фаил.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127677#p127677" />
			<content type="html"><![CDATA[<p>Только не вижу смысла разделять хоткеи&nbsp; на две переменные, используйте или&nbsp; A1-4&nbsp; или&nbsp; Key1-4!</p>]]></content>
			<author>
				<name><![CDATA[qqlexa]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39096</uri>
			</author>
			<updated>2018-08-04T10:45:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127677#p127677</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Gui, Hotkey, Сохранить HotKey в ini фаил.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127676#p127676" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Save1:
Loop, 4
{
Hotkey, % A%A_Index%, off, UseErrorLevel
GuiControlGet, A%A_Index%
Hotkey, % A%A_Index%, A%A_index%, on, UseErrorLevel
IniWrite, % A%A_Index%, Save.ini, Section, Key%A_Index%
}
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[qqlexa]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39096</uri>
			</author>
			<updated>2018-08-04T10:43:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127676#p127676</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Gui, Hotkey, Сохранить HotKey в ini фаил.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127675#p127675" />
			<content type="html"><![CDATA[<p>Посмотрите внимательно на свой код: <br /></p><div class="codebox"><pre><code>IniRead, Key1, Save.ini, Section, KEY1, % A_Space
IniRead, Key2, Save.ini, Section, KEY2, % A_Space
IniRead, Key3, Save.ini, Section, KEY3, % A_Space
IniRead, Key4, Save.ini, Section, KEY4, % A_Space
</code></pre></div><div class="codebox"><pre><code>IniWrite, % Key1 Seve.ini, Section, KEY1
IniWrite, % Key2 Seve.ini, Section, KEY2
IniWrite, % Key3 Seve.ini, Section, KEY3
IniWrite, % Key4 Seve.ini, Section, KEY4
</code></pre></div><p>Не замечаете различия в названиях ini файла? <br />Да и функцию IniWrite вы используете не верно.</p>]]></content>
			<author>
				<name><![CDATA[qqlexa]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39096</uri>
			</author>
			<updated>2018-08-04T10:36:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127675#p127675</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Gui, Hotkey, Сохранить HotKey в ini фаил.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127673#p127673" />
			<content type="html"><![CDATA[<p>Как сделать правильно?<br /></p><div class="codebox"><pre><code>
IniRead, Key1, Save.ini, Section, KEY1, % A_Space
IniRead, Key2, Save.ini, Section, KEY2, % A_Space
IniRead, Key3, Save.ini, Section, KEY3, % A_Space
IniRead, Key4, Save.ini, Section, KEY4, % A_Space

Gui, Add, Hotkey, vA1, % KEY1
Gui, Add, Hotkey, vA2, % KEY2
Gui, Add, Hotkey, vA3, % KEY3
Gui, Add, Hotkey, vA4, % KEY4

Gui, Add, Button, gSave1, Save
Gui, Show


Save1:
Loop, 4
{
IniWrite, % Key1 Seve.ini, Section, KEY1
IniWrite, % Key2 Seve.ini, Section, KEY2
IniWrite, % Key3 Seve.ini, Section, KEY3
IniWrite, % Key4 Seve.ini, Section, KEY4
Hotkey, % A%A_Index%, off, UseErrorLevel
GuiControlGet, A%A_Index%
Hotkey, % A%A_Index%, A%A_index%, on, UseErrorLevel
}
return

A1:
{
SendInput, {1}{1}{1}{1}
}
return
A2:
{
SendInput, {2}{2}{2}{2}
}
return
A3:
{
SendInput, {3}{3}{3}{3}
}
return
A4:
{
SendInput, {4}{4}{4}{4}
}
return

</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DaGer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39390</uri>
			</author>
			<updated>2018-08-04T05:03:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127673#p127673</id>
		</entry>
</feed>
