KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Is it better to have one command with several variables and longer lists, or multiple commands with fewer?
Topic Summary:
Created On: 08/23/2021 11:22 AM
Status: Post and Reply
Linear : Threading : Single : Branch
Keyword
 08/23/2021 11:22 AM
User is offline View Users Profile Print this message

Author Icon
wristofdoom
Top-Tier Member

Posts: 322
Joined: 09/03/2020

Sometimes I create multiple custom commands without a variable, and other times I consolidate multiple commands into a single command with many different cases.

 

I'm wondering if there is a recognition or speed (dis)advantage to having commands separated out into many commands, or having them consolidated into a single command with several lists.

 

Here's an example command that has many different cases, some more similar than others. Would you break this up into multiple commands?

 

 

 Command name="[md] [markdown_limited]"  

If ListVar1 = "new MD" Then SendKeys "{Enter 2}"

Select Case ListVar2

Case "italics"

SendKeys "**{left}"

Case "bold"

SendKeys "****{left 2}"

Case "bold paste"

SendKeys "**^v**"

Case "strikethrough", "strike"

SendKeys "{~}{~}{~}{~}{left 2}"

Case "underline"

SendKeys "__{left}"

Case "code"

SendKeys "```~~~```~"

Wait 0.1

SendKeys "{up 3}"

Case "code paste"

SendKeys "```~^v~~```~"

Case "link"

SendKeys "[]{(}^v{)}"

Case "italics paste"

SendKeys "*^v*"

Case "wiki paste"

SendKeys "[[^v]]"

Case "highlight paste"

SendKeys "==^v=="

End Select

End Sub 

 

 

Lists: 

List name="md"

MD

new MD 

 

List name="markdown_limited"

bold

bold paste

code

code paste

highlight

highlight paste

italics

italics paste

link

strike

strikethrough

strong

underline

wiki

wiki paste 



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

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



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

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