home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 2: PC
/
frozenfish_august_1995.bin
/
bbs
/
d07xx
/
d0787.lha
/
SetSC
/
SetSC.doc
< prev
next >
Wrap
Text File
|
1992-12-24
|
19KB
|
385 lines
__
/ ////
__ ///
\ \ /// < < <<< SetSC v2.10 >>> > >
\ \///
\__////
USER MANUAL
- Release : 15-Nov-92
Copyright ⌐1991-1992 Chris P. Vandierendonck, [AmiSYS].
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Copyright Notice
~~~~~~~~~~~~~~~~
SetSC
is released as
SHAREWARE
, not excluding the copyright and
all other rights, which remain with the author Chris P.
Vandierendonck. If you use
SetSC
then you must pay the shareware
fee and register.
Prior written permission from the author is required to
distribute
SetSC
and to use
SetSC
in commercial releases, on
coverdisks or diskmagazines. When distributed, all files must be
kept together, in their original unmodified form.
(AmigaDOS and Workbench are trademarks of Commodore Amiga Inc.)
Disclaimer
~~~~~~~~~~
SetSC
is provided "AS IS", WITHOUT ANY WARRANTY to its quality,
performance or fitness for a particular purpose. In no event
shall the author be liable or responsible to the user or any
other person, for any kind of damage caused by the use of this
software.
Shareware registration, suggestions, remarks and bug reports
about this program can be send to the following address :
Chris Vandierendonck
Koning Albertstraat 188
B-8210 VELDEGEM
BELGIUM
SHAREWARE information
~~~~~~~~~~~~~~~~~~~~~
It's essential for the further development of
SetSC
to pay the
shareware fee
. You can register your version of
SetSC
for
5 (five) US dollars. If you register both
SetSC
and
GetSC
at the
same time, then the registration fee is 10 (ten) US dollars,
including one update of
SetSC
and of
GetSC
.
If possible, use a printout of the '
RegForm
' file to register.
Send this form along with the shareware fee to the above
address. You can send the money in cash (fastest and cheapest
way), or by (international) money order payable to Chris
Vandierendonck. (DO NOT send bankcheques, since they are too
expensive to clear!)
Preface
~~~~~~~
SetSC
is a program to easily change the colours of a given
screen. This can be either the Workbench screen, the topmost
SetSC v2.10 User Manual - Page 1
(first) screen or a screen with a certain name (title). It's
also possible to change all screens with the same colour map.
You can specify colours directly on the command line, or you can
use one of the predefined colour maps, as stored in a SetSC.MAPS
file.
In view of the recent change in the colour palette with AmigaDOS
Release 2, a REMAP option was implemented in
SetSC
. This
function enables you to switch the black and white colours of a
screen.
Furthermore,
SetSC
includes a delay and an exchange function.
The first lets the program wait for a number of seconds. The
latter enables you to change the screencolours for a certain
period, after which the original screencolours are restored.
SetSC
currently supports a colourmap with a maximum of 32
colours. (This can change in future versions, since the new
breed of Amigas support upto 256 colours!)
SetSC
is reentrant, so it can be made resident.
System Requirements
~~~~~~~~~~~~~~~~~~~
SetSC
requires AmigaDOS v1.2 or higher.
Program Usage
(Shell/CLI only)
~~~~~~~~~~~~~
FORMAT : [[NAME] <mapname>] [(x,x,x,x,..)] [WBCOLS] [REMAP]
[FORCE] [SCREEN <name>] [WB] [ALL] [EXCHANGE <secs>]
[DELAY <secs>] [INIT] [T] [S] [LIST] [VERSION]
o
SetSC arguments
:
("?" gets the program format.)
[[NAME] <mapname>] : use the colour map saved under the
<mapname> in the SetSC.MAPS file. At
startup
SetSC
will look if the temporary
'T:SetSC.MAPS' file exists, if so then
SetSC
will look in this file for the wanted
colourmap. If the temporary file isn't
present, then
SetSC
will create this file,
and copy all colourmaps from the
'S:SetSC.MAPS' file (same as using INIT).
The optional keyword NAME can be used to
prevent
SetSC
from interpreting a mapname
as an argument keyword. E.g. if you have a
colourmap with name 'WBCOLS' then,
SetSC
will think it's the keyword for the WBCOLS
option, unless you use 'SetSC NAME wbcols'.
[(x,x,x,x,..)] : you can also specify directly on the
command line the colourmap to use, rather
than using a predefined colourmap. You can
give upto 32 colours, but it isn't
necessary to always give as many colours as
the screen uses. E.g. if the target screen
uses 8 colours, and you only want to change
the first two colour registers, then you
SetSC v2.10 User Manual - Page 2
may give only two colours.
The colourmap must always be enclosed by
brackets, while the colourvalues must be
seperated by commas. The colourvalues must
be in the 0..4095 range. The values can be
supplied in four different number systems.
To specify the number system, you must
preceed the value by one of the following
system identifiers:
- '','d' or 'D' : decimal value
- 'h' or 'H' : hexadecimal "
- 'b' or 'B' : binary "
- 'o' or 'O' : octal "
| Type 'SetSC (h88B,h000,hFFF,hC34) WB'
| and see how the colours of your
| Workbench screen change.
[WBCOLS] : use the colours of the Workbench screen to
change the screencolours.
[REMAP] : switch values of colour register 1 and 2
(in other words switch the black and white
colours). In AmigaDOS Release 2 register 1
corresponds to white, and register 2 to
black. In earlier AmigaDOS versions,
register 1 corresponds to black, and
register 2 to white.
| 'SetSC REMAP WB' will switch the
| colours of register 1 and 2 of the
| Workbench screen. (You'll certainly
| notice the effect on the icons, since
| they'll appear to be remapped.)
If REMAP is used in conjunction with a
colourmap, then
SetSC
will remap this
colourmap, before using it on the target
screen.
| 'SetSC (hBBB,h000,hFFF,h68E) REMAP WB'
| This will change the workbench screen to
| the specified colours, except that the
| second and third colour will have
| changed places. If you use 'GetSC WB'
| to check the colours, you'll get the
| next colour map: (hBBB,hFFF,h000,h68E).
| Noticed the difference?
[FORCE] : in some cases you'll supply a colour map
that has less or more colours than the
target screen uses. If this is so, then
SetSC
will ask the user to proceed or to
exit. (Note: there's no danger in
proceeding, since
SetSC
will only change as
many colours as the screen allows.)
E.g. your default Workbench screen uses 4
SetSC v2.10 User Manual - Page 3
colours. If you supply a colourmap with 8
colours, then
SetSC
will ask what to do. If
you proceed, then
SetSC
will only use the
first four colours of the colourmap to
change the Workbench colours.
The FORCE option is to prevent that
SetSC
asks what to do.
SetSC
will simply change
the screen colours safely.
[SCREEN <name>] : change the colours of the screen with the
given <name>. The <name> corresponds to the
first words of the screen title. If this
name contains spaces then you must enclose
the name between double quotation marks.
The screen is searched on a non-case
sensitive basis, so 'name' matches 'NAME'.
| 'SetSC SCREEN workbench', or 'SetSC
| SCREEN "workbench screen"', changes the
| colour palette of the Workbench screen.
[WB] : change the colours of the Workbench screen.
This option is disabled when the SCREEN
option is used.
[ALL] : change the colours of all screens
available. This option is disabled when the
SCREEN or WB option is used.
[EXCHANGE <secs>] : change the screencolours to those of the
specified colourmap, and after the given
number of seconds restore the original
screencolours.
[DELAY <secs>] : wait the given number of seconds before
changing the screencolours.
[INIT] : update the temporary 'T:SetSC.MAPS' file
with the 'S:SetSC.MAPS'. This function is
important when you have added a new colour
map to the 'S:SetSC.MAPS' file. Because
SetSC won't find this new map in the
'T:SetSC.MAPS' file, you'll have to update
this temporary file with the new
'S:SetSC.MAPS' file.
[T] : only use 'T:SetSC.MAPS' to work with.
[S] : only use 'S:SetSC.MAPS' to work with.
[LIST] : list all colourmaps available in the
SetSC.MAPS file. If 'T' and 'S' aren't used
then both the 'S:SetSC.MAPS' and
'T:SetSC.MAPS' files are listed, otherwise
what file is listed depends on the usage of
'T' and 'S'.
[VERSION] : print the program's copyright and version.
SetSC v2.10 User Manual - Page 4
o
Compiling a collection of predefined colourmaps
:
You can collect colourmaps in three ways :
- You can edit the 'S:SetSC.MAPS' file, and define your own
colourmap. Note that these entries must be in the following
format : <mapname> (x,x,x,x,..). If you want to insert
comments, you must use the semicolon (;) like in AmigaDOS
scripts. This way of working is very difficult, since you
normally don't know which colours will come from the given
values. Therefore it's better to define colourmaps by the next
two ways, which both involve the use of
GetSC
.
- You can use
GetSC
(See "GetSC.doc" for more information!) and
grab the colourmap of an existing screen.
- Another way is to use a palette requester (like the one
supplied with your system software) to change the colours of
the Workbench screen (or any other screen), and then using
GetSC
to grab the colour map.
IMPORTANT: if you want to store your colourmaps permanently, you
must add the colourmaps to the 'S:SetSC.MAPS' file,
not to the temporary file in 'T:'!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Program antecedents
~~~~~~~~~~~~~~~~~~~
VERS RELEASED RC COMMENT
==== ========= == ============================================
1.0 08-May-91 PU First program version.
1.10 29-Jul-91 PU Minor updated version.
1.10a 16-aug-91 PU Minor internal code changes.
2.00 15-nov-91 PU Remove the builtin colour maps. SetSC now
gets its values from a file called
'S:SetSC.col' or from the CLI argument line.
New arguments added :
o [HELP] : display help text.
o [SILENT] : don't print copyright prompt.
o [-eX] : change to new colours for x-
secs.
o [-dX] : only change after x-seconds.
o [WB] : only change the workbench.
o [WBC] : use the workbench colours on the
first screen.
o [ALL] : change colours from all screens.
o [FORCE] : change screen colours, no matter
what the screendepth is.
o [NOT] : do not use colour maps in T:.
o [INIT] : reread colour maps from file.
o [LIST] : list all colour maps in use.
2.01 28-dec-91 PU Added new argument :
o [REMAP] : switches the black and white
colours.
2.02 29-Mar-92 PU Minor code changes.
2.10 15-Nov-92 SW First public release version.
This version is an improvement to the
previous ones. The program has been totally
SetSC v2.10 User Manual - Page 5
rewritten, resulting in much more efficient
and shorter code.
New options : [SCREEN <name>]
[T]
Option changes : [NOT] -> [S]
[WBC] -> [WBCOLS]
[-eX] -> [EXCHANGE <#>]
[-dX] -> [DELAY <#>]
[SILENT] -> [VERSION]
Removed options : [HELP]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SetSC v2.10,
Copyright ⌐1991-1992 Chris P.Vandierendonck [AmiSYS],
All Rights Reserved.
SetSC v2.10 User Manual - Page 6