📜  暂时静音 ahk - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:55.045000             🧑  作者: Mango

代码示例1
;mute sounds while pressed
; method 1 simple 
~Space::
Send, {Volume_Mute}
KeyWait, Space, L
Send, {Volume_Mute}
Return

; method 2 more accurate

~Space::
SoundGet, master_volume
SoundSet, 0
KeyWait, Space, L
SoundSet, master_volume
Return