![]() |
KnowBrainer Speech Recognition | ![]() |
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 |
|
![]() |
![]() |
- wristofdoom | - 08/23/2021 11:22 AM |
![]() |
![]() |
- kkkwj | - 08/23/2021 12:36 PM |
![]() |
![]() |
- Alan Cantor | - 08/23/2021 01:38 PM |
![]() |
![]() |
- Matt_Chambers | - 08/24/2021 03:01 PM |
![]() |
![]() |
- Edgar | - 08/24/2021 06:30 PM |
![]() |
![]() |
- Tomc | - 12/06/2021 02:23 PM |
![]() |
![]() |
- Lunis Orcutt | - 12/06/2021 03:39 PM |
![]() |
![]() |
- Tomc | - 12/06/2021 04:16 PM |
![]() |
![]() |
- wristofdoom | - 12/06/2021 07:50 PM |
![]() |
![]() |
- Alan Cantor | - 12/06/2021 05:15 PM |
![]() |
|
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. |
|
|
|
FuseTalk Standard Edition v4.0 - © 1999-2022 FuseTalk™ Inc. All rights reserved.