home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Elysian Archive
/
AmigaElysianArchive.iso
/
printer
/
prtmacro.lha
/
PrintToDisk
next >
Wrap
Text File
|
1990-07-13
|
2KB
|
40 lines
/* Send parallel port output to spool file */
/*
This macro uses the "CMD" program provided with Workbench to
capture all data sent to the parallel port and send it to
the file "RAM:SpoolFile".
If you also execute the CLI script "Spooler", you can get
background printing from ProWrite. The Spooler script
looks for the file "RAM:SpoolFile", sends it to the printer
if found, and then deletes it. To start the Spooler, type
the command "Run Execute Spooler" from the CLI, or put this
command in your Startup-Sequence file. If you are using a
floppy-based system, you might also want to make the "If",
"EndIf", "Wait", "Skip", and "Lab" CLI commands resident,
since the Spooler script will be using them every 10 seconds.
You can use this macro without the "Spooler" script if you
just want to print to disk. For example, you could print
to disk using the LaserJet driver, copy the file to an IBM
disk, and print it on a LaserJet you have connected to a PC.
After starting this macro, the "Print" requester will appear.
Select the print options you want and click on "OK". The
file will be printed to the file "RAM:SpoolFile". Do not
click on "Cancel" in the "Print" requester, or you will leave
the "CMD" program running.
*/
If ~Show(files, STDOUT) Then Call Open 'STDOUT','NIL:'
/*
Change the following path to where your "CMD" program is located.
If you want to print to a different file name or location, change
the "RAM:SpoolFile" item to the name and location you want.
*/
Address command 'Run <NIL: >NIL: SYS:Utilities/CMD parallel RAM:SpoolFile'
Address 'ProWrite' Print