KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Creating custom command for alt + tab
Topic Summary:
Created On: 01/30/2021 04:00 AM
Status: Post and Reply
Linear : Threading : Single : Branch
 Creating custom command for alt + tab   - Psithyros - 01/30/2021 04:00 AM  
 Creating custom command for alt + tab   - Matt_Chambers - 01/30/2021 08:58 AM  
 Creating custom command for alt + tab   - Lunis Orcutt - 01/30/2021 12:59 PM  
 Creating custom command for alt + tab   - Matt_Chambers - 01/30/2021 03:47 PM  
 Creating custom command for alt + tab   - Psithyros - 02/02/2021 05:43 AM  
 Creating custom command for alt + tab   - Lunis Orcutt - 02/02/2021 07:32 PM  
Keyword
 01/30/2021 04:00 AM
User is offline View Users Profile Print this message

Author Icon
Psithyros
New Member

Posts: 7
Joined: 01/30/2021

Hi all,

 

Apologies for this very basic question. I want to create a custom voice command in Dragon for the keystrokes alt+tab (to jump between 2 windows), but I can't create this command as a step-by-step command (because pressing alt+tab switches away from the create command window before the keystroke registers).

 

Could anyone advise on how to create this command using advanced scripting?

 

Thanks.

 01/30/2021 08:58 AM
User is offline View Users Profile Print this message

Author Icon
Matt_Chambers
Top-Tier Member

Posts: 373
Joined: 08/09/2018

It's pretty simple. Just use this line:

SendKeys "%{Tab}"

In Advanced Scripting syntax, % is used to represent Alt+. More about the specifics of syntax here:

https://www.nuance.com/products/help/dragon/dragon-for-pc/scriptref/Content/vbs/sendkeys_instruction.htm?Highlight=sendkeys

 

 01/30/2021 12:59 PM
User is offline View Users Profile Print this message

Author Icon
Lunis Orcutt
Top-Tier Member

Posts: 38667
Joined: 10/01/2006

                    Welcome (See Mission Statement)

 

Most of the time Matt's command works for us but not always:

 

Sub Main
SendKeys "%{Tab}"
End Sub

 

We changed this command to a DVC script to make it a little more bulletproof. This can be accomplished by:

 

1. Opening the Dragon Command Browser

2. Left click on any Dragon <mouse> command

3. Clickthe New Copy menu 

4. Type the following script:

 

SendSystemKeys "{Alt+Tab}"

This command is called Other Window in KnowBrainer 2017



-------------------------

Forum Mission Statement
Trial Downloads
Dragon/Sales@KnowBrainer.com 
(615) 884-4558 ext 1



 01/30/2021 03:47 PM
User is offline View Users Profile Print this message

Author Icon
Matt_Chambers
Top-Tier Member

Posts: 373
Joined: 08/09/2018

Lunis,

I have found that SendKeys works quite reliably in version 15.61 Advanced Scripting, enough so that I don't use SendSystemKeys in any of my commands.

Matt
 02/02/2021 05:43 AM
User is offline View Users Profile Print this message

Author Icon
Psithyros
New Member

Posts: 7
Joined: 01/30/2021

Many thanks to you both for your help.

Lunis' DVC solution worked perfectly for me.

The Advanced Scripting option didn't work for me - maybe because I'm running version 15.30... Perhaps I should upgrade to 15.61. I've been putting it off for fear that the install might go badly, as I rely on Dragon for my work (because of a disability issue).

Thanks again.
 02/02/2021 07:32 PM
User is offline View Users Profile Print this message

Author Icon
Lunis Orcutt
Top-Tier Member

Posts: 38667
Joined: 10/01/2006

If you upgrade to Ver. 15.61 you will have Microsoft 365 (2019) support, an improvement fix for the infamous freezing issue and pertaining to this question... the WinWrap Basic scripting engine which we use in KnowBrainer. WinWrap Basic is vastly superior to SAX Basic which should have been retired in 2006. 



-------------------------

Forum Mission Statement
Trial Downloads
Dragon/Sales@KnowBrainer.com 
(615) 884-4558 ext 1

Statistics
31980 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 1 users logged in.
The most users ever online was 12124 on 09/09/2020 at 04:59 AM.
There are currently 596 guests browsing this forum, which makes a total of 597 users using this forum.

FuseTalk Standard Edition v4.0 - © 1999-2021 FuseTalk™ Inc. All rights reserved.