#Printing
7 messages in this thread
Is there a way to print a file using a ARexx script (language)? I can read,
display and write the file, but have not been able to figure out how to
print it.
Allan Baer ( A 1 B = Software Support )
Allan,
The trick is to use Open() to open the prt: port, i.e.,
Open('PRT:','w'). Now when you do a WriteLn() to the filehandle assigned
in the open, the line will go to the printer.
Thanks for your help.
Open(print,'PRT:','w') and writeln(print,_____) work just fine.
Allan Baer ( A 1 B = Software Support )
Allan,
Great! That was an easy problem to solve.
I'm in the middle of one of my first ARexx attempts and what I did
was use the line – address command "type > prt: ram:bob". Bob being my
usual temporary filename. Other people here will have better help, that
just how I did it.
Steven,
along the same lines… a friend told me today how he managed to send
commands to a laserdisc player via the serial port in ARexx: just talk to
the serial device. Can anyone verify this?
Blaq! – via Whap!
Charles:
You have to know the format of the commands your LaserDisc player accepts,
the BAUD rate and serial port settings etc. but you can control a player by
just writing to the serial port. Myself I use a terminal program to send
commands to my player.
The advantage to the driver approach that Commodore implemented with
AmigaVision is that you don't have to worry about the different commands
sets used by the various players, the device driver takes care of it.
However if you are only interested in supporting a particular player,
writing directly to the serial port works fine.
-=Martin=-
– via Whap!