注册表更改后刷新音频捕获设备

时间:2018-11-17 10:49:39

标签: windows registry autohotkey intercept

具有一个运行注册表文件的AutoHotkey脚本,该脚本在音频捕获设备中启用和禁用“侦听此设备”布尔值。遗憾的是,这些更改仅在重启后才会生效。布尔值已更改,但音频捕获设备未使用新设置刷新。

以下脚本基于this

audio capture device

a::
  key++
  if key = 1
    run, "E:\S.K.L\Documents\soundReg\settting1.reg" regedit /s
  else if key = 2
  {
    run, "E:\S.K.L\Documents\soundReg\settting2.reg" regedit /s
    key=0
  }
Return

p.s。该代码仅在“ Intercept”的帮助下从seconday键盘运行。

0 个答案:

没有答案