CompuServe Thread

#Printing

7 messages in this thread
#15953From: allanNov 2, 1991 10:43 AM
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 )
#15957From: Steven D. KapplinNov 2, 1991 12:05 PM
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.
#15972From: allanNov 3, 1991 1:27 AM
Thanks for your help. Open(print,'PRT:','w') and writeln(print,_____) work just fine. Allan Baer ( A 1 B = Software Support )
#15978From: Steven D. KapplinNov 3, 1991 11:00 AM
Allan, Great! That was an easy problem to solve.
#15969From: Gerard MenendezNov 2, 1991 5:35 PM
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.
#16005From: Charles BlaquiereNov 3, 1991 10:42 PM
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!
#16122From: Martin WarnettNov 7, 1991 11:48 AM
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!