KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Command to press key combinations multiple times?
Topic Summary: Windows Dragon 14
Created On: 04/01/2017 05:11 PM
Status: Post and Reply
Linear : Threading : Single : Branch
 Command to press key combinations multiple times?   - HelpMeWithDragon - 04/01/2017 05:11 PM  
 Command to press key combinations multiple times?   - Lunis Orcutt - 04/01/2017 07:14 PM  
 Command to press key combinations multiple times?   - Bruce Tjosvold - 04/03/2017 05:24 PM  
 Command to press key combinations multiple times?   - xxtraloud - 02/11/2022 05:31 AM  
 Command to press key combinations multiple times?   - Lunis Orcutt - 02/11/2022 02:53 PM  
Keyword
 04/01/2017 05:11 PM
User is offline View Users Profile Print this message

Author Icon
HelpMeWithDrago..
Junior Member

Posts: 25
Joined: 01/05/2017

When I say "press," and then any of the other key combinations that I can click on Dragon, I want to be able to append an optional "x times" at the end that'll repeat the pressing of the key combinations for that many occurrences. It is possible to do this to modify the press command? For instance, saying "press left arrow 5 times" will do exactly that.



 04/01/2017 07:14 PM
User is offline View Users Profile Print this message

Author Icon
Lunis Orcutt
Top-Tier Member

Posts: 39832
Joined: 10/01/2006

KnowBrainer 2017 includes lots of repeating commands like <Up, Down, Left, or Right> <1 to 1000>, <Tab> <1to20>, <Back Tab> <1to20>, <Backspace> <1to20><Delete> <1to20> <Back> <1to20> (left arrow), <Shift+Tab> <1to20>, <Space> <1to20> and <Enter> <1to20> ect... If you don't possess a KnowBrainer 2017 license, you'll find a 30 day trial in our signature tag. Note that because KnowBrainer 2017 and professional versions of Dragon support the same VB Advanced-Scripting scripting language, you can copy as many KnowBrainer commands into DPI 14 as you want. Here's one to get you started and note that you won't have to define the <1to20> list because it's already defined in Dragon. The name of the following command is Enter <1to20>:

Sub Main
SendKeys "{Enter "+ListVar1+"}"
End Sub



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

Change "No" to "Know" w/KnowBrainer 2020
Trial Downloads
Dragon/Sales@KnowBrainer.com 
(615) 884-4558 ex 1

 04/03/2017 05:24 PM
User is offline View Users Profile Print this message


Bruce Tjosvold
Top-Tier Member

Posts: 353
Joined: 10/02/2006

You could create a command using the following as an example. This command will write ?, as many times as the # in the list that you speak.

 

You could also create a 2nd list that contains the character you want written, rather than the hard coded value of ?.

 

 

Loop logic <1_to_99>

 

 

Sub Main

While I < ListVar1
    SendKeys "?"
    I = I+1
Wend

End Sub

 

The list <1_to_99> would have the following values:

 

1

2

3

.....

99

 

Bruce



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

DPI 15.00.000.076


 


1

 02/11/2022 05:31 AM
User is offline View Users Profile Print this message


xxtraloud
Top-Tier Member

Posts: 296
Joined: 12/14/2010

Is there any way to generalize this script so that it can be applied to any custom command? I already have a similar script that applies to specialties, but if I want to apply to a custom command in means I have to code a new command for each key combination.

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

Win 10 - DPI 15 - AT 8 pro + Andrea USB

 02/11/2022 02:53 PM
User is offline View Users Profile Print this message

Author Icon
Lunis Orcutt
Top-Tier Member

Posts: 39832
Joined: 10/01/2006

You should be able to add a 2nd list and add to the name (2 arguments)

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

Change "No" to "Know" w/KnowBrainer 2020
Trial Downloads
Dragon/Sales@KnowBrainer.com 
(615) 884-4558 ex 1

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

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