[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

CLIP.PGM, for XyDOS 4.x, and Win 9x/NT, to put text into WordPad



 <pre>CLIP.PGM puts the currently displayed file or highlighted text from it into a
WordPad RTF file using the Word For Word filters that come with XyDOS. It
preserves bold, ital, and underline but not typeface or fancy formatting.
Once the text is in WordPad you can edit it, save it, fax it, copy it to the
clipboard (CTRL+A then CTRL+C for the whole file), and so on.

Assumption is that you have the XyWrite filters installed and their location
stored in the WW default (see your settings.dfl file).

The program is heavily commented. It takes advantage of a Xy feature:
shelling out to DOS from the command line and a Win feature: starting any
program, including a Windows program, from the DOS command.

Since the filter spec and switch are stored in Save/Gets, you can modify this
program to save text to any other format and to call the program that can
read that format.

Enjoy.

Tim Baehr
tbaehr@xxxxxxxx<p><a href="attachments/pgmY7xNQUgH9J.pgm"><img src="pgmY7xNQUgH9J.pgm" alt="XyWrite XPL program"></a></p></pre>