<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Нажатие на кнопку с KeyCode 91]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=18022</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=18022&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Нажатие на кнопку с KeyCode 91».]]></description>
		<lastBuildDate>Wed, 06 Dec 2023 15:10:27 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Нажатие на кнопку с KeyCode 91]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=159664#p159664</link>
			<description><![CDATA[<p>Удалось решить задачу, заблокировав Windows-L в реестре (<a href="https://superuser.com/questions/1059511/how-to-disable-winl-in-windows-10#comment1742584_1059578/">ссылка</a>).</p><p>При этом на кнопку &quot;Lock PC&quot; вполне себе вешаются скрипты AutoHotkey.</p><div class="codebox"><pre><code>#sc26::MsgBox, Lock PC теперь не работает</code></pre></div><p>Всем спасибо.</p>]]></description>
			<author><![CDATA[null@example.com (AlexLF)]]></author>
			<pubDate>Wed, 06 Dec 2023 15:10:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=159664#p159664</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Нажатие на кнопку с KeyCode 91]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=159663#p159663</link>
			<description><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><div class="quotebox"><cite>AlexLF пишет:</cite><blockquote><p>а потом все равно блокируется</p></blockquote></div><p>А так тоже?<br /></p><div class="codebox"><pre><code>#If 1
#sc26::MsgBox
#If</code></pre></div></blockquote></div><p>Так тоже. Выводится пустое окно.</p>]]></description>
			<author><![CDATA[null@example.com (AlexLF)]]></author>
			<pubDate>Wed, 06 Dec 2023 15:06:39 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=159663#p159663</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Нажатие на кнопку с KeyCode 91]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=159661#p159661</link>
			<description><![CDATA[<div class="quotebox"><cite>AlexLF пишет:</cite><blockquote><p>а потом все равно блокируется</p></blockquote></div><p>А так тоже?<br /></p><div class="codebox"><pre><code>#If 1
#sc26::MsgBox
#If</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Wed, 06 Dec 2023 10:49:17 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=159661#p159661</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Нажатие на кнопку с KeyCode 91]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=159660#p159660</link>
			<description><![CDATA[<p>А AhkSpy что говорит о нажатой кнопке?</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Wed, 06 Dec 2023 10:34:20 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=159660#p159660</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Нажатие на кнопку с KeyCode 91]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=159659#p159659</link>
			<description><![CDATA[<p>Значит бывает по разному.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Wed, 06 Dec 2023 10:33:31 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=159659#p159659</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Нажатие на кнопку с KeyCode 91]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=159658#p159658</link>
			<description><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>#sc26::MsgBox</p></blockquote></div><p>Выводит окошко сообщения, а потом все равно блокируется. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (AlexLF)]]></author>
			<pubDate>Wed, 06 Dec 2023 10:15:41 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=159658#p159658</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Нажатие на кнопку с KeyCode 91]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=159657#p159657</link>
			<description><![CDATA[<div class="quotebox"><cite>m00slim25 пишет:</cite><blockquote><p>Потому что заблокировать комбинацию Win-L нет возможности - это системная комбинация</p></blockquote></div><p>У меня это блокирует.<br /></p><div class="codebox"><pre><code>#sc26::MsgBox</code></pre></div><p>Вроде только один Ctrl+Alt+Delete не блокируется.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Wed, 06 Dec 2023 09:52:15 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=159657#p159657</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Нажатие на кнопку с KeyCode 91]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=159656#p159656</link>
			<description><![CDATA[<div class="quotebox"><cite>AlexLF пишет:</cite><blockquote><p>Как она называется, я не знаю.</p></blockquote></div><p>У меня в подписи AhkSpy.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Wed, 06 Dec 2023 09:45:34 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=159656#p159656</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Нажатие на кнопку с KeyCode 91]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=159640#p159640</link>
			<description><![CDATA[<p>&gt; Эту «пакость» может делать либо какой то софт, предустановленный производителем ноутбука, либо это может происходить прямо на уровне прошивки ноутбука.</p><p>Это отдельная беспроводная клавиатура.</p>]]></description>
			<author><![CDATA[null@example.com (AlexLF)]]></author>
			<pubDate>Tue, 05 Dec 2023 17:10:28 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=159640#p159640</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Нажатие на кнопку с KeyCode 91]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=159639#p159639</link>
			<description><![CDATA[<p>К сожалению, не получается поймать код кнопки &quot;Lock PC&quot;. </p><p>Но, кажется, он нажатие кнопки &quot;L&quot; ловит. Когда я нажимаю Alt-LockPC, скрипт показывает сначала &quot;Alt+L&quot;, затем &quot;!д&quot;. </p><p>То есть, вероятно, клавиатура сама кодирует сочетание Win-L. &quot;д&quot; это и есть &quot;L&quot;.</p><p>Как будет нажатие Win, потом L? Я Win-L не пользуюсь.</p><p>Типа WinL::пусто.</p>]]></description>
			<author><![CDATA[null@example.com (AlexLF)]]></author>
			<pubDate>Tue, 05 Dec 2023 17:08:29 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=159639#p159639</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Нажатие на кнопку с KeyCode 91]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=159637#p159637</link>
			<description><![CDATA[<div class="quotebox"><cite>DestroyerCode пишет:</cite><blockquote><p>Попробуй использовать скрипт, чтобы узнать название кнопки.</p></blockquote></div><p>Бессмысленное занятие.<br />Видно же, что у кнопки нет своего кода - в WinAPI отдаётся код кнопки <strong>LWin</strong> при первом же нажатии.</p><div class="quotebox"><cite>DestroyerCode пишет:</cite><blockquote><p>Но это не 100% результат, потому что в базе HotKey, возможно, не будет данной кнопки, но пробовать стоит.</p></blockquote></div><p>Какой ещё <em>базе HotKey</em> ?! Вызовы функций WinAPI - есть, а <em>базы</em> никакой и в помине нет. </p><div class="quotebox"><cite>DestroyerCode пишет:</cite><blockquote><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code>
Gui, Add, Hotkey, w150 h20 vHotkey
Gui, Add, Button, x60 w50 h30 gKeyInfo, ОК
Gui, Show
return

KeyInfo:
Gui, Submit, NoHide,
MsgBox, %HotKey%
return
</code></pre></div></div></div></blockquote></div><p>Поле типа Hotkey для Gui не работает с кнопками <strong>Win</strong>.<br /><a href="https://www.autohotkey.com/docs/v1/lib/GuiControls.htm#Hotkey"><span class="postimg"><img src="https://i.imgur.com/rwE7hGt.png" alt="https://i.imgur.com/rwE7hGt.png" /></span></a></p>]]></description>
			<author><![CDATA[null@example.com (m00slim25)]]></author>
			<pubDate>Tue, 05 Dec 2023 12:02:02 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=159637#p159637</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Нажатие на кнопку с KeyCode 91]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=159635#p159635</link>
			<description><![CDATA[<p>Попробуй использовать скрипт, чтобы узнать название кнопки.<br />Но это не 100% результат, потому что в базе HotKey, возможно, не будет данной кнопки, но пробовать стоит.</p><div class="codebox"><pre><code>
Gui, Add, Hotkey, w150 h20 vHotkey
Gui, Add, Button, x60 w50 h30 gKeyInfo, ОК
Gui, Show
return

KeyInfo:
Gui, Submit, NoHide,
MsgBox, %HotKey%
return
</code></pre></div><p>А чтобы заблокировать кнопку, можно использовать.<br /></p><div class="codebox"><pre><code>
KeyBlockOn := !KeyBlockOn
#If KeyBlockOn
*NumPad5:: ; кнопка для примера
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (DestroyerCode)]]></author>
			<pubDate>Mon, 04 Dec 2023 17:59:21 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=159635#p159635</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Нажатие на кнопку с KeyCode 91]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=159634#p159634</link>
			<description><![CDATA[<p>91 - это десятичное значение виртуального кода кнопки <strong>Левый Win</strong> (vk5B).<br />Это может говорить о том, что у самой кнопки с замочком нет кода. Она просто вызывает макрос, который программно нажимает <strong>LWin-L</strong>.<br />Эту «пакость» может делать либо какой то софт, предустановленный производителем ноутбука, либо это может происходить прямо на уровне прошивки ноутбука.<br />Покопайтесь в программах, запущенных резидентно, может что то и удастся обнаружить.<br />Потому что заблокировать комбинацию <strong>Win-L</strong> нет возможности - это системная комбинация, и Windows перехватывает её самостоятельно, не давая к ней доступ ни одной программе, кроме тех что запущены на уровне ядра ОС или драйверов.</p>]]></description>
			<author><![CDATA[null@example.com (m00slim25)]]></author>
			<pubDate>Mon, 04 Dec 2023 16:54:00 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=159634#p159634</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Нажатие на кнопку с KeyCode 91]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=159633#p159633</link>
			<description><![CDATA[<p>С помощью &quot;Key history and script info&quot; vk и sk это клавиши не ловится. Отсутствует в списке нажатых клавиш...</p>]]></description>
			<author><![CDATA[null@example.com (AlexLF)]]></author>
			<pubDate>Mon, 04 Dec 2023 16:47:51 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=159633#p159633</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Нажатие на кнопку с KeyCode 91]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=159632#p159632</link>
			<description><![CDATA[<p>У меня на новой клавиатуре есть кнопка, где изображен замочек. При нажатии на нее она блокирует систему. Т.е. делает то же, что Windows-L. Мне это не надо.</p><p>Я хочу ее заблокировать или назначить ей другие функции. Как она называется, я не знаю. Знаю только (посмотрел в определителе кнопок allcalc.ru/node/1975), что ее KeyCode = 91. В списках кнопок ее не нашел.</p><p>Как сделать, чтобы было типа:</p><p>Key(91):: Esc</p><p>?</p>]]></description>
			<author><![CDATA[null@example.com (AlexLF)]]></author>
			<pubDate>Mon, 04 Dec 2023 15:28:28 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=159632#p159632</guid>
		</item>
	</channel>
</rss>
