search and copy / cut in one command

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
jan-01
Posts: 19
Joined: Fri Apr 27, 2007 9:40 am

search and copy / cut in one command

Post by jan-01 »

Hello , I'm looking for a way to do a search in a sentence that can cut the words I was looking for and puts it on my clipbord

pe
I'm looking for '1 stuk'

in the sentence "z.j. (ca. 1898).1 stuk (H. 797, 129)"

after the search

z.j. (ca. 1898). (H. 797, 129)

and '1 stuk' on my clipbord..

Thanks in advance,
Jan
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

You can record a macro to do it:

1. Click Macros > Record.
2. Click Search > Find.
3. In Find what, enter 1 stuk.
4. Click Find Next.
5. Click Close.
6. Click Edit > Cut.
7. Click Macros > Stop Recording.

You can save the macro and invoke it from the Macros menu or assign a shortcut key to it.

The only thing to note is that "1 stuk" will be hard-coded in the macro. If you want a command that works with a different string, you'll have to record another macro for it.
jan-01
Posts: 19
Joined: Fri Apr 27, 2007 9:40 am

Post by jan-01 »

thanks for your advice
did not know that I can make shortcuts for macro's!
jan-01
Posts: 19
Joined: Fri Apr 27, 2007 9:40 am

Post by jan-01 »

Thank you very much, this very usefull for me!
Jan
Post Reply