我正在尝试使用自动热键将麦克风设置为50%,但这只会设置我的主音量。我试过了
SoundSet 1, Microphone, 50
但这不起作用。我还尝试了所有数字,直到6。
最佳答案
实际上,我前一段时间在AHK subreddit上为此写了一些东西。您可以使用此按钮将麦克风音量切换为50%。再按一次,音量将恢复为原始值。
试一试。如果它不起作用,请告诉我。
如果是这样,则可以将您的问题标记为已回答。
;=============== Set This Stuff ===============
; Get this info from PProvost's script. If you lose the URL later, it's:
; https://github.com/PProvost/AutoHotKey/blob/master/SoundCardAnalysis.ahk
; Component Type
compType := "Master:1"
; Control Type
conType := "Volume"
; Mixer Number
mixer := 10
;Toggle tracker
toggle := 0
;=============== End "Set This Stuff" Section ===============
; Hotkey to set/toggle volume
F1::
; Tracks sound status
toggle = !toggle
; If toggle is turned on
if (toggle = 1){
; Save old setting
SoundGet, oldSound, % compType, % conType, % mixer
; Set new setting
SoundSet, 50, % compType, % conType, % mixer
; If toggle is off
}Else
; Revert to the old setting
SoundSet, % oldSound, % compType, % conType, % mixer
return
; Shift+Escape kills the app.
+Escape::ExitApp
关于audio - 自动热键声音设置不会改变麦克风,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44330795/