KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: In DNS Advanced Scripting, how do I send the Windows key?
Topic Summary:
Created On: 09/09/2020 06:01 PM
Status: Post and Reply
Linear : Threading : Single : Branch
 In DNS Advanced Scripting, how do I send the Windows key?   - wristofdoom - 09/09/2020 06:01 PM  
 In DNS Advanced Scripting, how do I send the Windows key?   - dilligence - 09/09/2020 06:34 PM  
 In DNS Advanced Scripting, how do I send the Windows key?   - Lunis Orcutt - 09/09/2020 06:47 PM  
 In DNS Advanced Scripting, how do I send the Windows key?   - wristofdoom - 09/10/2020 10:41 AM  
 In DNS Advanced Scripting, how do I send the Windows key?   - wristofdoom - 09/10/2020 12:33 PM  
 In DNS Advanced Scripting, how do I send the Windows key?   - wristofdoom - 09/12/2020 09:05 PM  
 In DNS Advanced Scripting, how do I send the Windows key?   - dilligence - 09/12/2020 09:16 PM  
 In DNS Advanced Scripting, how do I send the Windows key?   - wristofdoom - 09/12/2020 09:47 PM  
 In DNS Advanced Scripting, how do I send the Windows key?   - MDH - 09/12/2020 09:55 PM  
 In DNS Advanced Scripting, how do I send the Windows key?   - Lunis Orcutt - 09/12/2020 10:41 PM  
 In DNS Advanced Scripting, how do I send the Windows key?   - Matt_Chambers - 09/13/2020 07:53 AM  
Keyword
 09/09/2020 06:01 PM
User is offline View Users Profile Print this message

Author Icon
wristofdoom
Power Member

Posts: 58
Joined: 09/03/2020

I want to write a script that involves pressing the Windows key. I want to do it in DNS, not Knowbrainer.

 

I started writing a script called "open Knowbrainer". I want the script to hit the Windows key, wait, then send the text "Knowbrainer professional 2017", wait, and then hit enter.

 

But I can't figure out how to send the Windows key.

 

I tried "SendKeys "{Windows}"", "SendKeys "{Win}"", and "SendKeys "^{Esc}"" but none of them work.

 

I would have thought this would be a common need, but I am having an amazingly hard time finding a clear answer about how to do this. The list of keys on the Nuance website do not include the Windows key.

 

Thanks



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

Dragon Professional Individual v15.6. Windows 10. Knowbrainer 2017.

 09/09/2020 06:34 PM
User is offline View Users Profile Print this message

Author Icon
dilligence
Top-Tier Member

Posts: 1132
Joined: 08/16/2010

It's very easy to do with a DVC command (double-click an existing one in your Dragon Command Browser and then click Create New button):

 

SendSystemKeys "{win}"

Wait 500

SendKeys "Knowbrainer professional 2017"

Wait 200

SendSystemKeys "{Enter}"



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

www.speechproductivity.eu 


SP 6 PRO - The Dragon Enhancement & Productivity Suite



 09/09/2020 06:47 PM
User is offline View Users Profile Print this message

Author Icon
Lunis Orcutt
Top-Tier Member

Posts: 38007
Joined: 10/01/2006

Just a very tiny recommendation. If you add the “S” it will work on all systems. The other option will not work in some situations.


SendSystemKeys "{win+s}"

Wait 500

SendKeys "Knowbrainer professional 2017"

Wait 200

SendSystemKeys "{Enter}"



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

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

 09/10/2020 10:41 AM
User is offline View Users Profile Print this message

Author Icon
wristofdoom
Power Member

Posts: 58
Joined: 09/03/2020

Thanks. Can you be more detailed in how to create a DVC script instead of Advanced Scripting?

I go to my Command Browser, and I don't see any commands with this type. I create a new command, and I do not see "DVC" as an option for command type.

My only type of commands are step-by-step, macro, Advanced Scripting, and general text.

 

 



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

Dragon Professional Individual v15.6. Windows 10. Knowbrainer 2017.

 09/10/2020 12:33 PM
User is offline View Users Profile Print this message

Author Icon
wristofdoom
Power Member

Posts: 58
Joined: 09/03/2020

Okay, nevermind, now I see what you mean.

 

I need to modify one of the default "mouse click" type of commands that are built into Dragon.

 

Thanks!



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

Dragon Professional Individual v15.6. Windows 10. Knowbrainer 2017.

 09/12/2020 09:05 PM
User is offline View Users Profile Print this message

Author Icon
wristofdoom
Power Member

Posts: 58
Joined: 09/03/2020

Follow-up question on this...

Do you always need to use "SendSystemKeys" (rather than SendKeys or SendDragonKeys) when you are trying to press the Windows key?

Or is there a way to send the Windows key without resorting to the slower SendSystemKeys command?

 



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

Dragon Professional Individual v15.6. Windows 10. Knowbrainer 2017.

 09/12/2020 09:16 PM
User is offline View Users Profile Print this message

Author Icon
dilligence
Top-Tier Member

Posts: 1132
Joined: 08/16/2010

SendSystemKeys is usually more reliable when it comes to using the Windows key as modifier key. Another example of using it would be to access the notification area:

 

SendSystemKeys "{win+b}"

 

There is no real noticeable speed difference when the script is only one line. The rule of thumb is to first try regular SendKeys and if that don't work use SendSystemKeys.



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

www.speechproductivity.eu 


SP 6 PRO - The Dragon Enhancement & Productivity Suite

 09/12/2020 09:47 PM
User is offline View Users Profile Print this message

Author Icon
wristofdoom
Power Member

Posts: 58
Joined: 09/03/2020

Got it, thank you.

 

Under what circumstances would I want to use SendDragonKeys rather than SendKeys or SendSystemKeys?



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

Dragon Professional Individual v15.6. Windows 10. Knowbrainer 2017.

 09/12/2020 09:55 PM
User is offline View Users Profile Print this message

Author Icon
MDH
Top-Tier Member

Posts: 2165
Joined: 04/02/2008

"Under what circumstances would I want to use SendDragonKeys rather than SendKeys or SendSystemKeys?"

 

Use SendDragonKeys preferentially using Citrix.

 

MDH



-------------------------
 09/12/2020 10:41 PM
User is offline View Users Profile Print this message

Author Icon
Lunis Orcutt
Top-Tier Member

Posts: 38007
Joined: 10/01/2006

With the release of the DPI 15.6 Download we suspect that SendDragonKeys will no longer hold an advantage over SendKeys but we're also not in a position to test this unproven theory.



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

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

 09/13/2020 07:53 AM
User is offline View Users Profile Print this message

Author Icon
Matt_Chambers
Top-Tier Member

Posts: 257
Joined: 08/09/2018

Originally posted by: Lunis Orcutt With the release of the DPI 15.6 Download we suspect that SendDragonKeys will no longer hold an advantage over SendKeys but we're also not in a position to test this unproven theory.

 

My impression is that SendKeys is now much faster than SendDragonKeys. I did a speed test using a variant of the command that Alan Cantor recommended a few months ago and this is what I got:

SendKeys: 93 ms
SendSystemKeys: 2172 ms
SendDragonKeys: 1250 ms

I'm sure it's not a perfect test, but it's enough to tell me that SendKeys is much faster now.

Statistics
31794 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 659 guests browsing this forum, which makes a total of 660 users using this forum.

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