<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Не могу разобраться с Gui, Add, Hotkey]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=8183&amp;type=atom" />
	<updated>2013-03-28T18:49:53Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8183</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу разобраться с Gui, Add, Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=70908#p70908" />
			<content type="html"><![CDATA[<p>Эх и никто даже совета не даст... по оптимизации данного кода.</p>]]></content>
			<author>
				<name><![CDATA[NonameDayz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29868</uri>
			</author>
			<updated>2013-03-28T18:49:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=70908#p70908</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу разобраться с Gui, Add, Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=70877#p70877" />
			<content type="html"><![CDATA[<p>Вообщем если вам интересно как я решил проблему с одинаковыми хоткеями то прошу смотреть в мой скрипт. <br />Я применил&nbsp; чудо индийского кода, на большего моего ума не хватило. Можете потыкать, да потестить хоткеи. А лучше посоветовать как оптимизировать. Собственно сам код: </p><div class="codebox"><pre><code>Gosub, LoadIni
GoSub, LoadGui
Return

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Process, Priority, , High ;

F10::reload
F11::suspend



Save:
    Gui, Submit, NoHide
Array := [ColdSnap, GhostWalk, IceWall, Emp, Tornado, Alacrity, SunStrike, ForgeSpirit, Meteor, DeafeningBlast]

for i in Array{; проверка на QWER и дубликаты
    
if (%A_GuiControl% ~= &quot;Q|W|E|R&quot;) {
        GuiControl,, %A_GuiControl%
         return
    }
    
if  (Array[i]!=&quot;&quot;){
    
if (%A_GuiControl% ~= Array[i]){
    i:=++i
    t:=11 - i 
    Loop %t%    {
    if (%A_GuiControl% = Array[i]){
        GuiControl,, %A_GuiControl%
        }
    i:=++i
}
}
}
}



    IniWrite, %ColdSnap%, %A_ScriptDir%\config.ini, Skills, ColdSnap
    IniWrite, %GhostWalk%, %A_ScriptDir%\config.ini, Skills, GhostWalk
    IniWrite, %IceWall%, %A_ScriptDir%\config.ini, Skills, IceWall
    IniWrite, %Emp%, %A_ScriptDir%\config.ini, Skills, Emp
    IniWrite, %Tornado%, %A_ScriptDir%\config.ini, Skills, Tornado
    IniWrite, %Alacrity%, %A_ScriptDir%\config.ini, Skills, Alacrity
    IniWrite, %SunStrike%, %A_ScriptDir%\config.ini, Skills, SunStrike
    IniWrite, %ForgeSpirit%, %A_ScriptDir%\config.ini, Skills, ForgeSpirit
    IniWrite, %Meteor%, %A_ScriptDir%\config.ini, Skills, Meteor
    IniWrite, %DeafeningBlast%, %A_ScriptDir%\config.ini, Skills, DeafeningBlast
    
Return

ButtonClear:
GuiControl,, ColdSnap
GuiControl,, GhostWalk
GuiControl,, IceWall
GuiControl,, Emp
GuiControl,, Tornado
GuiControl,, Alacrity
GuiControl,, SunStrike
GuiControl,, ForgeSpirit
GuiControl,, Meteor
GuiControl,, DeafeningBlast
Gosub, Save
Return

ButtonStart:
Hotkey, %Tornado%, Tornado
Hotkey, %ColdSnap%, ColdSnap
Hotkey, %GhostWalk%, GhostWalk
Hotkey, %IceWall%, IceWall
Hotkey, %Emp%, Emp
Hotkey, %Tornado%, Tornado
Hotkey, %Alacrity%, Alacrity
Hotkey, %SunStrike%, SunStrike
Hotkey, %ForgeSpirit%, ForgeSpirit
Hotkey, %Meteor%, Meteor
Hotkey, %DeafeningBlast%, DeafeningBlast
return

GhostWalk:
Send, QQWRWWW
Sleep 400
Send D
return


Tornado:
Send, WWQR
return

Emp:
Send, WWWR
return

DeafeningBlast: 
Send, QWER
return

SunStrike: 
Send, EEER
return

Meteor: 
Send, EEWR
return

ColdSnap: 
Send, QQQR
return

IceWall: 
Send, QQER
Return

ForgeSpirit: 
Send, EEQR
Sleep 400
Send D
Return

Alacrity:
Send, WWER
Return

GuiClose:
ExitApp

LoadINI:
IniRead, ColdSnap, %A_ScriptDir%\config.ini, Skills, ColdSnap
IniRead, GhostWalk, %A_ScriptDir%\config.ini, Skills, GhostWalk
IniRead, IceWall, %A_ScriptDir%\config.ini, Skills, IceWall
IniRead, Emp, %A_ScriptDir%\config.ini, Skills, Emp
IniRead, Tornado, %A_ScriptDir%\config.ini, Skills, Tornado
IniRead, Alacrity, %A_ScriptDir%\config.ini, Skills, Alacrity
IniRead, SunStrike, %A_ScriptDir%\config.ini, Skills, SunStrike
IniRead, ForgeSpirit, %A_ScriptDir%\config.ini, Skills, ForgeSpirit
IniRead, Meteor, %A_ScriptDir%\config.ini, Skills, Meteor
IniRead, DeafeningBlast, %A_ScriptDir%\config.ini, Skills, DeafeningBlast
Return

LoadGui:
Gui, Add, Picture, x300 y0 w150 h80 , E:\1\icon.jpg
Gui, Add, Picture, x100 y110 w80 h80 , E:\1\ability1.jpg
Gui, Add, Picture, x100 y200 w80 h80 , E:\1\ability2.jpg
Gui, Add, Picture, x100 y290 w80 h80 , E:\1\ability3.jpg
Gui, Add, Picture, x100 y380 w80 h90 , E:\1\ability4.jpg
Gui, Add, Picture, x250 y110 w80 h80 , E:\1\ability5.jpg
Gui, Add, Picture, x250 y200 w80 h80 , E:\1\ability6.jpg
Gui, Add, Picture, x250 y290 w80 h80 , E:\1\ability7.jpg
Gui, Add, Picture, x250 y380 w80 h90 , E:\1\ability8.jpg
Gui, Add, Picture, x400 y110 w80 h80 , E:\1\ability9.jpg
Gui, Add, Picture, x400 y200 w80 h80 , E:\1\ability10.jpg
Gui, Add, Picture, x400 y290 w80 h80 , E:\1\ability11.jpg
Gui, Add, Picture, x400 y380 w80 h90 , E:\1\ability12.jpg
Gui, Add, Picture, x550 y110 w80 h80 , E:\1\ability13.jpg
Gui, Add, Picture, x550 y200 w80 h80 , E:\1\ability14.jpg
gui, font, w700 s15, Times New Roman
Gui, Add, Text, x70 y130 w20 h30 , Q
Gui, Add, Text, x70 y220 w20 h30 , W
Gui, Add, Text, x70 y310 w20 h30 , E
Gui, Add, Text, x70 y410 w20 h30 , R
gui, font,,
Gui, Add, Hotkey, vColdSnap gSave x185 y130 w60 h30 , %ColdSnap%
Gui, Add, Hotkey, vGhostWalk gSave x185 y220 w60 h30 , %GhostWalk%
Gui, Add, Hotkey, vIceWall gSave x185 y310 w60 h30 , %IceWall%
Gui, Add, Hotkey, vEmp gSave x185 y410 w60 h30 , %Emp%
Gui, Add, Hotkey, vTornado gSave x335 y130 w60 h30 , %Tornado%
Gui, Add, Hotkey, vAlacrity gSave x335 y220 w60 h30 , %Alacrity%
Gui, Add, Hotkey, vSunStrike gSave x335 y310 w60 h30 , %SunStrike%
Gui, Add, Hotkey, vForgeSpirit gSave x335 y410 w60 h30 , %ForgeSpirit%
Gui, Add, Hotkey, vMeteor gSave x485 y130 w60 h30 , %Meteor%
Gui, Add, Hotkey, vDeafeningBlast gSave x485 y220 w60 h30 , %DeafeningBlast%
Gui, Add, Button, x222 y750 w100 h30 , Start
Gui, Add, Button, x400 y750 w100 h30 , Clear
; Generated using SmartGUI Creator 4.0
Gui, Show, x577 y84 h842 w730, New GUI Window
Return</code></pre></div><p>Это очень сырая версия скрипта для инвокера на доту 2, да и без картинок то выкладываю. </p><p>В данном скрипте я кое как решил проблему (не без вашей помощи) чтобы хоткей не допускал дубликаты, а также QWER. Также возникла сложная ситуацию когда хоткей ругался пустые поля, которую я кое как решил...</p><p>Уже сразу нашел глюк, если не заполнить все хоткеи то скрипт при нажатии кнопки старт работать не будет.&nbsp; <br />А также теперь нельзя назначить хоткеи по типу Alt + Q т.к. моментально ругается на Q. Вот об этом я как то не подумал. А такая комбинация хоткея мне понадобиться.</p>]]></content>
			<author>
				<name><![CDATA[NonameDayz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29868</uri>
			</author>
			<updated>2013-03-27T21:30:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=70877#p70877</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу разобраться с Gui, Add, Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=70876#p70876" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>ColdSnap:= &quot;W&quot;
Array := [ColdSnap, GhostWalk, IceWall, Emp, Tornado, Alacrity, SunStrike, ForgeSpirit, Meteor, DeafeningBlast]
for i in Array {
    if Array[i] != &quot;&quot;
        MsgBox, ok
}</code></pre></div><p>«Ничего» это слишком объемное понятие, чтоб отсутствие логического элемента в выражении как-то интерпретировать. Сравнивайте с пустой строкой.<br /></p><div class="quotebox"><blockquote><p>когда ставить кавычки когда нет</p></blockquote></div><p>В выражении, при операциях со строками кавычки нужны. «Слово» без кавычек в выражении интерпретируется как имя переменной.</p><p>Используйте оператор <strong>=</strong> исключительно для сравнения.<br />Используйте для присваивания значения оператор <strong>:=</strong><br />В if используйте круглые скобки и подразумевайте, что в скобках после if&nbsp; — выражение.<br />Постарайтесь отказаться от использования команд IfEqual и т.п.<br />Опциональные параметры в определениях функций объявляйте с использованием оператора <strong>:=</strong></p><p>— «на будущее».</p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2013-03-27T21:09:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=70876#p70876</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу разобраться с Gui, Add, Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=70875#p70875" />
			<content type="html"><![CDATA[<p>После&nbsp; этого я даже не знаю как справку то теперь читать: </p><div class="quotebox"><blockquote><p>Пустые строки. Чтобы задать в выражении пустую строку, используйте пустую пару кавычек. Например, условный оператор if (MyVar &lt;&gt; &quot;&quot;) вернет истину, если у переменной MyVar есть значение. Однако, если условный оператор имеет традиционную форму, пустые кавычки трактуются буквально. К примеру, приведенный далее условный оператор, не содержащий выражений, вернет истину, только если переменная MyVar действительно содержит пару кавычек: if MyVar = &quot;&quot;. Таким образом, чтобы с помощью несодержащего выражений условного оператора проверить, есть ли у переменной значение, используйте в правой части оператора символ = или &lt;&gt; и ничего за ним, как в этом примере: if MyVar =</p></blockquote></div><p>Прочитав это я так и не понял когда ставить кавычки когда нет... Но методом проб и ошибок понял что в моем случае нужно ставить...</p>]]></content>
			<author>
				<name><![CDATA[NonameDayz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29868</uri>
			</author>
			<updated>2013-03-27T21:02:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=70875#p70875</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу разобраться с Gui, Add, Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=70874#p70874" />
			<content type="html"><![CDATA[<p>Я щас свихнусь... </p><p>Почему этот скрипт не показывает в итоге одно сообщение ок. <br /></p><div class="codebox"><pre><code>
ColdSnap:= &quot;W&quot;
Array := [ColdSnap, GhostWalk, IceWall, Emp, Tornado, Alacrity, SunStrike, ForgeSpirit, Meteor, DeafeningBlast]
for i in Array{
if  (Array[i]!=)
{
    MsgBox, ok    
    }
    }
    </code></pre></div>]]></content>
			<author>
				<name><![CDATA[NonameDayz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29868</uri>
			</author>
			<updated>2013-03-27T20:58:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=70874#p70874</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу разобраться с Gui, Add, Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=70844#p70844" />
			<content type="html"><![CDATA[<p><a href="http://l.autohotkey.net/docs/Variables.htm#GuiControl">A_GuiControl</a><br /><a href="http://l.autohotkey.net/docs/Variables.htm#Operators">~=</a><br /><a href="http://l.autohotkey.net/docs/Variables.htm#Expressions">Expressions</a><br /><a href="http://l.autohotkey.net/docs/commands/IfExpression.htm">If (expression)</a><br /><a href="http://l.autohotkey.net/docs/commands/Gui.htm">Gui</a><br /><a href="http://l.autohotkey.net/docs/commands/GuiControls.htm#Hotkey">GuiControls#Hotkey</a><br /><a href="http://l.autohotkey.net/docs/commands/Hotkey.htm">Hotkey command</a></p><p>«Ответы на заданные вопросы» где-то между строк.</p><div class="quotebox"><blockquote><p>сделать проверку чтобы не было одинаковых хоткеев и QWER<br />И почему нельзя сделать так</p></blockquote></div><p>Помимо неправильного синтаксиса данная конструкция лишена смысла.<br />Нет магии в autohotkey, что описываете, то и получаете. Нельзя взять «горсть команд» языка, перемешать в произвольном порядке и получить желаемую функциональность.</p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2013-03-27T12:58:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=70844#p70844</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу разобраться с Gui, Add, Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=70841#p70841" />
			<content type="html"><![CDATA[<p>Порекомендуйте отдельные разделы, чтобы&nbsp; найти ответы на заданные вопросы.</p>]]></content>
			<author>
				<name><![CDATA[NonameDayz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29868</uri>
			</author>
			<updated>2013-03-27T12:14:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=70841#p70841</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу разобраться с Gui, Add, Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=70832#p70832" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>так же пробовал различные варианты</p></blockquote></div><p>И увы,&nbsp; кубик не влезает в круглое отверстие…</p><p>Кажется, самое время посоветовать почитать справку.</p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2013-03-27T00:40:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=70832#p70832</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу разобраться с Gui, Add, Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=70831#p70831" />
			<content type="html"><![CDATA[<p>И еще вопрос по поводу оптимизации: </p><div class="codebox"><pre><code>
LoadGui:
Gui, Add, Hotkey, vColdSnap gSave x185 y130 w60 h30 , %ColdSnap%
Gui, Add, Hotkey, vGhostWalk gSave x185 y220 w60 h30 , %GhostWalk%
Gui, Add, Hotkey, vIceWall gSave x185 y310 w60 h30 , %IceWall%
Gui, Add, Hotkey, vEmp gSave x185 y410 w60 h30 , %Emp%
Gui, Add, Hotkey, vTornado gSave x335 y130 w60 h30 , %Tornado%
Gui, Add, Hotkey, vAlacrity gSave x335 y220 w60 h30 , %Alacrity%
Gui, Add, Hotkey, vSunStrike gSave x335 y310 w60 h30 , %SunStrike%
Gui, Add, Hotkey, vForgeSpirit gSave x335 y410 w60 h30 , %ForgeSpirit%
Gui, Add, Hotkey, vMeteor gSave x485 y130 w60 h30 , %Meteor%
Gui, Add, Hotkey, vDeafeningBlast gSave x485 y220 w60 h30 , %DeafeningBlast%
Gui, Add, Button, x222 y750 w100 h30 , Start
Gui, Add, Button, x400 y750 w100 h30 , Clear
; Generated using SmartGUI Creator 4.0
Gui, Show, x577 y84 h842 w730, New GUI Window
Return

ButtonClear:
GuiControl,, ColdSnap
GuiControl,, GhostWalk
GuiControl,, IceWall
GuiControl,, Emp
GuiControl,, Tornado
GuiControl,, Alacrity
GuiControl,, SunStrike
GuiControl,, ForgeSpirit
GuiControl,, Meteor
GuiControl,, DeafeningBlast
Return
</code></pre></div><p>Можно ли как нибудь отчистить все gui hotkey одной командой или возможно чтобы не писать все метки использовать %A_GuiControl% ?</p><p>Извините если кого то достаю нубскими вопросами.</p>]]></content>
			<author>
				<name><![CDATA[NonameDayz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29868</uri>
			</author>
			<updated>2013-03-26T23:18:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=70831#p70831</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу разобраться с Gui, Add, Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=70830#p70830" />
			<content type="html"><![CDATA[<p>Пытаюсь сделать проверку чтобы не было одинаковых хоткеев и QWER. Не могу понять что не так. </p><p>И почему нельзя сделать так: </p><div class="codebox"><pre><code>Gui Margin, 20, 10
Gui Add, Hotkey, gLabel vHotkeyBox1
Gui Add, Hotkey, gLabel vHotkeyBox2
Gui Add, Hotkey, gLabel vHotkeyBox3
Gui Show
return

Label:
    if (%A_GuiControl% ~= &quot;Q|W|E|R&quot;|%A_GuiControl%) {
        GuiControl,, %A_GuiControl%
        return
    }
    ToolTip % %A_GuiControl%,,, SubStr(A_GuiControl, 0)
    return</code></pre></div><p>А так же пробовал различные варианты допустим:<br /></p><div class="codebox"><pre><code>
Label:
    if (%A_GuiControl% ~= HotkeyBox1) {
        GuiControl,, %A_GuiControl%
        return
    }
    ToolTip % %A_GuiControl%,,, SubStr(A_GuiControl, 0)
    return</code></pre></div><p>Если HotkeyBox1 пустой то не получиться изменить другие хотбоксы пока не изменишь первый.</p>]]></content>
			<author>
				<name><![CDATA[NonameDayz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29868</uri>
			</author>
			<updated>2013-03-26T23:07:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=70830#p70830</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу разобраться с Gui, Add, Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=70827#p70827" />
			<content type="html"><![CDATA[<p>Благодарю.</p>]]></content>
			<author>
				<name><![CDATA[NonameDayz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29868</uri>
			</author>
			<updated>2013-03-26T21:58:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=70827#p70827</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу разобраться с Gui, Add, Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=70826#p70826" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Gui Margin, 20, 10
Gui Add, Hotkey, gLabel vHotkeyBox1
Gui Add, Hotkey, gLabel vHotkeyBox2
Gui Show
return

Label:
    if (%A_GuiControl% ~= &quot;Q|W|E|R&quot;) {
        GuiControl,, %A_GuiControl%
        return
    }
    ToolTip % %A_GuiControl%,,, SubStr(A_GuiControl, 0)
    return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2013-03-26T21:37:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=70826#p70826</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу разобраться с Gui, Add, Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=70825#p70825" />
			<content type="html"><![CDATA[<p>Большое спасибо за помощь. Я примерно был близок к это идеи. Благодаря вам открыл для себя команду GuiControl.</p><p>Но возник вопрос, т.к. у меня много хоткеев и у них разные метки &quot;v*****&quot; но одинаковые &quot;gSave&quot; можно ли как нибудь оптимизироваться код или нужно для каждой метки &quot;v******&quot; писать строки с проверкой на совпадение QWER. <br />Для примера: <br /></p><div class="codebox"><pre><code>Gui Margin, 20, 10
Gui Add, Hotkey, gLabel vAbrakadabra
Gui Add, Hotkey, gLabel vVeryHotBox
Gui Add, Hotkey, gLabel vNotHotBox; И далее куча хоткеев. 
Gui Show
return

Label:
    if (Abrakadabra ~= &quot;Q|W|E|R&quot;) {
        GuiControl,, Abrakadabra
        return
    }

    if (VeryHotBox ~= &quot;Q|W|E|R&quot;) {
        GuiControl,, VeryHotBox
        return
    }

    if (NotHotBox~= &quot;Q|W|E|R&quot;) {
        GuiControl,, NotHotBox
        return
    }

       return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[NonameDayz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29868</uri>
			</author>
			<updated>2013-03-26T21:28:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=70825#p70825</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу разобраться с Gui, Add, Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=70824#p70824" />
			<content type="html"><![CDATA[<p>Отличный диалог. <a href="http://www.script-coding.com/AutoHotkey/GUIControls.html#hotkey">GUIControls#hotkey</a><br /></p><div class="quotebox"><blockquote><p>Моя цель будет достигнуто.</p></blockquote></div><p>Как скажете <img src="//forum.script-coding.com/img/smilies/neutral.png" width="15" height="15" /><br /></p><div class="codebox"><pre><code>Gui Margin, 20, 10
Gui Add, Hotkey, gLabel vHotkeyBox
Gui Show
return

Label:
    if (HotkeyBox ~= &quot;Q|W|E|R&quot;) {
        GuiControl,, HotkeyBox
        return
    }
    ToolTip % HotkeyBox
    return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2013-03-26T20:40:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=70824#p70824</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу разобраться с Gui, Add, Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=70823#p70823" />
			<content type="html"><![CDATA[<p>Вообщем разобрался что к чему... <br />Если кому поможет то читайте дальше.<br />Нашел у себя несколько ошибок по типу:&nbsp; должно быть Tornado а у меня написано Torando. <br />Не правильно обозвал вызов части скрипта по нажатию кнопки. <br /></p><div class="codebox"><pre><code>ButtonStart:
Gui, Submit, NoHide
Return</code></pre></div><p>Когда у меня как я понял кнопка вызываться по имени &quot;Применить&nbsp; &nbsp; Запустить&quot;<br /></p><div class="codebox"><pre><code>Gui, Add, Button, vStart x222 y750 w100 h30 , Применить    Запустить</code></pre></div><p>Поэтому переименовал кнопку просто в Start.<br />А так же добавил Hotkey, %GhostWalk%, GhostWalk.</p><div class="codebox"><pre><code>
ButtonStart:
Hotkey, %GhostWalk%, GhostWalk
return
</code></pre></div><p>По сути останется прописать кучу хоткеев и все. Моя цель будет достигнуто. </p><p>Остается вопрос по поводу </p><div class="quotebox"><blockquote><p>Как сделать чтобы в поле Gui, Add, Hotkey нельзя было вводить определённые буквы, допустим Q W E R.</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[NonameDayz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29868</uri>
			</author>
			<updated>2013-03-26T20:30:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=70823#p70823</id>
		</entry>
</feed>
