<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Переменная в хоткей]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16665&amp;type=atom" />
	<updated>2021-10-18T14:17:18Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16665</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переменная в хоткей]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150121#p150121" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>передавать значение из поля edit в переменную, а в дальнейшем в сам хоткей</p></blockquote></div><p>Если что, для горячих клавиш существует специальное поле &quot;Hotkey&quot;. Или очень охота колдовать с полем &quot;Edit&quot;?</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2021-10-18T14:17:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150121#p150121</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переменная в хоткей]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150119#p150119" />
			<content type="html"><![CDATA[<p>Для начала нужно понять что такое <a href="https://ahk-wiki.ru/gui#submit">Gui Submit</a>.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-10-18T14:11:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150119#p150119</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Переменная в хоткей]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150106#p150106" />
			<content type="html"><![CDATA[<p>Здравствуйте!<br />Я хочу передавать значение из поля edit в переменную, а в дальнейшем в сам хоткей. Но совсем не понимаю как.<br /><span class="postimg"><img src="https://imgur.com/a/mDcbKZj" alt="https://imgur.com/a/mDcbKZj" /></span><br />По идее хоткей из поля ввода должен попадать в переменную, а затем я хочу использовать эту переменную в качестве нажимаемой клавиши.<br />Подскажите что делать, пожалуйста <img src="//forum.script-coding.com/img/smilies/hmm.png" width="15" height="15" /></p><p>Пример:<br /></p><div class="codebox"><pre><code>
#SingleInstance Force
#NoEnv
SetWorkingDir %A_ScriptDir%
SetBatchLines -1

Gui Add, Edit, hWndHotkey vhotkey x69 y80 w120 h21 +Number +Limit1
SendMessage 0x1501, 1, &quot;Hotkey here&quot;,, ahk_id %hEdtValue% ; EM_SETCUEBANNER
Gui Add, Text, x22 y21 w224 h54 +0x200, Введите желаемую горячую клавишу ниже:

Gui Show, w266 h143, Question
Return

GuiEscape:
GuiClose:
    ExitApp

(тут хоткей из переменной):
{
SendInput, {6}{LButton}
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[SxlCore]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42058</uri>
			</author>
			<updated>2021-10-17T22:59:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150106#p150106</id>
		</entry>
</feed>
