
windows全局热键
Have you ever had music playing loudly on your speakers when the phone rings… then you fumble for the speaker switch or the pause button on your music playing application while trying to answer the phone? Instead of bothering with that, I’ve always simply created a shortcut to mute the system volume instantly with the press of a key.
电话响过时,您是否曾经在扬声器上大声播放音乐……然后您在尝试接听电话时摸索着扬声器开关或音乐播放应用程序中的暂停按钮? 不必为此烦恼,我总是简单地创建了一个快捷键,只需按下一个键即可立即使系统音量静音。
Of course this isn’t terribly helpful if you have a multimedia keyboard with a mute button onboard, but some computers just don’t have one, or you don’t want to run the software required to make the keys work.
当然,如果您的板载多媒体键盘上有一个静音按钮,但这并不是非常有用,但是有些计算机却没有,或者您不想运行使按键正常工作所需的软件。
Create the Shortcut
创建快捷方式
In order to mute the system volume, we’ll use a small utility called NirCmd that we’ve mentioned numerous times before, since it’s the swiss army knife of useful shortcuts.
为了使系统音量静音,我们将使用一个名为NirCmd的小型实用程序,我们之前已经提到过多次,因为它是有用快捷键的瑞士军刀。
Right-click on the desktop and choose New \ Shortcut from the menu.
右键单击桌面,然后从菜单中选择“新建\快捷方式”。

In the location box, you’ll want to browse down to the location of where you saved nircmd.exe, and then add “mutesysvolume 2” as arguments. You’ll probably want to put quotes around the path to the executable, like this:
在“位置”框中,您需要向下浏览到保存nircmd.exe的位置,然后添加“ mutesysvolume 2”作为参数。 您可能需要在可执行文件的路径两边加上引号,如下所示:
“C:\Path\To\nircmd.exe” mutesysvolume 2
“ C:\ Path \ To \ nircmd.exe”静音系统卷2

Note: the “2” argument tells nircmd to toggle mute, so if you use the shortcut or hotkey again, it will untoggle. I find that to be the most useful, but you could pass an argument of “1” to only use mute. All of the arguments can be found on the NirCmd page.
注意:“ 2”参数告诉nircmd切换静音,因此,如果再次使用快捷键或热键,它将取消切换。 我发现这是最有用的,但是您可以传递参数“ 1”以仅使用静音。 所有参数都可以在 NirCmd页面 上找到 。
Give the shortcut a useful name like “Toggle Mute”, and then open up the properties of the shortcut. Here you can assign a shortcut key, or you can change the icon to something else.
给快捷方式一个有用的名称,例如“ Toggle Mute”,然后打开快捷方式的属性。 您可以在此处分配快捷键,也可以将图标更改为其他名称。

I found the speaker icon in the following file, but you can choose another icon if you’d like:
我在以下文件中找到了扬声器图标,但您可以根据需要选择另一个图标:
%SystemRoot%\System32\SndVol.exe
%SystemRoot%\ System32 \ SndVol.exe

Remember when using a shortcut key, you’ll want to keep the shortcut on the desktop or move it into the Start menu… the shortcut keys don’t seem to work when the shortcut is in the quick launch menu.
请记住,使用快捷键时,您需要将快捷键保留在桌面上或将其移到“开始”菜单中…当快捷键位于快速启动菜单中时,快捷键似乎不起作用。

Either way, you should now have a shiny new shortcut that will mute or unmute the system volume.
无论哪种方式,您现在都应该拥有一个闪亮的新快捷方式,该快捷方式将使系统音量静音或取消静音。
Download NirCmd from nirsoft.net
windows全局热键