<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Получить код нажатой клавиши в переменную.]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=12837</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12837&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Получить код нажатой клавиши в переменную.».]]></description>
		<lastBuildDate>Sun, 23 Jul 2017 22:37:27 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Получить код нажатой клавиши в переменную.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117557#p117557</link>
			<description><![CDATA[<p>Еще один вопрос. А как записать в переменную клавиши с модификаторами? с хуками понял, с input тоже. А например как записать , и перехватить&nbsp; в ctrlF? В общем нужно прикрутить ctrl, alt, shift. как я понял это только через хуки. Пните пожалуйста в нужную сторону.</p>]]></description>
			<author><![CDATA[null@example.com (Viruzober)]]></author>
			<pubDate>Sun, 23 Jul 2017 22:37:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117557#p117557</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получить код нажатой клавиши в переменную.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117539#p117539</link>
			<description><![CDATA[<p><strong>serzh82saratov</strong><br /><a href="https://autohotkey.com/boards/viewtopic.php?f=14&amp;t=31746">https://autohotkey.com/boards/viewtopic … mp;t=31746</a></p>]]></description>
			<author><![CDATA[null@example.com (stealzy)]]></author>
			<pubDate>Sun, 23 Jul 2017 11:17:22 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117539#p117539</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получить код нажатой клавиши в переменную.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117538#p117538</link>
			<description><![CDATA[<p><span style="color: green"><strong>Viruzober</strong>, проставьте заглавные буквы и точки в своих сообщениях.</span><br /><a href="http://forum.script-coding.com/viewtopic.php?pid=117501#p117501">http://forum.script-coding.com/viewtopi … 01#p117501</a><br /><a href="http://forum.script-coding.com/viewtopic.php?pid=117530#p117530">http://forum.script-coding.com/viewtopi … 30#p117530</a><br /><a href="http://forum.script-coding.com/viewtopic.php?pid=117532#p117532">http://forum.script-coding.com/viewtopi … 32#p117532</a></p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Sun, 23 Jul 2017 11:17:06 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117538#p117538</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получить код нажатой клавиши в переменную.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117537#p117537</link>
			<description><![CDATA[<p><strong>stealzy</strong> Я даже больше скажу, при хуках клавиатура совсем мертвая в плане enter shift ctrl и т.д. Как бы записать в переменную чтобы так сказать и рыбку скушать , и клавиши использовать все?</p>]]></description>
			<author><![CDATA[null@example.com (Viruzober)]]></author>
			<pubDate>Sun, 23 Jul 2017 11:14:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117537#p117537</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получить код нажатой клавиши в переменную.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117536#p117536</link>
			<description><![CDATA[<p>Кстати нет, не замечал раньше это.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sun, 23 Jul 2017 11:12:01 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117536#p117536</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получить код нажатой клавиши в переменную.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117535#p117535</link>
			<description><![CDATA[<p><strong>serzh82saratov</strong><br />Кстати, получится ли у вас вызвать меню в проводнике нажатием альт, после установки хоткеев на все клавиши?</p>]]></description>
			<author><![CDATA[null@example.com (stealzy)]]></author>
			<pubDate>Sun, 23 Jul 2017 11:04:14 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117535#p117535</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получить код нажатой клавиши в переменную.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117534#p117534</link>
			<description><![CDATA[<p><strong>Viruzober</strong><br />Но там же написано куда пишется:<br /></p><div class="codebox"><pre><code>
Loop
{
	Input, SingleKey, L1, {LControl}{RControl}{LAlt}{RAlt}{LShift}{RShift}{LWin}{RWin}
	If InStr(ErrorLevel, &quot;EndKey:&quot;)
		ToolTip % SubStr(ErrorLevel, 8)
	Else
		ToolTip % SingleKey
}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sun, 23 Jul 2017 10:59:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117534#p117534</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получить код нажатой клавиши в переменную.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117533#p117533</link>
			<description><![CDATA[<p><strong>serzh82saratov</strong></p><div class="quotebox"><cite>stealzy пишет:</cite><blockquote><p>ничего лучше установки прозрачного хоткея на каждую не придумалось</p></blockquote></div><p>Если хоткеи не нужны можно и так.</p>]]></description>
			<author><![CDATA[null@example.com (stealzy)]]></author>
			<pubDate>Sun, 23 Jul 2017 10:55:29 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117533#p117533</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получить код нажатой клавиши в переменную.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117532#p117532</link>
			<description><![CDATA[<p><strong>serzh82saratov</strong> Пример то я видел, но там сказано что&nbsp; клавиши из списка не пишутся в переменную.<br />.</p>]]></description>
			<author><![CDATA[null@example.com (Viruzober)]]></author>
			<pubDate>Sun, 23 Jul 2017 10:54:15 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117532#p117532</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получить код нажатой клавиши в переменную.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117531#p117531</link>
			<description><![CDATA[<div class="quotebox"><cite>Viruzober пишет:</cite><blockquote><p>возможно ли с моим примером обрабатывать клавиши типа ctrl alt shift</p></blockquote></div><p>Я с начала не заметил что &quot;с моим примером&quot;, 32 пост поправил чтобы можно было. </p><p>А так в инпут можно добавить их как завершающие клавиши, в русском хелпе есть примеры.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sun, 23 Jul 2017 10:50:39 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117531#p117531</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получить код нажатой клавиши в переменную.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117530#p117530</link>
			<description><![CDATA[<p><strong>serzh82saratov</strong> Простите, для чайника поясните? Куда именно добавить? В input?</p>]]></description>
			<author><![CDATA[null@example.com (Viruzober)]]></author>
			<pubDate>Sun, 23 Jul 2017 10:50:15 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117530#p117530</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получить код нажатой клавиши в переменную.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117527#p117527</link>
			<description><![CDATA[<p><strong>teadrinker</strong> <br />Точнее не LLKHF_UP а Ext &gt;&gt; 7.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sun, 23 Jul 2017 10:37:05 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117527#p117527</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получить код нажатой клавиши в переменную.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117526#p117526</link>
			<description><![CDATA[<p><strong>serzh82saratov</strong> А все-таки возможно ли с моим примером обрабатывать клавиши типа ctrl alt shift и т. д. попытался что-то не получилось.</p>]]></description>
			<author><![CDATA[null@example.com (Viruzober)]]></author>
			<pubDate>Sun, 23 Jul 2017 10:36:57 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117526#p117526</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получить код нажатой клавиши в переменную.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117525#p117525</link>
			<description><![CDATA[<div class="quotebox"><cite>stealzy пишет:</cite><blockquote><p>получить строку вида: {vk1 down}{vk43 down}{vk43 up}{vk1 up}?</p></blockquote></div><div class="codebox"><pre><code>Visible := 0   ;	пропускать ввод в систему

vkhks = 3|4|5|6|8|9|C|D|10|11|12|13|14|1B|20|21|22|23|24|25|26|27|28|2C|2D|2E|2F|30|31|32|33|34|35|36|37|38|39|41|42|43|44|45|46|47|48|49|4A|4B|4C|4D|4E|4F|50|51|52|53|54|55|56|57|58|59|5A|5B|5C|5D|5F|60|61|62|63|64|65|66|67|68|69|6A|6B|6D|6E|6F|70|71|72|73|74|75|76|77|78|79|7A|7B|7C|7D|7E|7F|80|81|82|83|84|85|86|87|90|91|9C|9D|9E|9F|A0|A1|A2|A3|A4|A5|A6|A7|A8|A9|AA|AB|AC|AD|AE|AF|B0|B1|B2|B3|B4|B5|B6|B7|BA|BB|BC|BD|BE|BF|C0|DB|DC|DD|DE|E2

V := Visible ? &quot;~&quot; : &quot;&quot;
Loop, Parse, vkhks, |
{
	Hotkey, % V &quot;*vk&quot; A_LoopField, Hotkey
	Hotkey, % V &quot;*vk&quot; A_LoopField &quot; Up&quot;, Hotkey
}
Return

Hotkey:
	ks .= &quot;{&quot; RegExReplace(A_ThisHotkey, &quot;[~\*]&quot;) (InStr(A_ThisHotkey, &quot; Up&quot;) ? &quot;&quot; : &quot; Down&quot;) &quot;}&quot;
	ToolTip % ks
	Return

Escape:: ExitApp</code></pre></div><div class="codebox"><pre><code>Loop % 0xFF
{
	vk := Format(&quot;{:X}&quot;, A_Index) 
	If GetKeyName(&quot;vk&quot; vk) != &quot;&quot;
		Str .= vk &quot;|&quot;
} 
MsgBox, , % i, % Clipboard := Str
ExitApp </code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sun, 23 Jul 2017 10:22:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117525#p117525</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получить код нажатой клавиши в переменную.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=117524#p117524</link>
			<description><![CDATA[<p>Тогда проще наверное хоткеями:</p><div class="codebox"><pre><code>
Visible := 0   ;	пропускать ввод в систему

vkhks = 30|31|32|33|34|35|36|37|38|39|41|42|43|44|45|46|47|48|49|4A|4B|4C|4D|4E|4F|50|51|52|53|54|55|56|57|58|59|5A|5B|5C|60|61|62|63|64|65|66|67|68|69|6A|6B|6D|6E|6F|A0|A1|A2|A3|A4|A5|BA|BB|BC|BD|BE|BF|C0|DB|DC|DD|DE|E2
V := Visible ? &quot;~&quot; : &quot;&quot;
Loop, Parse, vkhks, |
{
	Hotkey, % V &quot;*vk&quot; A_LoopField, Hotkey
	Hotkey, % V &quot;*vk&quot; A_LoopField &quot; Up&quot;, Hotkey
}
	
Hotkey:
	ToolTip % RegExReplace(A_ThisHotkey, &quot;[~\*]&quot;)
	Return
</code></pre></div><p>Получить нужные коды не сложно, также как и все.<br /></p><div class="codebox"><pre><code>
Loop % 0xFF
{
	vk := Format(&quot;{:X}&quot;, A_Index) 
	Name := GetKeyName(&quot;vk&quot; vk)
	If StrLen(Name) = 1 || Name ~= &quot;Numpad(\d|Dot|Div|Mult|Sub|Add)&quot; || Name ~= &quot;i)(l|r)(control|alt|shift|win)&quot;
		Str .= vk &quot;|&quot;
} 
MsgBox, , % i, % Clipboard := Str
ExitApp 
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sun, 23 Jul 2017 10:17:31 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=117524#p117524</guid>
		</item>
	</channel>
</rss>
