macro with context sensitive file save

General questions about using TextPad

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

Post Reply
JohnH
Posts: 6
Joined: Wed Aug 19, 2009 1:45 am

macro with context sensitive file save

Post by JohnH »

Is there a way to code a TextPad macro to save a file in which the filename is determined at the time of execution? I tried to write a macro that copies & pastes some selected text into the Save As File name box, but this doesn't work. TextPad appears to hardcode the filename when the macro is recorded. Can anyone suggest another approach or a work-around? Thanks.
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

You are correct. TextPad's macros have filenames hardcoded.

You can use other macro programs. I prefer Macro Scheduler ( http://www.mjtnet.com/macro_scheduler.htm ). Another popular one is AutoIt v3 ( http://www.autoitscript.com/autoit3 ). These are not text editors, but create macro scripts, and work well with TextPad. You can create scripts with them that open/close TextPad and perform most functions, including running TextPad macros.

AutoIt3 is free, but I have found for me that Macro Scheduler has more tools, and is easier to learn and use. Your results may vary.
Hope this was helpful.............good luck,
Bob
JohnH
Posts: 6
Joined: Wed Aug 19, 2009 1:45 am

Post by JohnH »

Thank you for confirming this, and for the AutoIt3 suggestion. I think I am just trying to do a task better suited to perl than TextPad. It's frustrating that TextPad is very close to solving this problem.
Post Reply