home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d6xx
/
d656
/
jbspool.lha
/
JbSpool
/
JbSpool.DOC
< prev
next >
Wrap
Text File
|
1992-05-15
|
13KB
|
247 lines
JbSpool release 1
© Copyright 1992 Jaba Development
Written using Dice v2.06.40
by Jan van den Baard
__ __
/ / / \
__ / / / /\ \
_____\ \__/ /_/ /_/ /_____
(__________________________)
DISCLAIMER
---------------------------------------------------------------------------
The author is not responsible for any damage caused by the use or misuse of
this documentation and/or the program(s) it describes. Any damage resulting
from the use or misuse of this documentation and/or the program(s) it
describes is the sole responsibility of the user her/him self.
---------------------------------------------------------------------------
COPYRIGHT
---------------------------------------------------------------------------
JbSpool, © Copyright 1992 Jaba Development. All rights reserved. This
program is
FREEWARE
so no financial donations are required. I would like to
get a postcard of your home town if you use this program!
---------------------------------------------------------------------------
Ever dreamed about the following?
Copy file1 to PRT:
Copy file2 to PRT:
Copy file3 to PRT:
And still being able to continue to work without having to wait for the
printer to finish? Well I did and I started to write my own spooler to do
the job for me. JbSpool is a printer spooler specially written for
AmigaDOS release 2.04. It has been implemented as a commodity and the
program has been written with the "User Interface Style Guide" close
at hand. It features a complete font adaptable GUI containing a lot of
control gadgets and menus. You can start JbSpool from the shell and the
workbench.
Installing
---------------------------------------------------------------------------
There is one important thing that you _must_ do before starting JbSpool.
You have to create a directory and assign it as JBS:. This is the
directory that the program uses to look for files to print. Please do not
use this directory for any other purpose than for JbSpool. The reason for
this is that when JbSpool performs a directory scan it will delete all non-
ascii files and then it starts to print out each file that is in this
directory. It's best to install this directory on a ram or harddisk. To
make the directory you must insert the following lines in your startup-
sequence:
MakeDir RAM:Jbs ; can be DH0:Jbs or DF0:Jbs or what ever you want...
Assign JBS: RAM:Jbs
Starting JbSpool
---------------------------------------------------------------------------
JbSpool has the following command-line/tooltype template:
JbSpool [CX_PRIORITY] [CX_POPUP] [CX_POPKEY] [QUIT] [MINUTES] [SECONDS]
[DONTSTART] [NOAPPICON]
CX_PRIORITY/K/N,CX_POPUP/K,CX_POPKEY/K,QUIT/K,MINUTES/K/N,SECONDS/K/N,
DONTSTART/S NOAPPICON/S
CX_PRIORITY -: With this argument you can set JbSpool it's priority
in the commodities queue.
Default : 0
CX_POPUP -: When you specify "CX_POPUP=NO" for this argument the
window will not be opened.
Default : YES
CX_POPKEY -: This argument must be used to set the hotkey that will
tell JbSpool to open it's window.
Default : control lshift j
QUIT -: This argument must be used to set the hotkey that will
tell JbSpool to quit.
Default : control lshift q
MINUTES -: With this argument you can specify the amount of
minutes JbSpool must wait before scanning the spooler
directory.
Default : 1
SECONDS -: With this argument you can specify the amount of
seconds JbSpool must wait before scanning the spooler
directory. Note: The total amount of seconds (minutes *
60 + seconds) cannot be smaller than 5. JbSpool makes
sure that this is the case.
Default : 0
DONTSTART -: When you specify this argument JbSpool will _not_ start
printing the files from the queue until you click on
the "Continue" gadget.
NOAPPICON -: When you specify this argument JbSpool won't add
an application icon to the workbench screen.
All the arguments can also be set as tooltypes in the program it's icon.
Note that you dont have to "Run", "RunBack" or "ARun" JbSpool because it
will automatically detach itself from the shell.
The Window
---------------------------------------------------------------------------
When the JbSpool window is open you will see the following gadgets:
ListView -: This gadget has all files currently in the spooler
queue listed.
Printing -: This gadget displays the name of the file which
JbSpool is currently printing. When no file is being
printed this gadget can show "*** IDLE ***" which means
that no files are left in the queue or it can read
"*** STOPPED ***" which means that there are files left
in the queue but you have selected the "Stop" gadget or
it can read "*** DELAYED ***" which means that you have
cancelled the requester telling you that the printer
isn't on-line or the requester telling you the printer
is out of paper. Note: When you cancel either of the
above mentioned requesters the file still remains in
the queue and JbSpool will try to print it again after
the next directory scan.
% -: This gadget only shows the percentage of the file that
has already been send to the printer.
Insert FF -: When this gadget is checked JbSpool will send a form
feed afters each file it has printed. This will prevent
that parts of different files will be printed on the
same sheet of paper.
Abort -: This gadget is only selectable (on) when JbSpool is
busy printing a file. Clicking on this gadget will
abort the printing. Note: The file that is aborted will
be deleted from the JbSpool queue and from the JBS:
directory.
Minutes -: With this gadget you can change the amount of minutes
JbSpool has to wait between directory scans.
Seconds -: With this gadget you can change the amount of seconds
JbSpool has to wait between directory scans.
Add... -: This gadget will bringup the ASL FileRequester in which
you can select a file which must be added to the queue.
The ASL FileRequester is setup so that you can select
multiple files. Just click on the filenames that you
want. To Add the file you can either double-click the
last name or you can click on "Add". Note: The selected
files will be copied into JBS:.
Remove... -: This gadget is only selectable (on) when you have
clicked on one of the entries in the ListView gadget.
This will remove the file from the queue and it will
delete it from the JBS: directory after asking for
confirmation. Note: If you select not to let JbSpool
delete the file from the JBS: directory the file
will re-appear in the queue when the program re-scans
the JBS: directory.
Up -: This gadget is only selectable (on) when you have
clicked on one of the entries in the ListView gadget.
This will move up the file one place in the queue.
Down -: This gadget is only selectable (on) when you have
clicked on one of the entries in the ListView gadget.
This will move down the file one place in the queue.
Top -: This gadget is only selectable (on) when you have
clicked on one of the entries in the ListView gadget.
This will move the file to the top of the queue.
Bottom -: This gadget is only selectable (on) when you have
clicked on one of the entries in the ListView gadget.
This will move the file to the bottom of the queue.
Stop -: Clicking on this gadget tell's JbSpool that it must
wait until further notice when the file currently being
printed is done.
Continue -: Clicking on this gadget tell's JbSpool to continue with
with printing.
Hide -: A standard commodity gadget. This will hide the window.
Quit -: When you click on this gadget the program will quit
right after it has finished the file it is currently
printing. Note: All file that where left in the queue
will automatically be deleted from the JBS: directory.
JbSpool also contains menus which have the same function as their related
gadgets. One exception is the "About.." menu which displays some info about
the program.
How it works
---------------------------------------------------------------------------
To get JbSpool to print your files you must do the following _very_ easy
thing:
Instead of saving your file to PRT: you must save it to JBS:.
Simple eh?....
Workbench support
---------------------------------------------------------------------------
As if all of the above isn't enough JbSpool also add's it's own AppIcon to
the workbench when the workbench is open. When JbSpool was started from
the shell and the workbench isn't open JbSpool will try to add it's
AppIcon each time a directory scan is performed. This way the AppIcon will
also be added after you have started the workbench. The usage of the
AppIcon is simple. Double clicking it will cause JbSpool to open it's
window and dropping one or more icons on the AppIcon will cause the files
to be copied in the JBS: directory.
Notes
---------------------------------------------------------------------------
JbSpool will check if the files that are copied into the JBS: directory are
plain ascii files. It will _only_ print plain ascii files. It simply reads
the first 100 (or less) bytes of the files and if it contains one of the
following bytes it won't print the file: (values are in hex)
0x01 to 0x08
0x0E to 0x1A
0x1C to 0x1F
0x80 to 0x9A
Because of this check the directory scan can take some time when the JBS:
directory is assigned to a slow device like a disk drive. To get full speed
you should assign JBS: to either a ram disk or a hard disk.
Bug reports, suggestions, postcards, flames, criticism, contributions,
ideas, gifts, etc., etc., etc......... to:
Jan van den Baard
Bakkerstraat 176
3082 HE, Rotterdam
The Netherlands
FIDO: 2:500/29 (Jan van.den.Baard)