如何制作一个热键,在游戏中静音所有声音

如何制作一个热键,在游戏中静音所有声音

如何制作一个在玩游戏时使所有声音静音的热键?

nircmd似乎不起作用。

答案1

使用 AutoHotKey

SoundSet, NewSetting [, ComponentType, ControlType, DeviceNumber]

; BASIC EXAMPLES:
SoundSet, 50  ; Set the master volume to 50%
SoundSet +10  ; Increase master volume by 10%
SoundSet -10  ; Decrease master volume by 10%
SoundSet, 1, Microphone, mute  ; mute the microphone
SoundSet, +1, , mute  ; Toggle the master mute (set it to the opposite state)
SoundSet, +20, Master, bass  ; Increase bass level by 20%.
if ErrorLevel
    MsgBox, The BASS setting is not supported for MASTER.

https://autohotkey.com/docs/commands/SoundSet.htm

相关内容