从 Windows 禁用打印屏幕键盘选项
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28083031/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
disable the printscreen keyboard option from windows
提问by iqbalgndp gold
Is there any way to disable the Print Screenbutton from keyboard (without breaking it the key of-course). I am using the windows 7.
有什么方法可以禁用 键盘上的 Print Screen按钮(当然不会破坏它的键)。我正在使用 Windows 7。
I need it because increase the security of my database which is used by few employees.
我需要它是因为增加了少数员工使用的数据库的安全性。
回答by Syberdoor
You can disable any key if you manipulate the scancode map registry key. A small tutorial with explanation of the settings can be found here(a more detailed explanation of the scancode map here).
如果您操作扫描码映射注册表项,则可以禁用任何项。一个小教程与设置的解释可以发现这里(扫描码图的更详细的解释在这里)。
For the print screen key in particular you can create a new textfile containing:
特别是对于打印屏幕键,您可以创建一个新的文本文件,其中包含:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,04,00,00,00,00,00,2a,e0,00,00,37,e0,\
00,00,54,00,00,00,00,00
and save it as disable_printscreen.reg. You can then import it, as it is described here.
并将其保存为 disable_printscreen.reg。然后,您可以导入它,因为它是描述在这里。
If you want to undo your changes you can make a file with the content:
如果要撤消更改,可以创建一个包含内容的文件:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=-
Or delete the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout\Scancode Map manually.
或者手动删除 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout\Scancode Map 项。
As with all changes in the registry be sure that you understand what you are doing and make a backup first.
与注册表中的所有更改一样,请确保您了解自己在做什么并先进行备份。
EDIT: Sorry the link I had posted first was not good enough.
编辑:抱歉,我首先发布的链接不够好。
回答by Boopalan Krishnamoorthy
Steps to disable the print screen key:
禁用打印屏幕键的步骤:
- Click Start, click Run, type "regedt32" (without the quotation marks), and then click OK.
- On the Windows menu, click "HKEY_LOCAL_ MACHINE on Local Machine".
- Click the System\CurrentControlSet\Control folder, and then double-click the Keyboard Layout folder.
- On the Edit menu, click Add Value, type in "Scancode Map" (without the quotation marks), click REG_BINARY as the Data Type, and then click OK.
- Type "0000000000000000040000002AE037E0000037E00000540000000000" (without the quotation marks) in the Data field, and then click OK.
- Close the Registry Editor and restart the computer.
- 单击“开始”,单击“运行”,键入“regedt32”(不带引号),然后单击“确定”。
- 在 Windows 菜单上,单击“本地计算机上的 HKEY_LOCAL_MACHINE”。
- 单击 System\CurrentControlSet\Control 文件夹,然后双击键盘布局文件夹。
- 在编辑菜单上,单击添加值,键入“扫描码映射”(不带引号),单击 REG_BINARY 作为数据类型,然后单击确定。
- 在“数据”字段中键入“0000000000000000040000002AE037E0000037E00000540000000000”(不带引号),然后单击“确定”。
- 关闭注册表编辑器并重新启动计算机。