首页 > 编程知识 正文

键盘快捷键被禁用要怎样才能解除禁用,win10禁用键盘快捷键

时间:2023-05-04 19:16:39 阅读:271632 作者:4868

禁用键盘快捷键

If you’ve got a pet or small child, you know that an unguarded keyboard can spell disaster—or more likely, spell “dhjkhskauhkwuahjsdkja,mnsd”. We’ve got a tool for locking and unlocking your keyboard with a quick keyboard shortcut.

如果您有宠物或小孩,您就会知道,无人看管的键盘可能会造成灾难,甚至更有可能会造成“ dhjkhskauhkwuahahjsdkja,mnsd”的拼写。 我们提供了使用快捷键盘快捷键来锁定和解锁键盘的工具。

Keyboard Locker is a small program that handles this job well and takes up few system resources. It was originally a small AutoHotKey script written by an AutoHotKey forum-goer named Lexikos. We’ve spruced it up a bit and compiled it so that you don’t need to have AutoHotKey installed. If you do have AutoHotKey installed, we’ve included the original script in the download so that you can tweak it to your liking.

Keyboard Locker是一个小程序,可以很好地处理此工作,并且占用很少的系统资源。 它最初是由AutoHotKey论坛访问者Lexikos编写的小型AutoHotKey脚本。 我们对它进行了一些整理和编译,以使您不需要安装AutoHotKey。 如果您确实安装了AutoHotKey ,我们将在下载中包含原始脚本,以便您可以根据自己的喜好对其进行调整。

下载并运行键盘锁 (Download and Run Keyboard Locker)

To get started, go ahead and download Keyboard Locker. Unzip the Keyboard Locker folder wherever you want to keep it on your hard drive. and open the Keyboard Locker folder. You’ll see a number of files inside. These include some icon files and a readme, but the important two files are “KeyboardLocker.exe” and “KeyboardLocker.ahk.”

要开始使用,请继续并下载Keyboard Locker 。 将“键盘锁”文件夹解压缩到要保留在硬盘驱动器上的任何位置。 并打开Keyboard Locker文件夹。 您会在其中看到许多文件。 这些文件包括一些图标文件和一个自述文件,但重要的两个文件是“ KeyboardLocker.exe”和“ KeyboardLocker.ahk”。

If you do not have AutoHotKey installed, you’ll need to double-click “KeyboardLocker.exe” to run it. This file is an AutoHotKey script compiled to run as a standalone program, so that you don’t need AutoHotKey to use it.

如果没有安装AutoHotKey,则需要双击“ KeyboardLocker.exe”以运行它。 该文件是一个AutoHotKey脚本,已编译为可作为独立程序运行,因此您不需要AutoHotKey即可使用它。

If you already use AutoHotKey, you can use the “KeyboardLocker.ahk” file instead to run the script directly. The advantage of using the script version is that, if you’re familiar with AutoHotKey, you can edit the script yourself to change the shortcuts for locking and unlocking your keyboard.

如果您已经使用AutoHotKey,则可以使用“ KeyboardLocker.ahk”文件直接运行脚本。 使用脚本版本的好处是,如果您熟悉AutoHotKey,则可以自己编辑脚本以更改用于锁定和解锁键盘的快捷方式。

When you launch Keyboard Locker, you’ll see a small keyboard icon appear in your notification area. The tool is now ready for use.

启动Keyboard Locker时,您会在通知区域看到一个小的键盘图标。 该工具现在可以使用了。

To lock your keyboard, press Ctrl+Alt+L. The Keyboard Locker icon changes to indicate that the keyboard is locked.

要锁定键盘,请按Ctrl + Alt + L。 键盘更衣室图标更改为指示键盘已被锁定。

Almost all keyboard input is now disabled, including function keys, Caps Lock, Num Lock, and most special keys on media keyboards. There are a few key combinations that will still work, such as Ctrl+Alt+Delete and Win+L, but those are extremely unlikely for a paw or tiny hand to hit by accident.

现在几乎所有的键盘输入都被禁用,包括功能键,Caps Lock,Num Lock和媒体键盘上的大多数特殊键。 有一些组合键仍然可以使用,例如Ctrl + Alt + Delete和Win + L,但是对于爪子或小手意外击中的可能性极小。

When you want re-enable keyboard input, simply type in the word “unlock.” The Keyboard icon changes back to normal again to show that the keyboard is unlocked.

如果您想重新启用键盘输入,只需输入单词“ unlock”。 键盘图标再次变回正常,以显示键盘已解锁。

如何显示气球通知提醒 (How to Show Balloon Notification Reminders)

By default, Keyboard Locker does not display notifications when you lock or unlock your keyboard. If you’d like to see them, right-click the Keyboard Locker icon in the notification area and choose “Show tray notifications.”

默认情况下,当您锁定或解锁键盘时,Keyboard Locker不会显示通知。 如果您想查看它们,请右键单击通知区域中的键盘锁图标,然后选择“显示任务栏通知”。

Keyboard Locker will now show notifications when you lock or unlock your keyboard.

现在,当您锁定或解锁键盘时,键盘锁会显示通知。

If you prefer not seeing notifications, you can also get a reminder of the shortcuts for locking and unlocking your keyboard by hovering your mouse over the Keyboard Locker icon.

如果您不希望看到通知,则还可以通过将鼠标悬停在“键盘锁”图标上来提醒您锁定和解锁键盘的快捷方式。

Note: On on some PCs we’ve tested running Windows 10, when you unlock your keyboard while notifications are turned on, it sometimes can take several seconds after typing “unlock” for keyboard functionality to return. It will return, though.

注意:在某些我们测试过运行Windows 10的PC上,当打开通知时解锁键盘时,有时在键入“解锁”后可能需要几秒钟才能返回键盘功能。 但是它将返回。

Windows启动时如何启动键盘锁 (How to Start Keyboard Locker when Windows Starts)

It’s easy enough to run Keyboard Locker when you need it, but you can also have it run automatically when Windows starts by adding it to the Windows startup folder. Hit up our guide on how to add programs, files, and folders to system startup in Windows for the full instructions.

在需要时可以很容易地运行Keyboard Locker,但也可以通过将Windows Locker Locker添加到Windows启动文件夹中来自动运行它。 阅读我们的指南,了解如何在Windows中为系统启动添加程序,文件和文件夹,以获取完整说明。

In short, though, just store your AutoHotKey folder wherever you want. Open the Run dialog by pressing Windows+R, type “shell:startup,” and then click “OK.”

简而言之,不过,只要将AutoHotKey文件夹存储在所需的位置即可。 通过按Windows + R打开“运行”对话框,键入“ shell:启动”,然后单击“确定”。

Create a shortcut to the “KeyboardLocker.exe” or “KeyboardLocker.ahk” file—whichever you use—in the Windows startup folder. You can do this by dragging the file to the startup folder with your right mouse button and choosing “Create shortcut here” or by right-clicking anywhere in the startup folder and choosing New > Shortcut from the context menu. Once the shortcut is in place, Keyboard Locker will run automatically when you start Windows.

在Windows启动文件夹中,创建指向“ KeyboardLocker.exe”或“ KeyboardLocker.ahk”文件的快捷方式(无论使用哪种方式)。 您可以使用鼠标右键将文件拖动到启动文件夹中,然后选择“在此处创建快捷方式”,或者右键单击启动文件夹中的任意位置,然后从上下文菜单中选择“新建”>“快捷方式”,以执行此操作。 快捷方式到位后,启动Windows时Keyboard Locker将自动运行。

Keyboard Locker is a great utility for those of us with curious creatures and inquisitive infants. If you have a different use for this program or you make any clever modifications to the script, let us know in the comments!

键盘储物柜对于我们这些有好奇的动物和好奇的婴儿的人来说是一个伟大的工具。 如果您对该程序有不同的用途,或者对脚本进行了任何巧妙的修改,请在注释中告知我们!

Image Credit: NOGRAN s.r.o./Flickr

图片来源: NOGRAN sro / Flickr

翻译自: https://www.howtogeek.com/howto/11570/disable-the-keyboard-with-a-keyboard-shortcut-in-windows/

禁用键盘快捷键

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。