<?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=12957&amp;type=atom" />
	<updated>2017-08-30T15:34:40Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12957</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обозначение клавиши скрипта через Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=118937#p118937" />
			<content type="html"><![CDATA[<p>Понял сейчас попробую</p>]]></content>
			<author>
				<name><![CDATA[aktor311]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38738</uri>
			</author>
			<updated>2017-08-30T15:34:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=118937#p118937</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обозначение клавиши скрипта через Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=118935#p118935" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>aktor311 пишет:</cite><blockquote><p>Вот еще код самого скрипта:</p></blockquote></div><p>Лучше вот так:<br /></p><div class="codebox"><pre><code>Send, {sc12}{click, 468, 510}{click, 497, 312}{click, 468, 510}{click, 468, 535}{click, 497, 347}{click, 468, 535}{click, 468, 570}{click, 497, 382}{click, 468, 570}{click, 468, 600}{click, 497, 420}{click, 468, 600}{sc12}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[shahlik002]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=37352</uri>
			</author>
			<updated>2017-08-30T14:47:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=118935#p118935</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обозначение клавиши скрипта через Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=118934#p118934" />
			<content type="html"><![CDATA[<p><strong>aktor311</strong><br />Принцип состоит в том что бы не начинать строку с хоткея который не меняется (1::).<br />А задать вместо этого метку (1:) , и назначить на угодную вам кнопку переход к этой метке (hotkey,!1,1).</p><p>Если поступить таким образом - выходит что нужную вам кнопку можно задать в переменную (переменная=!1).<br />И при желании назначать на нее переход к нужной вам метке (hotkey,%переменная%,1)</p><p>Также есть функции которые пишутся после метки (hotkey,%переменная%,1,On или hotkey,%переменная%,1,Off (вкл/выкл)).<br />С помощью них , при желании можно включать , отключать , и производить все прочие махинации .</p><p>А вот главный принцип участников этого форума - читать статьи которые пишут специально для них.<br />Вот статья нашего форума на русском: <a href="http://www.script-coding.com/AutoHotkey/Hotkey.html">http://www.script-coding.com/AutoHotkey/Hotkey.html</a><br />Вот на официальном сайте: <a href="https://autohotkey.com/docs/commands/Hotkey.htm">https://autohotkey.com/docs/commands/Hotkey.htm</a></p>]]></content>
			<author>
				<name><![CDATA[shahlik002]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=37352</uri>
			</author>
			<updated>2017-08-30T14:25:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=118934#p118934</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обозначение клавиши скрипта через Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=118932#p118932" />
			<content type="html"><![CDATA[<p>Вот так вы хотели?<br /></p><div class="codebox"><pre><code>IfExist,MyHotkey.ini
	IniRead,H1,MyHotkey.ini,Hotkeys,Hotkey

HotkeyState=Off
gui,add,hotkey,vH1 ,%H1%
gui,add,button,gB1 vB1 ,Включить
gui,show
return

B1:
if HotkeyState=Off
{
	gui,submit,nohide
		if H1=
			return
	hotkey,%H1%,HotkeyLabel,on
	HotkeyState=On
	GuiControl,text,B1,Выключить
	GuiControl,Disable,H1
}
else if HotkeyState=On
{
	hotkey,%H1%,HotkeyLabel,off
	HotkeyState=Off
	GuiControl,text,B1,Включить
	GuiControl,Enable,H1
}
return

HotkeyLabel:
MsgBox, Сработал Hotkey
return

GuiEscape:
GuiClose:
gui,submit,nohide
IniWrite,%H1%,MyHotkey.ini,Hotkeys,Hotkey
ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[shahlik002]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=37352</uri>
			</author>
			<updated>2017-08-30T14:10:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=118932#p118932</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обозначение клавиши скрипта через Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=118929#p118929" />
			<content type="html"><![CDATA[<p>Как он по вашему поменяет !1 если он черным по белому записан в файле? При нажатии на клавишу заданную в hotkey идёт направление на метку MyKey1, а не на !1. Перед GuiClose уберите return и перенесите эту метку вместе с его действиями вниз, например после save, а !1:: на MyKey1: поменяйте. И с кнопкой накосячили, а точнее со всеми кнопками. Ни одна из ваших кнопок не вызовет ни одного действия.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2017-08-30T13:21:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=118929#p118929</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обозначение клавиши скрипта через Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=118927#p118927" />
			<content type="html"><![CDATA[<p>Если я нигде не ошибся, а я это сделал, то конечный код должен быть таким?<br /></p><div class="codebox"><pre><code>PathIni = IniFile.ini
IniRead, MyGuiHotkey, % PathIni, Section, MyGuiHotkey, % A_Space
Hotkey, %MyGuiHotkey%, MyKey1, On, UseErrorLevel
global ini :=IniFile.ini
ifExist, %ini%
    goto true
else
    goto false

false:
IniWrite, Key, %ini%, Hotkeys, Key1
goto true
true:
IniRead, MyGuiHotkey, %ini%, Hotkeys, Key1
Gui, Font, S16 CGray, Verdana
FileInstall, C:\Users\User\Desktop\1470403006_geroi.png, %A_temp%\1470403006_geroi.png
Gui, Add, Picture, x-38 y-10 w520 h560 , %A_temp%\1470403006_geroi.png
Gui, Add, Text, x22 y10 w210 h30 BackgroundTrans, Введите клавишу.
Gui, Add, Text, x22 y60 w100 h30 BackgroundTrans, Броня
Gui, Add, Text, x282 y60 w100 h30 BackgroundTrans, Баты
Gui, Add, Hotkey, x52 y110 w100 h30 vMyGuiHotkey vSave, %MyGuiHotkey%
Gui, Add, Hotkey, x312 y110 w100 h30 , 
Gui, Add, Text, x2 y110 w30 h30 BackgroundTrans, 1.
Gui, Add, Text, x2 y160 w30 h30 BackgroundTrans, 2
Gui, Add, Hotkey, x52 y160 w100 h30 , 
Gui, Add, Hotkey, x312 y160 w100 h30 , 
Gui, Add, Text, x2 y210 w30 h30 BackgroundTrans, 3.
Gui, Add, Text, x2 y260 w30 h30 BackgroundTrans, 4.
Gui, Add, Hotkey, x312 y210 w100 h30 , 
Gui, Add, Hotkey, x312 y260 w100 h30 , 
Gui, Add, Button, x422 y110 w40 h30 , Ок
Gui, Add, Button, x422 y160 w40 h30 , Ок
Gui, Add, Button, x422 y210 w40 h30 , Ок
Gui, Add, Button, x422 y260 w40 h30 , Ок
Gui, Add, Button, x162 y110 w40 h30 , Ок
Gui, Add, Button, x162 y160 w40 h30 , Ок
; Generated using SmartGUI Creator for SciTE
Gui, Show, w478 h438, Untitled GUI
return
GuiClose:
ExitApp
Gui, Submit, NoHide
Hotkey, %MyGuiHotkey%, MyKey1, On, UseErrorLevel
return
Save:
Gui, submit, NoHide
IniWrite, %MyGuiHotkey%, %ini%, Hotkeys, Key1
reload
return
MyKey1:
msgbox, работает
return
!1::
{
	Send, {sc12}
	MouseMove, 418, 510
	Send, {Lbutton}
	MouseMove, 497, 312
	Send, {Lbutton}
	MouseMove, 418, 510
	Send, {Lbutton}
	MouseMove, 418, 535
	Send, {Lbutton}
	MouseMove, 497, 347
	Send, {Lbutton}
	MouseMove, 418, 535
	Send, {Lbutton}
	MouseMove, 418, 570
	Send, {Lbutton}
	MouseMove, 497, 382
	Send, {Lbutton}
	MouseMove, 418, 570
	Send, {Lbutton}
	MouseMove, 418, 600
	Send, {Lbutton}
	MouseMove, 497, 420
	Send, {Lbutton}
	MouseMove, 418, 600
	Send, {Lbutton}
	Send, {sc12}
}
return
!2::
{
	Send, {sc12}
	MouseMove, 468, 510
	Send, {Lbutton}
	MouseMove, 497, 312
	Send, {Lbutton}
	MouseMove, 468, 510
	Send, {Lbutton}
	MouseMove, 468, 535
	Send, {Lbutton}
	MouseMove, 497, 347
	Send, {Lbutton}
	MouseMove, 468, 535
	Send, {Lbutton}
	MouseMove, 468, 570
	Send, {Lbutton}
	MouseMove, 497, 382
	Send, {Lbutton}
	MouseMove, 468, 570
	Send, {Lbutton}
	MouseMove, 468, 600
	Send, {Lbutton}
	MouseMove, 497, 420
	Send, {Lbutton}
	MouseMove, 468, 600
	Send, {Lbutton}
	Send, {sc12}
}
return</code></pre></div><p>Просто не меняет !1.<br />Или я тут с кнопкой накосячил, или с порядком не могу понять.</p>]]></content>
			<author>
				<name><![CDATA[aktor311]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38738</uri>
			</author>
			<updated>2017-08-30T12:09:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=118927#p118927</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обозначение клавиши скрипта через Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=118924#p118924" />
			<content type="html"><![CDATA[<p>Рисуйте кнопку ещё одну, которая будет за сохранение отвечать. В моем примере эта кнопка называется Save.<br /></p><div class="codebox"><pre><code>; Это до отображения окна gui
global ini := путь к ини

ifExist, %ini%
    goto true
else
    goto false

false:
IniWrite, Key, %ini%, Hotkeys, Key1
goto true

true:
IniRead, MyGuiHotkey, %ini%, Hotkeys, Key1

; тут гюи

Gui, Submit, NoHide
Hotkey, %MyGuiHotkey%, MyKey1, On, UseErrorLevel
return

Save:
Gui, submit, NoHide
IniWrite, %MyGuiHotkey%, %ini%, Hotkeys, Key1
reload
return

MyKey1:
msgbox, работает
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2017-08-30T09:16:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=118924#p118924</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обозначение клавиши скрипта через Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=118923#p118923" />
			<content type="html"><![CDATA[<p><strong>belyankin12</strong><br />Именно этого я и хочу. Точнее того что бы менять этот !1 через Hotkey который я указал.<br />Я был бы очень благодарен если бы вы мне с этим помогли. Иначе я бы сюда не писал.</p>]]></content>
			<author>
				<name><![CDATA[aktor311]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38738</uri>
			</author>
			<updated>2017-08-30T07:02:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=118923#p118923</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обозначение клавиши скрипта через Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=118922#p118922" />
			<content type="html"><![CDATA[<p>Непонятно чего вы хотите от меня. Чтобы вы вместо !1 могли назначить любую клавишу в GUI? Тогда вам нужна ещё одна кнопка для сохранения в ini файле.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2017-08-30T06:59:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=118922#p118922</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обозначение клавиши скрипта через Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=118921#p118921" />
			<content type="html"><![CDATA[<p>Пишет что ошибка в этой строке:<br /></p><div class="codebox"><pre><code>Gui, Add, Hotkey, x52 y110 w100 h30 gSetSuspend vMyGuiHotkey, %MyGuiHotkey%</code></pre></div><p>Error: Target label does not exist<br />Вот полный нынешний код:<br /></p><div class="codebox"><pre><code>PathIni = IniFile.ini
IniRead, MyGuiHotkey, % PathIni, Section, MyGuiHotkey, % A_Space
Hotkey, %MyGuiHotkey%, MyKey1, On, UseErrorLevel
Gui, Font, S16 CGray, Verdana
FileInstall, C:\Users\User\Desktop\1470403006_geroi.png, %A_temp%\1470403006_geroi.png
Gui, Add, Picture, x-38 y-10 w520 h560 , %A_temp%\1470403006_geroi.png
Gui, Add, Text, x22 y10 w210 h30 BackgroundTrans, Введите клавишу.
Gui, Add, Text, x22 y60 w100 h30 BackgroundTrans, Броня
Gui, Add, Text, x282 y60 w100 h30 BackgroundTrans, Баты
Gui, Add, Hotkey, x52 y110 w100 h30 gSetSuspend vMyGuiHotkey, %MyGuiHotkey%
Gui, Add, Hotkey, x312 y110 w100 h30 , 
Gui, Add, Text, x2 y110 w30 h30 BackgroundTrans, 1.
Gui, Add, Text, x2 y160 w30 h30 BackgroundTrans, 2
Gui, Add, Hotkey, x52 y160 w100 h30 , 
Gui, Add, Hotkey, x312 y160 w100 h30 , 
Gui, Add, Text, x2 y210 w30 h30 BackgroundTrans, 3.
Gui, Add, Text, x2 y260 w30 h30 BackgroundTrans, 4.
Gui, Add, Hotkey, x312 y210 w100 h30 , 
Gui, Add, Hotkey, x312 y260 w100 h30 , 
Gui, Add, Button, x422 y110 w40 h30 , Ок
Gui, Add, Button, x422 y160 w40 h30 , Ок
Gui, Add, Button, x422 y210 w40 h30 , Ок
Gui, Add, Button, x422 y260 w40 h30 , Ок
Gui, Add, Button, x162 y110 w40 h30 , Ок
Gui, Add, Button, x162 y160 w40 h30 , Ок
; Generated using SmartGUI Creator for SciTE
Gui, Show, w478 h438, Untitled GUI
return
GuiClose:
ExitApp



MyKey1:
msgbox, работает
return




FormatHotkey(Hotkey) {
	RegExMatch(Hotkey, &quot;S)^([\^\+!]*)(.*?)$&quot;, K)
	If (StrLen(K2) = 1)
		Return K1 . Format(&quot;sc{:X}&quot;, GetKeySC(K2))
	Return Hotkey
} 

!1::
{
	Send, {sc12}
	MouseMove, 418, 510
	Send, {Lbutton}
	MouseMove, 497, 312
	Send, {Lbutton}
	MouseMove, 418, 510
	Send, {Lbutton}
	MouseMove, 418, 535
	Send, {Lbutton}
	MouseMove, 497, 347
	Send, {Lbutton}
	MouseMove, 418, 535
	Send, {Lbutton}
	MouseMove, 418, 570
	Send, {Lbutton}
	MouseMove, 497, 382
	Send, {Lbutton}
	MouseMove, 418, 570
	Send, {Lbutton}
	MouseMove, 418, 600
	Send, {Lbutton}
	MouseMove, 497, 420
	Send, {Lbutton}
	MouseMove, 418, 600
	Send, {Lbutton}
	Send, {sc12}
}
return
!2::
{
	Send, {sc12}
	MouseMove, 468, 510
	Send, {Lbutton}
	MouseMove, 497, 312
	Send, {Lbutton}
	MouseMove, 468, 510
	Send, {Lbutton}
	MouseMove, 468, 535
	Send, {Lbutton}
	MouseMove, 497, 347
	Send, {Lbutton}
	MouseMove, 468, 535
	Send, {Lbutton}
	MouseMove, 468, 570
	Send, {Lbutton}
	MouseMove, 497, 382
	Send, {Lbutton}
	MouseMove, 468, 570
	Send, {Lbutton}
	MouseMove, 468, 600
	Send, {Lbutton}
	MouseMove, 497, 420
	Send, {Lbutton}
	MouseMove, 468, 600
	Send, {Lbutton}
	Send, {sc12}
}
return</code></pre></div><p>Ошибку исправил, но !1 не меняется.</p>]]></content>
			<author>
				<name><![CDATA[aktor311]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38738</uri>
			</author>
			<updated>2017-08-30T06:39:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=118921#p118921</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обозначение клавиши скрипта через Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=118917#p118917" />
			<content type="html"><![CDATA[<p><strong>belyankin12</strong><br />Можно поподробней?</p>]]></content>
			<author>
				<name><![CDATA[aktor311]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38738</uri>
			</author>
			<updated>2017-08-29T18:02:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=118917#p118917</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обозначение клавиши скрипта через Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=118916#p118916" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Hotkey, %MyGuiHotkey%, MyKey1, On, UseErrorLevel
MyKey1:
msgbox, работает
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2017-08-29T17:50:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=118916#p118916</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Обозначение клавиши скрипта через Hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=118914#p118914" />
			<content type="html"><![CDATA[<p>С подобным вопросом уже обращался. Вроде понял саму систему назначения hotkey на клавиши скрипта. Но все же возник вопрос:<br /></p><div class="codebox"><pre><code>PathIni = IniFile.ini
IniRead, MyGuiHotkey, % PathIni, Section, MyGuiHotkey, % A_Space
Hotkey, % PrSetSuspend := MyGuiHotkey, !1, UseErrorLevel
Gui, Font, S16 CGray, Verdana
FileInstall, C:\Users\User\Desktop\1470403006_geroi.png, %A_temp%\1470403006_geroi.png
Gui, Add, Picture, x-38 y-10 w520 h560 , %A_temp%\1470403006_geroi.png
Gui, Add, Text, x22 y10 w210 h30 BackgroundTrans, Введите клавишу.
Gui, Add, Text, x22 y60 w100 h30 BackgroundTrans, Броня
Gui, Add, Text, x282 y60 w100 h30 BackgroundTrans, Баты
Gui, Add, Hotkey, x52 y110 w100 h30 gSetSuspend vMyGuiHotkey, %MyGuiHotkey%
Gui, Add, Hotkey, x312 y110 w100 h30 , 
Gui, Add, Text, x2 y110 w30 h30 BackgroundTrans, 1.
Gui, Add, Text, x2 y160 w30 h30 BackgroundTrans, 2
Gui, Add, Hotkey, x52 y160 w100 h30 , 
Gui, Add, Hotkey, x312 y160 w100 h30 , 
Gui, Add, Text, x2 y210 w30 h30 BackgroundTrans, 3.
Gui, Add, Text, x2 y260 w30 h30 BackgroundTrans, 4.
Gui, Add, Hotkey, x312 y210 w100 h30 , 
Gui, Add, Hotkey, x312 y260 w100 h30 , 
Gui, Add, Button, x422 y110 w40 h30 , Ок
Gui, Add, Button, x422 y160 w40 h30 , Ок
Gui, Add, Button, x422 y210 w40 h30 , Ок
Gui, Add, Button, x422 y260 w40 h30 , Ок
Gui, Add, Button, x162 y110 w40 h30 , Ок
Gui, Add, Button, x162 y160 w40 h30 , Ок
; Generated using SmartGUI Creator for SciTE
Gui, Show, w478 h438, Untitled GUI
return
GuiClose:
ExitApp
SetSuspend:
Hotkey, % PrSetSuspend, Off, UseErrorLevel
GuiControlGet, Hotkey, %A_Gui%:, %A_GuiControl% 
Hotkey := FormatHotkey(Hotkey)  
	Hotkey, % PrSetSuspend := Hotkey, 
	IniWrite, % Hotkey, % PathIni, Section, % A_GuiControl
	Return

return




FormatHotkey(Hotkey) {
	RegExMatch(Hotkey, &quot;S)^([\^\+!]*)(.*?)$&quot;, K)
	If (StrLen(K2) = 1)
		Return K1 . Format(&quot;sc{:X}&quot;, GetKeySC(K2))
	Return Hotkey
} 

!1::
{
	Send, {sc12}
	MouseMove, 418, 510
	Send, {Lbutton}
	MouseMove, 497, 312
	Send, {Lbutton}
	MouseMove, 418, 510
	Send, {Lbutton}
	MouseMove, 418, 535
	Send, {Lbutton}
	MouseMove, 497, 347
	Send, {Lbutton}
	MouseMove, 418, 535
	Send, {Lbutton}
	MouseMove, 418, 570
	Send, {Lbutton}
	MouseMove, 497, 382
	Send, {Lbutton}
	MouseMove, 418, 570
	Send, {Lbutton}
	MouseMove, 418, 600
	Send, {Lbutton}
	MouseMove, 497, 420
	Send, {Lbutton}
	MouseMove, 418, 600
	Send, {Lbutton}
	Send, {sc12}
}
return
!2::
{
	Send, {sc12}
	MouseMove, 468, 510
	Send, {Lbutton}
	MouseMove, 497, 312
	Send, {Lbutton}
	MouseMove, 468, 510
	Send, {Lbutton}
	MouseMove, 468, 535
	Send, {Lbutton}
	MouseMove, 497, 347
	Send, {Lbutton}
	MouseMove, 468, 535
	Send, {Lbutton}
	MouseMove, 468, 570
	Send, {Lbutton}
	MouseMove, 497, 382
	Send, {Lbutton}
	MouseMove, 468, 570
	Send, {Lbutton}
	MouseMove, 468, 600
	Send, {Lbutton}
	MouseMove, 497, 420
	Send, {Lbutton}
	MouseMove, 468, 600
	Send, {Lbutton}
	Send, {sc12}
}
return</code></pre></div><p>Я хочу обозначить &quot;!1&quot; что бы она менялась при смене этого hotkey:<br /></p><div class="codebox"><pre><code>Gui, Add, Hotkey, x52 y110 w100 h30 gSetSuspend vMyGuiHotkey, %MyGuiHotkey%</code></pre></div><p>Прошу помочь и если возможно объянить сам принцып.<br />Вот еще код самого скрипта:<br /></p><div class="codebox"><pre><code>!1::
{
	Send, {sc12}
	MouseMove, 418, 510
	Send, {Lbutton}
	MouseMove, 497, 312
	Send, {Lbutton}
	MouseMove, 418, 510
	Send, {Lbutton}
	MouseMove, 418, 535
	Send, {Lbutton}
	MouseMove, 497, 347
	Send, {Lbutton}
	MouseMove, 418, 535
	Send, {Lbutton}
	MouseMove, 418, 570
	Send, {Lbutton}
	MouseMove, 497, 382
	Send, {Lbutton}
	MouseMove, 418, 570
	Send, {Lbutton}
	MouseMove, 418, 600
	Send, {Lbutton}
	MouseMove, 497, 420
	Send, {Lbutton}
	MouseMove, 418, 600
	Send, {Lbutton}
	Send, {sc12}
}
return
!2::
{
	Send, {sc12}
	MouseMove, 468, 510
	Send, {Lbutton}
	MouseMove, 497, 312
	Send, {Lbutton}
	MouseMove, 468, 510
	Send, {Lbutton}
	MouseMove, 468, 535
	Send, {Lbutton}
	MouseMove, 497, 347
	Send, {Lbutton}
	MouseMove, 468, 535
	Send, {Lbutton}
	MouseMove, 468, 570
	Send, {Lbutton}
	MouseMove, 497, 382
	Send, {Lbutton}
	MouseMove, 468, 570
	Send, {Lbutton}
	MouseMove, 468, 600
	Send, {Lbutton}
	MouseMove, 497, 420
	Send, {Lbutton}
	MouseMove, 468, 600
	Send, {Lbutton}
	Send, {sc12}
}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[aktor311]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38738</uri>
			</author>
			<updated>2017-08-29T14:27:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=118914#p118914</id>
		</entry>
</feed>
