View Full Version : DragonDictate script
crppled007
07-29-2008, 10:29 PM
I use DragonDictate with the program IRCommand2, and created custom commands using the step-by-step command. But the question I have is that for like the volume up and volume down, I don't want to have to say it, and say it, and say it, just to go up three or four times. I want to write a script. so I can say volume up three or volume down four. how do I do that
Cripp
The only way I can get the volume to go up or down is to use the cursor, and say "mouse drag up" or "mouse drag down". Maybe Lewis has an idea/suggestion. I am not sure if the no-brainer software can bail you out because I am not using it.
http://i294.photobucket.com/albums/mm114/ssuusc/volumecontrol.jpg
http://i294.photobucket.com/albums/mm114/ssuusc/volume2.jpg
Lewis
07-30-2008, 05:06 PM
Open up the command browser and click New in the left-hand column.
Type Volume Up <1to10> for the command name. The name editor will pop up once you type <, continue typing.
You'll see a list name appear 1to10 , double click that list and make sure that it says 1 through 10 numerically, with each number on their own line. Click OK, and then click OK again to close the name editor.
Make sure availability is Global and command type, Advanced Scripting.
Paste the following into the script window:
Sub Main
Shell "control mmsys.cpl"
Wait 1
SendDragonKeys "{Right " & CInt(ListVar1)*50 & "}"
SendDragonKeys "{Enter}"
End Sub
Click Save
To make a volume down command, duplicate the above replacing Up with Down (in the command name) and Right with Left (in the script).
tekniko
07-31-2008, 12:16 AM
How does this command work once it is in? I have tried saying up 1 the only thing that happens is that the volume properties open up and then it hits okay on its own but other than that the volume does not move. Running Dragon naturally speaking 9.51 on Windows Vista ultimate. Just thought I would let you guys know what happens on this type of system with this version of Dragon.
crppled007
07-31-2008, 12:13 PM
I forgot to mention that the IR program I have assigned the Vol+ to use the Numpad+ key, and Vol- the Numpad- key. That script will work the windows volume but I need the keyboard keys depressed(not sad ;) )
cripp
Lewis
07-31-2008, 06:23 PM
How does this command work once it is in? I have tried saying up 1 the only thing that happens is that the volume properties open up and then it hits okay on its own but other than that the volume does not move. Running Dragon naturally speaking 9.51 on Windows Vista ultimate. Just thought I would let you guys know what happens on this type of system with this version of Dragon.
Try increasing the wait time to see if that helps. Unfortunately, I do not have Vista and did not have any experience with it. Since the volume control window opens, it's a matter of finding the right combination of keys in Vista if they are different from XP.
Lewis
07-31-2008, 06:24 PM
I forgot to mention that the IR program I have assigned the Vol+ to use the Numpad+ key, and Vol- the Numpad- key. That script will work the windows volume but I need the keyboard keys depressed(not sad ;) )
cripp
I'm not sure I follow.
crppled007
07-31-2008, 09:57 PM
you know, you can program a key stroke command in the step-by-step command type. While I need a script that when I say "volume up three "(anywhere from 1 to 10) that it will send that keystroke the number of times I tell it to.
Volume up four
++++
does that make a little more sense
Cripp
tekniko
07-31-2008, 10:27 PM
This is the way I thought it would work.
Lewis
07-31-2008, 10:28 PM
you know, you can program a key stroke command in the step-by-step command type. While I need a script that when I say "volume up three "(anywhere from 1 to 10) that it will send that keystroke the number of times I tell it to.
Volume up four
++++
does that make a little more sense
I thought that's what I illustrated how to do above. The only way I know how to do it is through Advanced Scripting. Step-by-step commands do not allow you to use lists, which allow you to set variables (i.e. Volume Up 2, Volume Up 5), where the numerical part of the command is defined by a list of possibilities.