KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: 3 questions: key combinations in Dragon advanced scripting
Topic Summary:
Created On: 11/03/2020 04:50 AM
Status: Post and Reply
Linear : Threading : Single : Branch
 3 questions: key combinations in Dragon advanced scripting   - Anandits - 11/03/2020 04:50 AM  
 3 questions: key combinations in Dragon advanced scripting   - Matt_Chambers - 11/03/2020 08:41 AM  
 3 questions: key combinations in Dragon advanced scripting   - Mav - 11/03/2020 08:47 AM  
 3 questions: key combinations in Dragon advanced scripting   - Anandits - 11/03/2020 09:46 AM  
 3 questions: key combinations in Dragon advanced scripting   - Matt_Chambers - 11/03/2020 10:14 AM  
 3 questions: key combinations in Dragon advanced scripting   - Anandits - 11/03/2020 10:10 PM  
 3 questions: key combinations in Dragon advanced scripting   - Matt_Chambers - 11/03/2020 09:31 AM  
 3 questions: key combinations in Dragon advanced scripting   - PG LTU - 11/04/2020 10:33 AM  
Keyword
 11/03/2020 04:50 AM
User is offline View Users Profile Print this message

Author Icon
Anandits
Senior Member

Posts: 126
Joined: 03/25/2019

For 3 different commands, i am trying to get respectively the following sequences: 

 

- pressing the control key twice, consecutively without pause

- pressing Windows key plus left key simultaneously

- pressing control key plus space bar simultaneously

 

I have tried very many variations, I have tried DVS scripting, Advanced Scripting, KnowBrainer script, macro recording, step recording, Heard Word... All unsuccessful.

 

The answer is probably really simple. Would somebody be willing to give me the answers? Thanks so much!

 11/03/2020 08:41 AM
User is offline View Users Profile Print this message

Author Icon
Matt_Chambers
Top-Tier Member

Posts: 311
Joined: 08/09/2018

For control key plus space bar, doesn't

SendKeys "^{Space}"

work, using Advanced Scripting?

For Windows key plus left key, try

SendKeys "{WindowsHold}{Left}"

Both of these work fine for me in DPI 15.6, using Advanced Scripting.

I'll have to think about the control key question.
 11/03/2020 08:47 AM
User is offline View Users Profile Print this message

Author Icon
Mav
Top-Tier Member

Posts: 270
Joined: 10/02/2008

I'm afraid only the last one will be possible:

SendKeys "^{SPACE}"

 

SendKeys only uses Ctrl as a modifier, so there's no explicit Ctrl down and Ctrl up, which would be required to separate 2 distinct Ctrl press events.

 

Edit:

(My reply regarding Windows key overlapped with the better answer from Matt)

 

If you really, really do need these shortcuts and have no way to redefine them in your target application, you could still try using SendInput (similar to this article), but this will get very messy.

 

hth,

mav



 11/03/2020 09:46 AM
User is offline View Users Profile Print this message

Author Icon
Anandits
Senior Member

Posts: 126
Joined: 03/25/2019

Thank you both.

I tried SendKeys "^{Space}", but this did not do anything. This command works in KnowBrainer (I forgot that I had already created it in there earlier) but I could not re-create it in Dragon.

Most of the time it does not do anything, and in MS Outlook it toggles in and out the preview window - while saying "press control space" does exactly what I want it to do:move the current application to my other desktop, with an application called Dual Monitor Tools. 

If there is another way to move an application to another desktop, I will be happy to hear it.(It is possible in Voice Computer, but I frequently do not have that running).

 

 

Windows Key Left is just to move the current window to the left half of my screen. Here too, I am happy to hear of another solution for this. Saying "press window left" works, but it is not so intuitively for me. I would like to be able to say "move window left".

I tried "SendKeys "{WindowsHold}{Left}" earlier as well, but can't get it to work. Here I get an error message:

 

Pressing control key twice is in order to activate Copernic Desktop search. I checked , but it is not possible to modify this.
Not a big problem, I am not using this that much – but the other 2 commands I am using all the time.

 

 11/03/2020 10:14 AM
User is offline View Users Profile Print this message

Author Icon
Matt_Chambers
Top-Tier Member

Posts: 311
Joined: 08/09/2018

Interesting!  SendKeys "^ " works for me in Outlook.  I don't have two monitors these days, so can't test your usage.  Having said that, there were, years ago, perfectly good commands to switch monitors.  I don't use them now, of course, but I expect someone here has them and will chime in.

I don't know what to tell you about the SendKeys "{WindowsHold}p".  Works perfectly for me.  What version of Dragon are you using?

 11/03/2020 10:10 PM
User is offline View Users Profile Print this message

Author Icon
Anandits
Senior Member

Posts: 126
Joined: 03/25/2019

I am sorry, I should have said that. I am using 15.3.

I appreciate the advice I already got, and please do not feel obliged to spend more time on it!

 11/03/2020 09:31 AM
User is offline View Users Profile Print this message

Author Icon
Matt_Chambers
Top-Tier Member

Posts: 311
Joined: 08/09/2018

Look at this thread to learn how to press the control key and release it: http://www.knowbrainer.com/forums/forum/messageview.cfm?catid=4&threadid=30195&highlight_key=y&keyword1=press%20control%20key
 11/04/2020 10:33 AM
User is offline View Users Profile Print this message

Author Icon
PG LTU
Top-Tier Member

Posts: 2116
Joined: 03/21/2007

When all else fails, there is always the implementation I show for example in the MouseGrid fix and enhancement to allow locking the workstation with the Winkey + L shortcut directly from Mouse Grid mode, and which has its own universal compatibility appeal. It is advantageously implemented as a DVC command:


HeardWord "press", "Windows", "key", "l"



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




PG





Remember folks, my comments and this forum are for entertainment value only, please, no wagering or other reliance on the contents herein.  I permit no commercial use of my ideas (whether expressions or embodiments) without my written consent.



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

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