如何使用Dragon NaturallySpeaking的高级脚本使扬声器静音? [英] How can I mute the speakers with Dragon NaturallySpeaking's advanced scripting?

查看:118
本文介绍了如何使用Dragon NaturallySpeaking的高级脚本使扬声器静音?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用Dragon NaturallySpeaking的高级脚本使扬声器静音?

Is there any way to mute the speakers with Dragon NaturallySpeaking's advanced scripting?

推荐答案

如果可以使用任何其他脚本语言来完成所需的操作,请使用它并从Dragon调用该脚本.

If what you want done can be done with any other scripting language, use it and call that script from Dragon.

DNS和DP高级脚本已经存在了几代.我几乎对所有东西都使用AutoHotKey,但是我有一些VBS和JS脚本,甚至还有HTA.例如,我有一个AHK脚本,可通过从命令行传递参数来操纵声卡的音量,静音等.

DNS and DP Advanced Scripting is generations old. I use AutoHotKey for nearly everything, but I have a few VBS and JS scripts I call, and even an HTA. E.g., I have an AHK script that manipulates my soundcards changes volume, mutes, etc., all by passing arguments in from the command line:

Sub Main
' Command is called "<Volume>" and that list includes: 
'   mute Mike, mute the Mike, show the volume, show volume, toggle the volume, 
'   toggle volume, volume, volume down, volume down three, volume down two,
'   volume loud, volume mute, volume off, volume up, volume up loud, 
'   volume up three, volume up two.

x = ListVar1  
If InStr(x," the ") Then x = Mid$(x, 1, InStr(x," the ")) + Mid$(x, InStr(x," the ")+5)
If x = "mute Mike" Then ShellExecute "pgVolume.ahk mutemic", 6
If x = "show volume" Then ShellExecute "pgVolume.ahk showvol", 6
If x = "toggle volume" Then ShellExecute "pgVolume.ahk togglevol", 6

x = Mid$(ListVar1, 8)
If x = "down" Then ShellExecute "pgVolume.ahk down 1", 6
If x = "down three" Then ShellExecute "pgVolume.ahk down 3", 6
If x = "down two" Then ShellExecute "pgVolume.ahk down 2", 6
If x = "loud" Then ShellExecute "pgVolume.ahk up 6", 6
If x = "mute" Then ShellExecute "pgVolume.ahk down 6", 6
If x = "off" Then ShellExecute "pgVolume.ahk down 6", 6
If x = "up" Then ShellExecute "pgVolume.ahk up 1", 6
If x = "up loud" Then ShellExecute "pgVolume.ahk up 6", 6
If x = "up three" Then ShellExecute "pgVolume.ahk up 3", 6
If x = "up two" Then ShellExecute "pgVolume.ahk up 2", 6
End Sub

我的AHK脚本包括子例程和对VA.AHK的引用(VA v2.2位于 http://www.autohotkey.com/board/topic/21984-/).

My AHK script includes subroutines and a reference to VA.AHK (VA v2.2 at http://www.autohotkey.com/board/topic/21984-/ ).

Hth

这篇关于如何使用Dragon NaturallySpeaking的高级脚本使扬声器静音?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆