modifying a simple vbs script for use in WinBatch

Started by Ron47, May 10, 2019, 04:51:02 PM

Previous topic - Next topic

Ron47

I use the Dragon speech program and have a vbs script that will run Dragon commands as if I spoke them.

The following vbs script turns off the Dragon microphone. How can I modify the script so I can use it in Winbatch?

x="close microphone"
Set Dgn = GetObject("","Dragon.DgnEngineControl")
Dgn.Register
Dgn.RecognitionMimic(x)
Dgn.UnRegister(0)
Set Dgn = Nothing

Thanks!

Ron


stanl

try
Code (WINBATCH) Select

x="close microphone"
Dgn = GetObject("","Dragon.DgnEngineControl")
Dgn.Register()
Dgn.RecognitionMimic(x)
Dgn.UnRegister(0)
Dgn = 0
Exit

Ron47


td

And, hopefully, time was taken to understand what Stan changed to make the VBS example a WinBatch script instead of just performing a copy&paste.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade