如何禁用或重新分配Windows密钥?

If you’re not sold on the functionality of the now ubiquitous Windows key, can you reassign it to a more useful task? Read on to see how.

如果您不喜欢现在无处不在的Windows键的功能,可以将它重新分配给更有用的任务吗? 继续阅读以了解操作方法。

Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.

今天的“问答”环节由SuperUser提供,它是Stack Exchange的一个分支,该社区是由社区驱动的Q&A网站分组。

问题 (The Question)

SuperUser reader Auron wants to know:

超级用户读者Auron想知道:

Between Ctrl and Alt, modern keyboards have an abominable key: the ‘Windows’ key :P

CtrlAlt之间 ,现代键盘具有可恶的键:“ Windows”键:P

By default, when this key is pressed alone it opens the Start menu. Many applications and a great number of games work in fullscreen mode, and if you press this key accidentally, most of times because you wanted to press the Ctrl or Alt keys, the application usually freezes for a while and minimizes itself. If you are lucky, your videogame will pause, but sometimes it continues even when it is minimized.

默认情况下,当单独按下此键时,它将打开“开始”菜单。 许多应用程序和大量游戏都在全屏模式下工作,如果您不小心按此键(通常是因为要按CtrlAlt键),则该应用程序通常会冻结一段时间并将其最小化。 如果幸运的话,您的视频游戏会暂停,但有时即使最小化也会继续。

Is it possible to disable the ‘Windows’ key?

是否可以禁用“ Windows”键?

It would be possible to show the Start menu with another combination of keys? I would like to keep combinations that use the Windows key working, like Windows+L, which leaves current session.

是否可以使用其他组合键显示“开始”菜单? 我想保持使用Windows键的组合正常工作,例如Windows + L ,这会保留当前会话。

What can Auron do?

奥龙能做什么?

答案 (The Answer)

Several SuperUser contributors all pitched some great ideas for helping Auron. Phoshi suggests:

几位SuperUser贡献者都提出了一些帮助Auron的好主意。 Phoshi建议:

Autohotkey?

自动热键?

That can do a lot more, too.

这也可以做得更多。

LWin::Return 
 LWin::Return  

disables it, but

禁用它,但是

#F::Run firefox.exe 

would tell Win&F to run firefox. You could even set the winkey to only be disabled ingame, or require a double-press to fire, or have to hold it down before it triggers, and more!

会告诉Win&F运行firefox。 您甚至可以将Winkey设置为仅在游戏中被禁用,或者需要双击以触发,或者必须在触发之前将其按住,等等!

If you’ve never used AutoHotkey before, we’d strongly suggest checking out some of our articles on the handy little program including: The Beginner’s Guide to Using an AutoHotkey ScriptHow to Save Time by Automating Tedious Tasks with AutoHotkey, and Insert Any Special Character with a Single Keystroke.

如果您以前从未使用过AutoHotkey,我们强烈建议您查看有关便捷小程序的一些文章,包括: 使用AutoHotkey脚本的初学者指南如何通过使用AutoHotkey自动完成繁琐的任务以节省时间插入任何内容具有单个击键的特殊字符

Another contributor, Junior Mayhé, offers this suggestion:

另一个贡献者JuniorMayhé提供了以下建议:

You can download SharpKeys! It saved my life, especially when I want to press ESC and accidentally press F1.

您可以下载SharpKeys! 它挽救了我的生命,尤其是当我想按ESC并不小心按F1时。

SharpKeys is free. You can download it from here

SharpKeys是免费的。 您可以从这里下载

  • When installed, click on Add button,

    安装后,点击添加按钮,
  • on Map this key (from key) section click on Type key button. Type F1.

    在“ 映射此键(从键)”部分,单击“ 类型键”按钮。 键入F1。

  • on the To this key (to key) section, select Turn Key off item.

    在“ 转到此键(转到键)”部分,选择“关闭键”项。

Confirm with OK, reboot your Windows (because registry got changed). You’re done!

单击确定确认,重新启动Windows(因为注册表已更改)。 你完成了!

Finally, MiffTheFox offers a solution that simply disables the Windows key altogether so there is no accidental key presses when using the left ALT and CTRL keys:

最后,MiffTheFox提供了一种解决方案,可以完全禁用Windows键,因此在使用左ALT和CTRL键时不会意外按下键:

You can add a certain value to the Registry to disable it. Here is a good tutorial, and some .reg files you can download.

您可以将某个值添加到注册表以将其禁用。 这是一个很好的教程,您可以下载一些.reg文件。

However, this will disable the key entirely, as in no WinKey shortcuts. However, what I do is that I disable only the left Windows key, and use the right one to enter shortcuts. It’s a sacrifice, but it means that I don’t minimize anything fullscreen by accident.

但是,这将完全禁用该密钥,就像没有WinKey快捷方式一样。 但是,我要做的是仅禁用左Windows键,并使用右键输入快捷方式。 这是一种牺牲,但这意味着我不会偶然将全屏显示最小化。

Thanks to their contributions we have two perfectly serviceable solutions to help remap the Windows (or any) key to a new function and one way to outright disable it.

归功于他们的贡献,我们提供了两种非常实用的解决方案,可帮助将Windows(或任何)键重新映射为新功能,以及一种完全禁用它的方法。



Have something to add to the explanation? Sound off in the the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.

有什么补充说明吗? 在评论中听起来不对。 是否想从其他精通Stack Exchange的用户那里获得更多答案? 在此处查看完整的讨论线程

翻译自: https://www.howtogeek.com/131589/how-can-i-disable-or-reassign-the-windows-key/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值