<?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=8472&amp;type=atom" />
	<updated>2013-09-10T13:43:00Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8472</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey как работает?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75323#p75323" />
			<content type="html"><![CDATA[<p>хорошая работа, спб!</p>]]></content>
			<author>
				<name><![CDATA[yaroooslav000]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30727</uri>
			</author>
			<updated>2013-09-10T13:43:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75323#p75323</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey как работает?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75322#p75322" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>#Left::!Esc</code></pre></div><p>А причём тут команда HotKey?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-09-10T13:40:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75322#p75322</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey как работает?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75321#p75321" />
			<content type="html"><![CDATA[<p>нужно клавишу win. left настроить (написать скрипт) вместо alt+esc ( делает активным другое выполняющееся приложение (бывшее активным непосредственно перед текущим))</p>]]></content>
			<author>
				<name><![CDATA[yaroooslav000]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30727</uri>
			</author>
			<updated>2013-09-10T13:37:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75321#p75321</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey как работает?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75320#p75320" />
			<content type="html"><![CDATA[<p><strong>yaroooslav000</strong><br />Думаете ваш вопрос понятен?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-09-10T13:20:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75320#p75320</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey как работает?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75318#p75318" />
			<content type="html"><![CDATA[<p>помогите пжл со скриптом, на alt+esc нажатием клавиши win.</p>]]></content>
			<author>
				<name><![CDATA[yaroooslav000]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30727</uri>
			</author>
			<updated>2013-09-10T12:27:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75318#p75318</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey как работает?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75144#p75144" />
			<content type="html"><![CDATA[<p>Наверное извлекать числа из A_GuiControl.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-09-01T04:22:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75144#p75144</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey как работает?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75143#p75143" />
			<content type="html"><![CDATA[<p>Ничего не понимаю теперь. Совсем запутался. <br /> n := SubStr(A_ThisLabel, 0)<br />Считывает последний символ, разве нет? <br />Как тогда сделать маской для всех 63 хоткеев? Сдаюсь...вынос мозга.</p>]]></content>
			<author>
				<name><![CDATA[Pr1mera]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30151</uri>
			</author>
			<updated>2013-08-31T23:33:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75143#p75143</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey как работает?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75142#p75142" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Это под каждый надо писать отдельный HSave ?</p></blockquote></div><p>Не надо.<br />Надо перечитать 25 пост, сделать вывод.<br />Ну и хотя бы чутка сократить строки (хотя бы с 250 по 375) применив Loop и A_Index.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-08-31T23:18:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75142#p75142</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey как работает?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75141#p75141" />
			<content type="html"><![CDATA[<p>Да, так в правду работает. Но у меня такой хоткей не один, а 63. Это под каждый надо писать отдельный HSave ?</p>]]></content>
			<author>
				<name><![CDATA[Pr1mera]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30151</uri>
			</author>
			<updated>2013-08-31T23:11:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75141#p75141</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey как работает?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75140#p75140" />
			<content type="html"><![CDATA[<p>Зачем тебе буковка &quot;е&quot;</p><div class="codebox"><pre><code>n := SubStr(A_ThisLabel, 0)
</code></pre></div><p>?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-08-31T23:09:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75140#p75140</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey как работает?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75139#p75139" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Но ничего нет.</p></blockquote></div><p>Это НЕХ вмешался. У меня неправильный ПК, и всё работает:<br /></p><div class="codebox"><pre><code>
gosub, load
Gui, Add, Hotkey, x242 y130 w70 h20 vMyHotKey gHSave, %mhk1%
Gui, Show

Gui, Submit, NoHide

Hotkey, %MyHotKey%, Hotkey, UseErrorLevel
PrevKey := MyHotKey
return

HSave:
    Gui, Submit, NoHide
    if (MyHotKey ~= &quot;W|S|A|D&quot;)
    {
        GuiControl,, %A_GuiControl%
        return
    } 
    Hotkey, % PrevKey , Hotkey, Off UseErrorLevel
    Hotkey, % MyHotKey , Hotkey, On UseErrorLevel
    if !ErrorLevel
        PrevKey%n% := MyHotKey
return

Hotkey:
    MsgBox % A_ThisHotkey
    return
    
Load:
    IniRead, mhk1, %A_ScriptDir%\config.ini, HotKeys, mhk1
    return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-08-31T23:04:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75139#p75139</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey как работает?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75138#p75138" />
			<content type="html"><![CDATA[<p>Ошибки нет, как и работы самого хоткея. Выбрал я клавишу, по нажатию на неё должно что-то происходить. Но ничего нет. Разумеется, в коде выше отсутствует направление на метку. Но даже если и добавить - все равно ничего не происходит.</p>]]></content>
			<author>
				<name><![CDATA[Pr1mera]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30151</uri>
			</author>
			<updated>2013-08-31T22:48:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75138#p75138</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey как работает?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75137#p75137" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Я не отказывался</p></blockquote></div><p>Лучше бы я неспрашивал.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-08-31T22:46:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75137#p75137</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey как работает?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75136#p75136" />
			<content type="html"><![CDATA[<p>Где ошибка?<br /></p><div class="codebox"><pre><code>
gosub, load
Gui, Add, Hotkey, x242 y130 w70 h20 vMyHotKey1 gHSave, %mhk1%
Gui, Show

Gui, Submit, NoHide

Hotkey, %MyHotKey1%, , UseErrorLevel
PrevKey1 := MyHotKey1
return

HSave:
Gui, Submit, NoHide
if (%A_GuiControl% ~= &quot;W|S|A|D&quot;)
{
    GuiControl,, %A_GuiControl%
    return
}
   n := SubStr(A_ThisLabel, 0)
   Hotkey, % PrevKey%n%, , Off UseErrorLevel
   Hotkey, % MyHotKey%n%, hKey%n%, On UseErrorLevel
   if !ErrorLevel
   PrevKey%n% := MyHotKey%n%
return

Load:
IniRead, mhk1, %A_ScriptDir%\config.ini, HotKeys, mhk1
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-08-31T22:45:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75136#p75136</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey как работает?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75135#p75135" />
			<content type="html"><![CDATA[<p>Я не отказывался. <a href="http://pastebin.com/apdcncNk">http://pastebin.com/apdcncNk</a></p>]]></content>
			<author>
				<name><![CDATA[Pr1mera]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30151</uri>
			</author>
			<updated>2013-08-31T22:38:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75135#p75135</id>
		</entry>
</feed>
