<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Поменять функциями две клавиши - Insert и PrntScr]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=18204&amp;type=atom" />
	<updated>2024-05-27T18:42:31Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=18204</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поменять функциями две клавиши - Insert и PrntScr]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160992#p160992" />
			<content type="html"><![CDATA[<p>Спасибо!</p>]]></content>
			<author>
				<name><![CDATA[fornit]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43746</uri>
			</author>
			<updated>2024-05-27T18:42:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160992#p160992</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поменять функциями две клавиши - Insert и PrntScr]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160987#p160987" />
			<content type="html"><![CDATA[<p><a href="https://forum.script-coding.com/viewtopic.php?id=5690">AHK: Определение виртуальных и скан-кодов клавиатуры</a><br />Или проще:<br /></p><div class="codebox"><pre><code>Gui, +AlwaysOnTop
Gui, Font, s12, Calibri
Gui, Add, Edit, w200 h100
Gui, Show

hook := InputHook()
hook.KeyOpt(&quot;{All}&quot;, &quot;NS&quot;)
hook.OnKeyDown := Func(&quot;GetKeyInfo&quot;)
hook.Start()

GetKeyInfo(hook, vk, sc) {
    GuiControl,, Edit1, % &quot;Name: &quot; . GetKeyName(Format(&quot;vk{:x}sc{:x}&quot;, vk, sc)) . &quot;`n&quot;
                        . &quot;vk: &quot;   . Format(&quot;0x{:02x}&quot;, vk) . &quot;`n&quot;
                        . &quot;sc: &quot;   . Format(&quot;0x{:02x}&quot;, sc)
}

GuiClose() {
    ExitApp
}</code></pre></div><p>Запустите тот или другой скрипт, понажимайте клавиши. Если реакции на клавишу нет, значит у неё нет кодов (аппаратная).</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-05-27T17:09:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160987#p160987</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поменять функциями две клавиши - Insert и PrntScr]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160986#p160986" />
			<content type="html"><![CDATA[<p>И еще один вопрос. Купил давно BT Keyboard от Микрософт. Эти извращенцы убрали из нее несколько привычных клавиш, типа NumLock, зато добавили кучу таких, которых в нормальной клаве нет -- например &quot;смайлик&quot; или &quot;замок&quot;, которая сразу над Backspace -- очень удобно, палец промахнулся и комп сразу залочен...</p><p>Как найти коды этих нестандартных клавиш?</p>]]></content>
			<author>
				<name><![CDATA[fornit]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43746</uri>
			</author>
			<updated>2024-05-27T11:54:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160986#p160986</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поменять функциями две клавиши - Insert и PrntScr]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160985#p160985" />
			<content type="html"><![CDATA[<p>Можно ссылочку? Я долго искал еще до того как сюда написал.</p><p>P.S. Нашел с трудом. Рабочий вариант такой:</p><div class="codebox"><pre><code>Insert::PrintScreen
PrintScreen::Insert
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[fornit]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43746</uri>
			</author>
			<updated>2024-05-27T10:51:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160985#p160985</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поменять функциями две клавиши - Insert и PrntScr]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160984#p160984" />
			<content type="html"><![CDATA[<p>В справке есть список названий клавиш.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-05-27T10:34:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160984#p160984</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поменять функциями две клавиши - Insert и PrntScr]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160983#p160983" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Insert::PrntScr
PrntScr::Insert
</code></pre></div><p><span class="postimg"><img src="https://i.imgur.com/6RCneGq.png" alt="https://i.imgur.com/6RCneGq.png" /></span></p><p>Ничего не выходит...</p>]]></content>
			<author>
				<name><![CDATA[fornit]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43746</uri>
			</author>
			<updated>2024-05-27T10:32:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160983#p160983</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поменять функциями две клавиши - Insert и PrntScr]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160982#p160982" />
			<content type="html"><![CDATA[<p>А зачем коды клавиш? Используйте их названия.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-05-27T08:38:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160982#p160982</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поменять функциями две клавиши - Insert и PrntScr]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160981#p160981" />
			<content type="html"><![CDATA[<p>Только нужно знать коды этих клавиш.</p>]]></content>
			<author>
				<name><![CDATA[fornit]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43746</uri>
			</author>
			<updated>2024-05-27T00:56:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160981#p160981</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поменять функциями две клавиши - Insert и PrntScr]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160980#p160980" />
			<content type="html"><![CDATA[<p>В справке же есть пример переназначения клавиш.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2024-05-26T20:52:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160980#p160980</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Поменять функциями две клавиши - Insert и PrntScr]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160979#p160979" />
			<content type="html"><![CDATA[<p>Мне продали дефектную клавиатуру для ноута, и при нажатии Insert в верхней строке он срабатывает как PrntScr, а PrntScr соотв как Insert. Как мне поменять эти функции глобально? Желательно, чтобы так работало всегда и везде?</p>]]></content>
			<author>
				<name><![CDATA[fornit]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43746</uri>
			</author>
			<updated>2024-05-26T19:54:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160979#p160979</id>
		</entry>
</feed>
