TextPad Macro Editor

General questions about using TextPad

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

Post Reply
Raul Kintan
Posts: 1
Joined: Mon Aug 28, 2006 2:39 pm
Location: Monterrey, Mexico

TextPad Macro Editor

Post by Raul Kintan »

I just finished typing a 20 minute search and replace macro, just to find that I miss typed a couple of times.

Is there a way or a program to get inside the Macro and edit it ? I cannot find one.

Can I start the macro and pause and somehow redo it where I made the mistake?

I'm a user, not a programmer.

Thanks for your help
User avatar
tcebob
Posts: 80
Joined: Fri Mar 28, 2003 1:20 am

Post by tcebob »

As far as I know, no. But I use a coding procedure that at least makes it easier to review the macro and set up changes. It's pretty simple. Here's a sample:

(lisp uses parentheses to separate functions. Arguments to functions can be functions, too. So a line might look like
(+ (fun1(fun2)) (fin3(fun4)) This macro will append as many parens to the end of the line as needed to balance all the parens on the line. It doesn't tell where they belong, just notifies the user to insert as needed.) The symbols are meaningless, use your own or none. (except the regular expressions).

Script for BalParenOnLine
1 ;;from a place in the line
2 <h><h> ;;go to begin line
3 (f){(} ;;find first (
4 (f){;\|$} ;;find either ; or eol
5 (f)(up){[[:graph:]]} ;;find prev. char.
6 -> ;;get off the char
7 )))))))))) ;;insert 10 )s
8 <h><h> ;;beginning of line
9 (f){(} ;;find the first (
10 <cm> ;;find the matching )
11 -> ;;get off the char.
12 (f){)*} ;;find remaining )s
13 (del) ;;delete them

This is purely to remind you of the keystrokes that made up the macro. Be nice to have a macro language, no?

tcebob
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

There is no way currently to really edit a TextPad macro file. It has been the top most requested enhancement for quite a while.

In the meantime, I use Macro Scheduler every day with TextPad and many other Windows programs..

I love it so much you would think I was the owner, but I have no relationship with them. A great Macro and Scheduling program. Free download does everything but compiling into an exe file.

Yes you can edit the macros with their editor. You can also ust TextPad to edit their macros and use a syntax file for Macro Scheduler.
Hope this was helpful.............good luck,
Bob
Post Reply