首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何使用Dragon NaturallySpeaking的高级脚本将扬声器静音?

如何使用Dragon NaturallySpeaking的高级脚本将扬声器静音?
EN

Stack Overflow用户
提问于 2017-06-10 02:35:16
回答 1查看 107关注 0票数 0

有没有办法用Dragon NaturallySpeaking的高级脚本让扬声器静音?

EN

回答 1

Stack Overflow用户

发布于 2017-06-13 03:52:17

如果你想要做的事情可以用任何其他脚本语言来完成,那么使用它并从Dragon中调用该脚本。

DNS和DP高级脚本已经有几代人的历史了。我几乎所有的东西都使用AutoHotKey,但我调用了一些VBS和JS脚本,甚至还有一个HTA。例如,我有一个AHK脚本,可以通过从命令行传递参数来操作声卡的音量变化、静音等操作:

代码语言:javascript
复制
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 ( http://www.autohotkey.com/board/topic/21984-/上的VA v2.2 )的引用。

Hth,

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44464649

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档