Windows键盘上的功能键(F1 到 F12)(Function Keys (F1 to F12))具有专门分配的角色。例如,F1打开您当前使用的任何应用程序的帮助页面。这在许多情况下都很有用。但是,您可能出于某种原因想要禁用它。
Windows操作系统不提供禁用 F1 键的方法,但我将向您展示一些调整来完成它。在本文中,您将了解如何暂时禁用键盘上的 F1 键以及如何使用多种方法重新启用该键。
禁用键盘上的 F1 帮助键
阅读本节并严格按照指南进行操作,因为我们将修改Windows系统的精密组件,例如注册表编辑器(Registry Editor)。以下是我们将在本指南中探讨的方法:
- 使用AutoHotkey(AutoHotkey)禁用 F1 键。
- 从Windows 注册表(Windows Registry)禁用 F1 键。
- 使用 SharpKeys 重新映射 F1 键。
下面我们来看看上述禁用F1键的解决方案涉及的步骤。
1]使用AutoHotkey禁用(Disable)F1键
AutoHotkey是一款免费的轻量级Windows工具,可让您创建用于执行简单和复杂任务的脚本。使用AutoHotkey,您可以构建自动点击器、表单构建器、宏等。
此脚本工具还使您能够重新映射键和创建热键。因此(Hence),它提供了一种简单的方法来禁用 PC 上的 F1 键。要下载AutoHotkey,请访问 autohotkey.com 或从此直接链接(direct link)下载。
双击(Double-click)下载的文件并按照屏幕上的说明完成安装。安装AutoHotkey后,运行它。
最小化应用程序并右键单击您的Windows桌面。从上下文菜单中转到 New > AutoHotkey script您可以将新脚本重命名为您喜欢的任何名称,但将扩展名保留为 .ahk。
接下来,右键单击新脚本并选择 Edit script。在文件中已有文本末尾的脚本中输入以下行:
F1::return
输入该行后,按CTRL +S 或单击“文件 (File )”菜单并选择 “保存(Save)” 。您现在可以关闭脚本窗口。最后,右键单击桌面上的脚本并选择 运行脚本(Run script)以禁用 F1 键。
现在脚本正在运行,按 F1 将不会执行任何操作。要禁用或暂停/恢复脚本,请单击任务栏上的小箭头,然后右键单击AutoHotkey图标。
在这里,您可以找到重新加载、编辑、暂停、暂停或停止脚本的选项。
2]从Windows注册表中(Windows Registry)禁用F1键(Disable)
按(Press)Windows键并在开始菜单中搜索注册表 。(registry)右键单击 注册表编辑器(Registry Editor)并选择以管理员身份运行。(Run)
导航到以下注册表项:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
提示:(TIP: )您可以复制上述路径并将其粘贴到注册表编辑器的地址栏中。
右键单击 Scancode Map键并将值数据更改为:
00000000 00000000 02000000 00003B00 00000000
单击 确定(OK )保存设置并关闭注册表编辑器(Registry Editor)。
如果此注册表编辑器(Registry Editor)调整未按计划工作,或者您希望恢复 F1 键,您可以随时返回该键并将值数据更改回:
00000000 00000000 00000000 00000000 00000000
提示(TIP):键盘管理器 PowerToy 还可以帮助您重新映射键。(Keyboard Manager PowerToy can also help you remap keys.)
3]使用SharpKeys重新映射(Re-map)F1 键
SharpKeys是另一个Windows工具,但与AutoHotkeys 不同,(AutoHotkeys,) SharpKeys仅用于重新映射Windows键。它很容易使用,因为按键已经在界面上布置好,而且您无需编写脚本。
要使用这个程序,首先从Github下载它,然后从(Github)Start Menu启动它。从 主界面单击(Click)添加按钮。(Add)
单击 左侧 的Type Key按钮,在(Type Key)Map this key 下,(Map this key,)然后按键盘上的 F1 键。SharpKeys将检测功能:按下 F1 (00_3B)(Function: F1 (00_3B))键。
在弹出窗口上点击 确定(OK)以关闭它。
或者,您可以直接从左侧列表中找到Function: F1 (00_3B)项。(Function: F1 (00_3B))
单击 右侧框中列表中最顶部的项目Turn Key Off (00_00) 。
点击 确定(OK)按钮。
最后,单击 写入注册表(Write to Registry )按钮并重新启动计算机。
重新启动时,您会发现您已成功禁用键盘上的 F1 键。
要重新启用密钥,请打开SharpKeys,删除您创建的条目,然后点击Write to Registry。
相关阅读(Related read):功能 (Fn) 键在 Windows 10 笔记本电脑上不起作用。
希望这对你有用。
How to disable the F1 Help key in Windows 10
The Function Keys (F1 to F12) on the Windows keyboard have specifically assigned roles. For example, F1 opens the help page of any application you’re currently on. This is useful in many situations. However, you may want to disable it for some reason.
The Windows operating system doesn’t provide a method to disable the F1 key, but I’ll show you some tweaks to get it done. In this article, you’ll learn how to disable the F1 key on your keyboard temporarily and how to re-enable the key using several methods.
Disable F1 Help key on the keyboard
Read this section and follow the guides closely because we’ll modify the Windows system’s delicate components, such as the Registry Editor. Here are the methods we’ll explore in this guide:
- Disable the F1 key using AutoHotkey.
- Disable the F1 key from the Windows Registry.
- Re-map the F1 key using SharpKeys.
Let’s take a look at the steps involved in the above solutions for disabling the F1 key.
1] Disable the F1 key using AutoHotkey
AutoHotkey is a free, lightweight Windows tool that lets you create scripts for carrying out simple and complex tasks. With AutoHotkey, you can build auto-clickers, form builders, macros, etc.
This scripting tool also enables you to remap keys and create hotkeys. Hence, it provides an easy way to disable the F1 key on your PC. To download AutoHotkey, visit autohotkey.com or download it from this direct link.
Double-click the downloaded file and complete the installation following the on-screen instructions. After installing AutoHotkey, run it.
Minimize the application and right-click on your Windows desktop. Go to New > AutoHotkey script from the context menu. You can rename the new script to whatever you like, but leave the extension as .ahk.
Next, right-click on the new script and select Edit script. Enter the following line into the script at the end of the text already in the file:
F1::return
After entering the line, hit CTRL +S or click on the File menu and select Save. You can now close the script window. Finally, right-click on the script on your desktop and select Run script to disable the F1 key.
With the script now running, pressing F1 will do nothing. To disable or pause/resume the script, click on the little arrow on your taskbar and right-click on the AutoHotkey icon.
Here, you’ll find options to reload, edit, suspend, pause, or stop the script.
2] Disable the F1 key from the Windows Registry
Press the Windows key and search for registry in the Start menu. Right-click on Registry Editor and choose to Run as an administrator.
Navigate to the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
TIP: You can copy the above path and paste it into the Registry Editor’s address bar.
Right-click on the Scancode Map key and change the value data to:
00000000 00000000 02000000 00003B00 00000000
Click OK to save the settings and close the Registry Editor.
If this Registry Editor tweak doesn’t work as planned or you want your F1 key back, you can always return to the key and change the value data back to:
00000000 00000000 00000000 00000000 00000000
TIP: Keyboard Manager PowerToy can also help you remap keys.
3] Re-map the F1 key using SharpKeys
SharpKeys is another Windows tool, but unlike AutoHotkeys, SharpKeys is solely for remapping Windows keys. It’s easy to use because the keys are already laid out on the interface, and you do no scripting.
To use this program, download it from Github first and launch it from the Start Menu. Click on the Add button from the home interface.
Click on the Type Key button on the left, under Map this key, and press the F1 key on your keyboard. SharpKeys will detect the Function: F1 (00_3B) key pressed.
Hit OK on the popup to close it.
Alternatively, you could locate the Function: F1 (00_3B) item directly from the left-hand list.
Click on the topmost item, Turn Key Off (00_00), on the list in the right-hand box.
Hit the OK button.
Finally, click on the Write to Registry button and restart your computer.
On the restart, you’ll discover that you’ve successfully disabled the F1 key on your keyboard.
To re-enable the key, open SharpKeys, delete the entry you created, and hit Write to Registry.
Related read: Function (Fn) keys not working on Windows 10 laptop.
Hope this works for you.