Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!oliveb!amiga!cbmvax!andy From: andy@cbmvax.UUCP (Andy Finkel) Newsgroups: comp.sys.amiga Subject: Re: Programming Question Message-ID: <2687@cbmvax.UUCP> Date: Wed, 4-Nov-87 16:43:06 EST Article-I.D.: cbmvax.2687 Posted: Wed Nov 4 16:43:06 1987 Date-Received: Sat, 7-Nov-87 16:44:25 EST References: <1989@gryphon.CTS.COM> Reply-To: andy@cbmvax.UUCP (Andy Finkel) Organization: Commodore Technology, West Chester, PA Lines: 45 In article <1989@gryphon.CTS.COM> mrandall@pnet02.CTS.COM (Mark Randall) writes: >I'm not sure that you are the correct person at C=A to direct this question to >but I hope you can pass it along (or someone reading this will help). > >We need to able >to detect if the printer is online and the paper out condition through the >printer device. I know how to do it through the parallel device but is there >a way to do it through the printer device? The printer.device obeys when you set the WindowPtr in your process structure to -1; in this case it does not bring up the requester, instead returning to let the program handle things. Second, left-Amiga V and left-Amiga B can be used to retry and cancel autorequesters respectively anyway, without the mouse. (there are keyboard equivalents for other mouse functions; no one said they were fun though; either Amiga key and the cursor keys control the mouse movements; either Amiga key and the left Alt is the left mouse buttom; either Amiga key and the right Alt key is the right mouse button.) > >We need to intercept these error conditions before intuition jumps n with the >requester since we are not shipping the program with a mouse ( I know, I know >but I only work here. THAT decision is the fault of our boys upstairs). Just so you know... > >Along the same lines... We also must modem this financial data back to HQ >automatically. I'd like to be able to check the Carrier Detect status. I see >here in the book how to find DSR & CTS in the io_Error flag. Must I do >naughty things like accessing the register directly or is there another way? I think the SERIAL_QUERY command will give you what you want. -- andy finkel {ihnp4|seismo|allegra}!cbmvax!andy Commodore-Amiga, Inc. "Interfere? Of course we'll interfere. Always do what you're best at, I always say." Any expressed opinions are mine; but feel free to share. I disclaim all responsibilities, all shapes, all sizes, all colors.