KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: command to delete all unused bookmarks and the word before them?
Topic Summary: I would like to have a command that will delete all unused bookmarks and the word right before the bookmark
Created On: 06/15/2011 12:46 PM
Status: Post and Reply
Linear : Threading : Single : Branch
Keyword
 06/15/2011 12:46 PM
User is offline View Users Profile Print this message


gabor5454
Junior Member

Posts: 32
Joined: 03/20/2011

I would like to have a command that will delete all unused bookmarks and the word right before the bookmark -or even better the whole line that the bookmark is in.

 for example

 Name: [01]

Address: [02]

favorite child: [03]

Favorite color: [04]

Favorite baseball team: [05]

 

If I don't use [03] and [05] I would like to delete both the bookmarks and the labels with a single command.

If deleting a preceding word is easier than a whole line I have no problem with making the label a single word - i.e. "favorite child" can become "favorite_child"

 Thanks in advance

Ricky G

 

 

 06/15/2011 05:32 PM
User is offline View Users Profile Print this message

Author Icon
MDH
Top-Tier Member

Posts: 1554
Joined: 04/02/2008

gabor5454,

Use the: "Delete Line" command.

MDH



-------------------------
 06/15/2011 08:19 PM
User is offline View Users Profile Print this message

Author Icon
Lunis Orcutt
Top-Tier Member

Posts: 22771
Joined: 10/01/2006

If you are using KnowBrainer 2011 in Microsoft Word, you can say Delete Bookmarks to remove every unused KnowBrainer bookmark on the page but it only works in Microsoft Word and it doesn't remove the entire line or paragraph. Assuming that you're utilizing the same formatting as you displayed in this posting (each question in a separate paragraph) you can use the following formulae from within KnowBrainer. Aote that you are not limited to just KnowBrainer bookmarks. The following commands will delete any text that is enclosed in brackets [xxx], along with the adjacent paragraph or line. The 1st command is called Delete 1 Bookmark and the 2nd command is called Delete 2 Bookmarks. Note the bold purple 2 in the 2nd line of the script in the 2nd command. If you wish to create a command to delete 3 bookmarks, simply change the 2 to a 3 and so on. Also note that we additionally deleted the extra space left over by the original paragraph. You can always change the {Del 2} portion of the command by increasing the number to remove more lines or decreasing the number to remove less lines. 

Delete 1 Bookmark

SendSystemKeys "{Ctrl+Home}"
HeardWord "select","[","through","]"
SendSystemKeys "{Ctrl+Down}{Shift+Ctrl+Up}{Del 2}"


Delete 2 Bookmarks

SendSystemKeys "{Ctrl+Home}"
I =
2
DO UNTIL I = 0
HeardWord "select","[","through","]"
SendSystemKeys "{Ctrl+Down}{Shift+Ctrl+Up}{Del 2}"
Wait 500
I  = I -1
Loop


Delete 3 Bookmarks

SendSystemKeys "{Ctrl+Home}"
I =
3
DO UNTIL I = 0
HeardWord "select","[","through","]"
SendSystemKeys "{Ctrl+Down}{Shift+Ctrl+Up}{Del 2}"
Wait 500
I  = I -1
Loop


Note that this option is not possible in DNS Premium without KnowBrainer.


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


Click KB 2012 REV D to Download a 30 Day Evaluation of KnowBrainer 2012
Click SpeechStart+ to Download a 15 Day Evaluation of SpeechStart+

 06/16/2011 11:28 AM
User is offline View Users Profile Print this message


gabor5454
Junior Member

Posts: 32
Joined: 03/20/2011

thanks - I'll give it a whirl

RG

Statistics
27429 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 2 users logged in.
The most users ever online was 2028 on 04/05/2013 at 07:36 PM.
There are currently 204 guests browsing this forum, which makes a total of 206 users using this forum.

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