KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Dragon command that will prepend hyphen in front of every line of selected text
Topic Summary:
Created On: 02/20/2021 01:28 PM
Status: Post and Reply
Linear : Threading : Single : Branch
 02/20/2021 01:28 PM
User is offline View Users Profile Print this message

Author Icon
Top-Tier Member

Posts: 326
Joined: 09/03/2020

Frequently, I need to turn the several lines of text into a bulleted list. For example, I will want to turn this:


list item 1

list item 2

list item 3


Into this:


- list item 1

- list item 2

- list item 3


I created a command that will send the keys  "-{down}{Home}" X amount of times,  which is not ideal because it requires me to know how many items I am listing. For example, I would have to say, "bullet list down 3"  in order  to prepend the - character 3 times. If it's a lot of text, then I need to run the command multiple times or sit there counting lines. I have better things to count!


so what I want is a command that will:


- read the currently selected text

- count the amount of linebreaks in that text

- insert a "-" character after every line break (i.e., at the beginning of every)


I have no idea how to go about this. Is this possible?


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

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

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