home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_progs
/
commands
/
checkprt.lzh
/
CHECKPRT
/
CHECKPRT.DOC
< prev
next >
Wrap
Text File
|
1991-08-15
|
4KB
|
107 lines
*-----------------------*
/ /|
*-----------------------* |
| Prg.name : CheckPrt | |
| Date : 26.06.1991 | *---------------------------*
| Language : Oberon |/ /|
*-----------------------*---------------------------* |---------------- *
| ---- Copyright Tom Kroener | | /|
| /(c)| Richard Wagner Str. 40 | | / |
| / TKs| D-6602 Saarbruecken-Dudweiler | | / *
| / 1991| GERMANY | * / /
| -------- |/ / /
*---------------------------------------------------*-------------* /
| CheckPrt is a freely distibutable program, but not public-domain| /
| It may not be used in commercial products without my permission |/
*-----------------------------------------------------------------*
CheckPrt is a little tool to check in a script-file if a printer is
available.
So you save the long, long ,long , loooooong time it takes to show
you the 'Printer trouble ....' Requester.
In this version ChechPrt also checks if the printer is in 'busy'-state
( returns 5 ) for more flexibility.
Here a little scriptfile, showing the usage :
----------------------------------------------------------------------
| failat 20 ; CheckPrt returns 10 if printer is not selected or off |
| ; and 5 if it is busy |
| CheckPrt |
| IF ERROR |
| echo " Sorry, but your printer seems to be off or not selected" |
| echo " " |
| SKIP END |
| ENDIF |
| |
| CheckPrt |
| |
| IF WARN |
| echo " Wait a little moment, your printer is busy " |
| ELSE |
| echo " OK, your printer seems to be available" |
| ENDIF |
| |
| LAB END |
| FAILAT 10 |
---------------------------------------------------------------------
ATTENTION :
CheckPrt only works with printers using the parallel-port of
your Amiga. !!!!
Different printers returns different values, if they are switched on
and on-line.
This was the reason, why the version of CheckPrt on Fish 479 sometimes
worked not correctly.
After tests and suggestions of P.H. Orvis (many thanks !), I have
rewritten CheckPrt (Now in Oberon, only 612 Bytes long !), so
now it should work fine with all (I hope !) printers.
If have also included 2 small tools to make it easier to find
errors, if CheckPrt doesn't works correctly. (see also
Analyse+PDP.doc).
If something's going wrong, if you have any criticism, error-reports,
gifts or something else write to
Tom Kroener
Richard Wagner Str. 40
D-6602 SB-Dudweiler
GERMANY
So long
--- Tom