Automatically Closing Files in Textpad

General questions about using TextPad

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

Post Reply
Rick Peplinski

Automatically Closing Files in Textpad

Post by Rick Peplinski »

Ok, here's the deal:

I would like to run a tool, and at some point during the execution of the tool (it doesn't matter when), I'd like textpad to close the selected document. You can't seem to do this with a macro in any way shape or form.

Any ideas?

-Rick

Richard Peplinski
Developer
Lante Corporation
peplinski@iname.com
Bob Hansen

RE: Automatically Closing Files in Textpad

Post by Bob Hansen »

I found the same problem. My solution was to use anothe macro program Macro Scheduler to do this. Macro Scheduler calls TextPad, calls TextPad macros, etc. until need to save. Then Macro Scheduler takes control again, sends keystrokes to close filein TextPad, then turns control over to TextPad again. This is available at www.mjtnet.com These two programs work together extremely well. Would be nice to see Macro Scheduler imbedded as part of TextPad replacing current Macro Utilities. Big advantage is the ability to edit in text vs. hex.
=========================================
Sample of MacroScheduler code follows here:

//Use Macro Scheduler to Close File.
Label>CloseEmail
Press ALT
SendCharacter/Text>F
Release ALT
SendCharacter/Text>C
WaitReady>1

//DONE Saving file. Repeat Macros until done.
Label>RepeatSavingEmail
Wait>2
Press CTRL
SendCharacter/Text>S
Release CTRL
WaitReady>1
FileSize>d:\reports\text\allrprts02.asc,MyFileSize
WaitReady>1
If>MyFileSize>100,FormatEmail

Label>CloseTextPad

=====================================
Good Luck.
Bob Hansen
Post Reply