[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Printing to a USB from XyDOS via XyWin
- Subject: Printing to a USB from XyDOS via XyWin
- From: Harry Binswanger hb@xxxxxxxx
- Date: Mon, 09 Feb 2004 00:18:27 -0500
For those looking for a way to print from XyDOS to a USB port:
If you have XyWin, you can automate the process, using XyWin to print from
Windows. The net result is that a single keystroke (if you modify your .kbd
file) will print the XyDOS file to a temp file, launch XyWin to open it and
print it, then close XyWin--all without operator intervention.
The trick is to have XyWin's launch call a special version of xwstart.int
(instead of its regular xwstart.int--the XyWin equivalent of startup.int).
Let's call the modified .int file: xwprint.int. To launch it from XyDOS you
run a XyDOS program that culminates in:
BX dos/nv/x/z /c start /w c:\xywin\xw.exe ,c:\xywin\xwprint.intQ2 ;*;
At the bottom of your xwprint.int, you have:
BX ca c:\xywin\-temp.xywQ2 ;*; open the temp file "-temp.xyw"
BX pQ2 ;*; a pause for safety's sake
BX tyQ2 ;*; print the file in XyWin
BX waitQ2 ;*; a wait, for safety's sake
BX quitU2 ;*; quit out of XyWin, which returns control to XyDOS.
The XyDOS program that runs this whole show is short, and is an adaptation
of Tim Baehr's WORDPAD.PGM. As with Tim's original program, mine allows you
to transparently print either a whole file or a DeFined block. If anyone
wants a copy of this program, I can post it to the list.
Harry Binswanger
hb@xxxxxxxx