<?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=18269&amp;type=atom" />
	<updated>2024-08-16T13:50:03Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=18269</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161404#p161404" />
			<content type="html"><![CDATA[<p><strong>Alectric</strong><br />Блин, вот в чем проблема была. Спасибо большое!</p>]]></content>
			<author>
				<name><![CDATA[sajkdajsdjqwje]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43968</uri>
			</author>
			<updated>2024-08-16T13:50:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161404#p161404</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161403#p161403" />
			<content type="html"><![CDATA[<p><strong>sajkdajsdjqwje</strong>, замени функцию на метку и все заработает.<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code>; Generated by AutoGUI 2.5.8
#SingleInstance Force
#NoEnv
SetWorkingDir %A_ScriptDir%
SetBatchLines -1

Menu, HelpMenu, Add, Настройки, SF
Menu, MyMenuBar, Add, Действия, :HelpMenu

Gui Menu, MyMenuBar

Gui, Add, Text, x192 y59 w130 h30 , %HK1%
Gui, Add, Text, x192 y89 w130 h30 , %HK2%
Gui, Show, x127 y87 h830 w1260, Основная страница
Return

SF:
    gosub,settingsFirst
return

Exit:
ExitApp

GuiSize:
    If (A_EventInfo == 1) {
        Return
    }

Return

GuiContextMenu:
Return

GuiEscape:
GuiClose:
    ExitApp


settingsFirst:
    Gui, settingsFirst: Add, Hotkey, x192 y59 w130 h30 vHK1, %HK1%
    Gui, settingsFirst: Add, Hotkey, x192 y89 w130 h30 vHK2, %HK2%
    Gui, settingsFirst: Add, Button, x1162 y229 w90 h160 gBack, Выйти обратно
    Gui, settingsFirst: Add, Button, x1162 y429 w90 h330 gSave, Сохранить изменения
    Gui, settingsFirst: Show, x127 y87 h830 w1260, Страница 1 | Настройки
    Return

    obn:
    Return

    first:
    return

    Back:
        Gui settingsFirst:Destroy
    return

    Save:
    return
</code></pre></div></div></div>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2024-08-16T09:55:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161403#p161403</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161402#p161402" />
			<content type="html"><![CDATA[<p>Кнопку всё равно не нашёл. Есть меню, но оно не работает. Вы никогда сами не запускаете код, который постите?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-08-15T20:18:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161402#p161402</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161398#p161398" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Извиняюсь, лишнего подтер. Код исправил.</p>]]></content>
			<author>
				<name><![CDATA[sajkdajsdjqwje]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43968</uri>
			</author>
			<updated>2024-08-15T11:15:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161398#p161398</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161393#p161393" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>sajkdajsdjqwje пишет:</cite><blockquote><p>В коде основного окна нажимается кнопка &quot;Настройки&quot;</p></blockquote></div><p>Не обнаружил таковую.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-08-14T21:56:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161393#p161393</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161390#p161390" />
			<content type="html"><![CDATA[<p>.<strong>teadrinker</strong><br />Исправлено.</p>]]></content>
			<author>
				<name><![CDATA[sajkdajsdjqwje]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43968</uri>
			</author>
			<updated>2024-08-13T23:11:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161390#p161390</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161382#p161382" />
			<content type="html"><![CDATA[<p>Напомните, я уже говорил про точки?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-08-12T16:57:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161382#p161382</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161381#p161381" />
			<content type="html"><![CDATA[<p>В коде основного окна нажимается кнопка &quot;Настройки&quot;, где создается новый GUI, где вместо текста с переменными есть элемент Hotkey и кнопка &quot;Сохранить&quot;. Мне нужно сохранить данные хоткеев, но у меня возникают ошибки при попытке сохранения.</p>]]></content>
			<author>
				<name><![CDATA[sajkdajsdjqwje]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43968</uri>
			</author>
			<updated>2024-08-12T14:31:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161381#p161381</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161376#p161376" />
			<content type="html"><![CDATA[<p><strong>sajkdajsdjqwje</strong><br />Вижу, что сократили. Можете пояснить теперь, как это должно работать?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-08-10T20:03:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161376#p161376</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161374#p161374" />
			<content type="html"><![CDATA[<p>А зачем там 45 хоткеев? Если было бы 44, или 43, уже не сработает? Я вот предлагаю оставить 1.<br />Тем более, что добавлять их построчно — так себе идея. Если бы нужно было 1000, вы бы 1000 одинаковых строк написали?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-08-10T06:48:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161374#p161374</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161373#p161373" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Ник присвоился исходя из почты автоматически.<br />Из кода все лишнее удалено.</p>]]></content>
			<author>
				<name><![CDATA[sajkdajsdjqwje]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43968</uri>
			</author>
			<updated>2024-08-10T06:10:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161373#p161373</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161372#p161372" />
			<content type="html"><![CDATA[<p><strong>sajkdajsdjqwje</strong><br />Пожалуйста, используйте <a href="https://forum.script-coding.com/misc.php?action=rules#literacy">точки</a>.<br />Для демонстрации проблемы я советую удалить из скрипта всё, что не имеет отношения к вопросу. Если вопрос касается сохранения результата, который выдаёт контрол Hotkey, то было бы достаточно создать окно, в котором будет единственный контрол Hotkey. Ну и ваша попытка сохранить данные из него, пусть и ошибочная. Тогда отвечающему будет проще.<br />Ещё на заметку. Такие ники (бессмысленный набор символов) обычно используют спамеры, на будущее не советую, если не хотите быть заблокированным &quot;на всякий случай&quot;. <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-08-10T01:09:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161372#p161372</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161370#p161370" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong><br />Удалил большинство излишних строк</p>]]></content>
			<author>
				<name><![CDATA[sajkdajsdjqwje]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43968</uri>
			</author>
			<updated>2024-08-09T20:57:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161370#p161370</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161369#p161369" />
			<content type="html"><![CDATA[<p>Краткость кода приветствуется. Мало кому захочется читать портянку на 497 строк.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2024-08-09T20:17:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161369#p161369</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Сохранение Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161368#p161368" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>; Generated by AutoGUI 2.5.8
#SingleInstance Force
#NoEnv
SetWorkingDir %A_ScriptDir%
SetBatchLines -1

Menu, HelpMenu, Add, Настройки, SF
Menu, MyMenuBar, Add, Действия, :HelpMenu

Gui Menu, MyMenuBar

Gui, Add, Text, x192 y59 w130 h30 , %HK1%
Gui, Add, Text, x192 y89 w130 h30 , %HK2%
Gui, Show, x127 y87 h830 w1260, Основная страница
Return

SF:
    settingsFirst()
return

Exit:
ExitApp

GuiSize:
    If (A_EventInfo == 1) {
        Return
    }

Return

GuiContextMenu:
Return

GuiEscape:
GuiClose:
    ExitApp


settingsFirst() {
    Gui, settingsFirst: Add, Hotkey, x192 y59 w130 h30 vHK1, %HK1%
    Gui, settingsFirst: Add, Hotkey, x192 y89 w130 h30 vHK2, %HK2%
    Gui, settingsFirst: Add, Button, x1162 y229 w90 h160 gBack, Выйти обратно
    Gui, settingsFirst: Add, Button, x1162 y429 w90 h330 gSave, Сохранить изменения
    Gui, settingsFirst: Show, x127 y87 h830 w1260, Страница 1 | Настройки
    Return
}
    obn:
    Return

    first:
    return

    Back:
        Gui settingsFirst:Destroy
    return

    Save:
    return</code></pre></div><p>В коде основного окна нажимается кнопка &quot;Настройки&quot;, где создается новый GUI, где вместо текста с переменными есть элемент Hotkey и кнопка &quot;Сохранить&quot;. Мне нужно сохранить данные хоткеев, но у меня возникают ошибки при попытке сохранения. Cпасибо!</p>]]></content>
			<author>
				<name><![CDATA[sajkdajsdjqwje]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43968</uri>
			</author>
			<updated>2024-08-09T19:22:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161368#p161368</id>
		</entry>
</feed>
