Macros won't run in background

General questions about using TextPad

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

Post Reply
jmalyon

Macros won't run in background

Post by jmalyon »

I couldn't find anything addressing this issue by searching the archives...

I've just installed TextPad 4.5 under WinXP and cannot seem to run macros that use the "find" command in the background. For example: delete a line; then find the next occurrence of a text string; continue until EOF. If I just try to run the macro "n" times in the background, I get unexpected behaviour.

This used to work in TextPad 3.* under Win98. Any way I can fix it? Macros run MUCH faster in the background and I am trying to process a many-megabyte file here.
jmalyon

Re: Macros won't run in background

Post by jmalyon »

Just to make this clearer, if I try to run until EOF, the macro terminates as soon as the window is no longer in the foreground.
jmalyon

Re: Macros won't run in background

Post by jmalyon »

No responses. Does this mean that everyone see this behaviour or no-one?

Anyway, here's what I've figured out so far, in hopes it will be of use to someone else...

1. In the foreground, macros seem to run a lot faster as you make the text window smaller and smaller. Makes a certain amount of sense, I guess. Less work for the video driver.

2. Looking for workarounds, I found that SOME of my needs, including the example I used in post 1, can be handled better by bookmarking. Just do a Find while selecting "Mark All". Then using the edit menu, you can cut, copy or delete all marked lines.

3. I eventually installed Textpad 3.2.5 on the same computer, and it works fine. So macros not executing the Find function while in the background appears to be a bug or a config issue with Textpad 4.5.

I'd like to know if it's fixable, but in the meantime I'll probably just stick with Textpad 3.
Robert Dunham

Re: Macros won't run in background

Post by Robert Dunham »

I use textpad 4.5.0 and I do alot of search replace and even find/cut/paste in new document macros. It runs fine minimized on winxp and Win98. one thing to know is that when it is not displayed on the screen it is about 100x faster.
Post Reply