TextPad 4.7.3: Unreliable macro execution
Posted: Thu Sep 27, 2018 10:32 am
I'm sure the first question will be: Why am I still using TextPad 4.7.3? When I got my first Windows system, I wanted an easy to use, but powerful editor. A friend recommended TextPad 4. When TextPad 5 came out, I was ready to upgrade, but my friend advised me not to and listed all the reason I wouldn't like it. I trusted his judgement and never upgraded. To be honest, with the exception of this issue, TextPad 4.7.3 has always served my needs just fine.
Anyway...
I have made quite a few macros over the years, from simple ones such as moving a single line up or down, to much more complex ones that reformat entire files. Over the years they have always worked reliably. However recently I've noticed that they have become unreliable, but it seems completely random, and more likely to happen if my system has been up for a few days continuously, rather then being freshly booted. After a reboot, the macros seem to work fine.
For example; My macro to move lines up/down selects the current line, cuts it, moves the cursor up/down, pastes the line, then repositions the cursor at the start of the line so it can be repeated. You can hold the hotkey and the current line will move up or down in the file. In the past it always worked perfectly. Now, they may work fine, or they may just randomly delete lines and start moving other lines. When this happens, use them enough and eventually, they'll delete everything in the file. Yet open a new file, type some lines and they work perfectly.
At first I thought the macro files on the drive had gotten corrupted, so I manually re-entered them. Without even saving them, the newly created scratch macro wasn't reliable either. Reboot and everything is fine, at least for a while.
There's really no way to predict when the macros will fail, other than they never seem to misbehave if I'm demonstrating the problem to someone. Then they always work perfectly. It seems it's always when I'm in a hurry to get something done, or I trust the macro to do a complex job.
Can anyone think of anything that would cause this? I currently have 29 macros in the menu, could there be a bug where TextPad becomes unreliable if you have too many Macros? I want to get rid of some of the ones I don't use any more, but then I have to renumber the filenames (TextPad is pretty bad about suggesting filenames that are already in use) and re-assign all the hotkeys.
No other part of TextPad is giving me trouble, only the macros. Well, no new troubles.
Anyway...
I have made quite a few macros over the years, from simple ones such as moving a single line up or down, to much more complex ones that reformat entire files. Over the years they have always worked reliably. However recently I've noticed that they have become unreliable, but it seems completely random, and more likely to happen if my system has been up for a few days continuously, rather then being freshly booted. After a reboot, the macros seem to work fine.
For example; My macro to move lines up/down selects the current line, cuts it, moves the cursor up/down, pastes the line, then repositions the cursor at the start of the line so it can be repeated. You can hold the hotkey and the current line will move up or down in the file. In the past it always worked perfectly. Now, they may work fine, or they may just randomly delete lines and start moving other lines. When this happens, use them enough and eventually, they'll delete everything in the file. Yet open a new file, type some lines and they work perfectly.
At first I thought the macro files on the drive had gotten corrupted, so I manually re-entered them. Without even saving them, the newly created scratch macro wasn't reliable either. Reboot and everything is fine, at least for a while.
There's really no way to predict when the macros will fail, other than they never seem to misbehave if I'm demonstrating the problem to someone. Then they always work perfectly. It seems it's always when I'm in a hurry to get something done, or I trust the macro to do a complex job.
Can anyone think of anything that would cause this? I currently have 29 macros in the menu, could there be a bug where TextPad becomes unreliable if you have too many Macros? I want to get rid of some of the ones I don't use any more, but then I have to renumber the filenames (TextPad is pretty bad about suggesting filenames that are already in use) and re-assign all the hotkeys.
No other part of TextPad is giving me trouble, only the macros. Well, no new troubles.