![]() |
KnowBrainer Speech Recognition | ![]() |
Topic Title: pgEmulate - create keyboard shortcuts for Dragon commands Topic Summary: Using native Windows features (no hacks) Created On: 03/29/2019 02:38 PM Status: Post and Reply |
|
![]() |
![]() |
- PG LTU | - 03/29/2019 02:38 PM |
![]() |
![]() |
- framage-ccplab | - 05/22/2019 03:06 PM |
![]() |
![]() |
- monkey8 | - 05/22/2019 04:32 PM |
![]() |
![]() |
- PG LTU | - 05/23/2019 03:17 PM |
![]() |
![]() |
- kkkwj | - 12/04/2019 01:36 AM |
![]() |
![]() |
- PG LTU | - 12/04/2019 10:23 AM |
![]() |
![]() |
- PG LTU | - 01/22/2020 05:47 PM |
![]() |
|
There is an easy way to create a shortcut for any (or an arbitrary) Dragon command.
First create a tiny
For the first version, create a shortcut on your desktop to the vbs script. Assign it a shortcut key (apparently you can only use Ctrl + Alt + Letter combos in the Shortcut properties) or use AHK or ME to assign any hotkey or hotstring combo of your choice. For the second version, just edit the target property to add the command to be recognized in quotes, such as:
and give it a shortcut key, too.
Here is
If you put this in a convenient spot, you can use it in your scripts to asynchronously run a recogniton:
Or, with a variable expression:
More about ShellExecute and that 6 at the end: here. (Hint, it's supposed to run in a minimized background window - ymmv.)
Hth, -------------------------
|
|
|
|
![]() |
|
Thanks, PG
------------------------- Frank Ramage |
|
|
|
![]() |
|
|
|
![]() |
|
Here's more: Using pgEmulate on an arbitrary selection
In short, naturally pgEmulate can send the "select that" or "bold that" Dragon dictation commands, but it can also be used to select or bold (or change the case of) an arbitrary phrase, "select <xyz>" using the <dictation> list. -------------------------
|
|
|
|
![]() |
|
I'm curious what the trailing 6 is for. Is it something required by Dragon or is it something for pgemulate? Thank you for posting that script. It's quite clever! ------------------------- Win10/11/x64, AMD Ryzen 7 3700X/3950X, 64/128GB RAM, Dragon 15.3, SP 7 Standard, SpeechStart, Office 365, KB 2017, Dragon Capture, Samson Meteor USB Desk Mic, Amazon YUWAKAYI headset, Klim and JUKSTG earbuds with microphones, excellent Sareville Wireless Mono Headset, 3 BenQ 2560x1440 monitors, Microsoft Sculpt Keyboard and Logitech G502 awesome gaming mouse. |
|
|
|
![]() |
|
Check out the help for ShellExecute: it is the windowStyle parameter keeping the window minimized and not active. Well, perhaps the window would only flash so briefly anyway, but I got used to using it while frequently shell-executing to any script outside Dragon (usually ahk, but more often, a vbs, as above). -------------------------
|
|
|
|
![]() |
|
Here's a neat trick if you use the same commands on different computers. Store your utility files in the Windows "User" directory (one above your user name), so typically:
More info on the useful <switcher> command including optionally saying the number of the window to switch to, is here. Just say "switcher" to get the "list programs" window, or "switch <number>" to follow with choosing that number from the list.
Note, while this works in the Advanced Scripting language, the Environ function is not available in DVC legacy scripting. So, if you want to use this in your System.DVC file under the "Asleep" mode (I call it "switcher" and consider it essential) you will have to hard code the path. -------------------------
|
|
|
FuseTalk Standard Edition v4.0 - © 1999-2023 FuseTalk™ Inc. All rights reserved.