rjbull, would you mind giving examples of how you use ClipText? (Some diehard WordPerfect DOS users might be interested). I looked at the whole site (nice) and from what I see, it's not quite a program to make copying between Windows and DOS apps as easy as Ctrl + C and Ctrl + V, correct?
Harrie, you're correct, ClipText is a command-line program to either take text from a file and send it to the clipboard, or to take text from the clipboard and send it to a file, with certain options. That's all it does on its own, but, I use Eric Meyer's Visual display Editor VDE
. Like most good editors, VDE can be "programmed" with macros. Its macro language includes features like flow control, the ability to run external programs, and a degree of user input. The talented John Woodruff wrote an extremely clever macro to automate ClipText operations under VDE. That macro isn't on the Web site yet but details are in the quote below, which is from John's post in the VDE mailing list (hosted at Topica):
The [v.v:WRZ] macro below uses Horst Schaeffer's
ClipText utility to provide VDE with Clipboard access under Windows NT/XP. It also works with Win 95 and above.
After starting the macro, respond to the "? Esc!"
prompt in the header by pressing W, R, or Z:
[W]rite: Marked block in the current VDE file is the source:
Selected VDE text is APPENDED to file C:\V.V
ClipText then OVERWRITES the Clipboard with C:\V.V
Use [Z]ap before [W]rite IF ONLY the CURRENT marked
block should be copied into the Clipboard, not an
accumulation of entries.
[R]ead: The current VDE file is the target:
ClipText APPENDS the Clipboard contents to file C:\V.V
VDE then reads C:\V.V at the cursor and marks the
incoming text as a block.
Use [Z]ap before [R]ead IF ONLY the CURRENT Clipboard
contents should be pasted into VDE, not an
accumulation of entries.
[Z]ap: Erases file C:\V.V but does NOT access the Clipboard
======= Macro ====================================================
[AltR]CLIPTEXT FROM C:\V.V /DOS[Enter][Esc][Esc]!]
[AltR]CLIPTEXT TO C:\V.V /APPEND /DOS[Enter][Esc] ^KB^KRC:\V.V[Enter]^QP^KK[Esc]!] [Esc]Z ^KJC:\V.V[Enter]
======= Notes ====================================================
File C:\V.V is an arbitrary choice, but whatever file is
used, it's necessary to state the full path in the macro. Reason: The ^KW and ^KR path is the path of the current file, whereas the [AltR] shell path is set when the VDE session is started, subject to being changed later by other DOS commands.
The ClipText /DOS switch causes extended ASCII characters
to be translated. I've included it in both the [W]rite and [R]ead routines, but it can be edited out. The ASCII/ANSI character conversion is similar but not identical to that in VDE's ^[ and ^] commands.
The initial ^KS in [R]ead is a safety feature, making
it possible to use ^KL^F to status back from a Read/Only lockup in case of Graphics Overflow due to too many different translatable extended ASCII characters in the source text.
In other words, being able to use ClipText seamlessly requires the editor to have reasonably good macro abilities of its own, but I believe WordPerfect has that. Obviously, the implementation would be very different, but skilled WordPerfect users should be able to adapt the principles. By the way, VDE can read and write WordPerfect files, and can even be made to behave with a degree of "WordPerfect-likeness" itself. Quoting VDE.DOC:
WORDPERFECT - /P mode reads and writes files in WP v.4 format. /F mode
reads WP v.5-6 or WP for Windows files, and writes v.5 format (which can also
be read by v.6, or imported into WPfW). Both modes support some formatting
features and underline, boldface, and super/subscript; /F also supports
italics and strikeout. You can edit in VDE using a command set much like
WordPerfect's by using the supplied WP.VDF key definition file, which makes
the function keys call up the MenuBar in a manner similar to WP commands.
Hence VDE might be a useful adjunct for WP users, even if they don't go over to it full-time.
Horst Schaeffer's software is excellent, and he's one of the nicest people you could deal with, very generous and helpful
Hope that helps.