home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of A1200
/
World_Of_A1200.iso
/
programs
/
commodity
/
starblank
/
starblank.docs
< prev
next >
Wrap
Text File
|
1995-02-27
|
10KB
|
229 lines
*==========================================================================*
|| ||
|| StarBlank © 1993 by Brian Neal ||
|| ||
|| THIS PROGRAM IS COPYRIGHT 1993 BY BRIAN G. NEAL. ||
|| PLEASE READ THE FOLLOWING LEGAL MUSH ||
|| ||
|| Permission is hereby granted to distribute this program's ||
|| executable and documentation for non-commercial purposes, so long as ||
|| the executable and documentation are not modified in any way. ||
|| This program may not be distributed for a profit without the express ||
|| written consent of the author Brian Neal. ||
|| ||
|| This program is not in the public domain. ||
|| ||
|| Fred Fish is expressly granted permission to distribute this program's ||
|| executable and documentation as part of the "Fred Fish freely ||
|| redistributable Amiga software library." ||
|| ||
|| MEGA-KUDOS GO TO LEO L. SCHWAB, WHOSE STAR ROUTINE 'STARS.C' ||
|| INFLUENCED THIS PROGRAM. ||
|| ||
*==========================================================================*
StarBlank - brought to you by Brian Neal of Xarxas Technologies
StarBlank 3.1 Documentation - June 22, 1993
INTRO
=====
StarBlank is a screen blanker that can display a moving star field to
protect your monitor from 'burn in'. This release kicks StarBlank into
the post 2.0 era, in the form of a 'commodity'. This means the user has
more control over StarBlank. In addition to all the benefits of
commodities, this version adds a user definable insty-blank (tm) hotkey.
REQUIREMENTS
============
You need an Amiga running the 2.0 release of the Amiga operating system.
Hopefully, this guy runs under 3.0 (see below).
HOW TO USE
==========
StarBlank can be run from the Workbench or the shell. StarBlank supports
the following tool types/options/arguments/whatever:
DONOTWAIT (Tool type only) The system won't wait for StarBlank to
quit when launched from the WBStartup drawer.
PRIORITY=n The priority to run StarBlank. The valid range for n is
from -128 to 127. IT IS STRONGLY SUGGESTED THAT YOU KEEP
THE PRIORITY BETWEEN -20 AND 20. Setting it above 50, for
example will lock your machine up since you are running at
a higher priority than the input.device. On a multitasking
system such as the Amiga it is very desirable to set the
priority of your screen blanker fairly low so it won't
slow up more important tasks such as downloads, raytracing,
or compiling programs. The default is -10.
CX_PRIORITY=n StarBlank will have priority n with respect to other
commodities in your system. The valid range for n is from
-128 to 127. The default is 0.
CX_POPUP=answer Answer should be either YES or NO. If answer is not
NO, StarBlank will open its control window upon startup.
The default is YES.
CX_POPKEY=hotkey The key sequence to use to cause StarBlank to open its
control window. See the HOTKEYS section below. The
default is control alt b.
SECONDS=n Where n is the amount of time (in seconds) of inactivity
StarBlank will wait before blanking the screen. The
default is 60 seconds.
TOP=n This esoteric feature tells StarBlank to open its blanking
screen n pixels from the top, in case you want to keep a
memory gauge or something always visible. The default is
0. Be careful about goofy values!!
STARBLANK=answer Answer should be either YES or NO. If answer is not NO,
StarBlank will use the moving star field effect when
blanking. Otherwise it will throw up a black screen
(less cpu intensive). The default is YES.
BLANK_HOTKEY=key The key sequence to instantly blank the screen. See the
HOTKEYS section below. The default is control alt del.
PUBSCREEN=screen When asked to open its control window, StarBlank will try
to do so on the public screen named 'screen'. If the
screen is not open, StarBlank will try and open on the
Workbench. The default is Workbench.
WARP=n This feature allows you to tune StarBlank's star field
display rate to your specific system and preference.
The 'warp factor' n is the number of microseconds to
wait between drawing successive star fields. The default
is 0. To slow things down on my A3000, for example, a
good value to use is 1500. (This feature was provided
for A4000 owners, since the new 3.0 version of the
graphics function WritePixel() uses the cpu instead
of the blitter, and is considerably faster.)
Use quotes if you start StarBlank from the shell and your arguments
have embedded spaces, eg.
StarBlank pubscreen MegaComm blank_hotkey="ctrl alt f10"
If you start StarBlank from a shell (or user-startup) and will later want
to close that shell, remember to use "run StarBlank >NIL: <NIL: ...".
Typing "StarBlank ?" from the shell will remind you of the options.
When running from the shell, StarBlank will abort with an error code and
print some kind of diagnostic message if it fails. From the Workbench,
StarBlank will die silently if it fails.
StarBlank can be aborted from a shell with <ctrl><c> or by the BREAK
command.
HOTKEYS
=======
StarBlank allows the user to customize the two hot keys. The method
used is simple to keep program size down and is very flexible, but the
drawback is that the novice user may have some trouble with it. To
customize a hot key, simply type the key sequence into the appropriate
string gadget, or use the tool type or command line argument. The tricky
part is the key sequence syntax. I will paraphrase from pages 736-737
of the _Amiga_ROM_Kernel_Reference_Manual_Libraries_. For our purposes
use the following syntax:
{ [-] QUALIFIER } [KEY]
For the regular expression impaired, this means zero or more QUALIFIERs,
each of which may be preceeded by an optional '-', followed by an
optional KEY.
QUALIFIER can be one of the following:
lshift (the left shift key)
rshift (the right shift key)
shift (any shift key)
lalt (the left alt key)
ralt (you guessed it - the right alt key)
alt (any alt key)
capslock
caps (either shift or capslock)
control (ctrl also seems to work)
lcommand (the left amiga key; lamiga also seems to work)
rcommand (the right amiga key; ramiga also seems to work)
numericpad
leftbutton (the left mouse button; lbutton also seems to work)
rbutton (the right mouse button)
midbutton (the middle mouse button; of course you have to have
one for this to be useful :^) )
The optional preceeding '-' sign says "do not care if this qualifier
is present".
KEY can be any single letter on the keyboard (eg x) or one of these:
space, backspace, tab, enter, return, esc, del, up, down, right,
left, help, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10
StarBlank simply passes your hot key sequence to the commodities library.
If it doesn't like your hot key, StarBlank will not accept it and reset
the hot key to the last legal sequence.
Examples: ctrl lshift f1
lshift alt esc
ralt ctrl up
alt lshift x
leftbutton esc
CAVEATS
=======
IT IS VERY EASY TO FIND HOT KEYS THAT WONT WORK AS ADVERTISED!!
I was very surprised at what hot keys will and will not work.
The commodities library seems to be inconsistent and a little buggy
in this area. Why does 'ctrl -shift |' work, but 'ctrl -shift *' does
not? The numeric keypad is also tricky: 'ctrl lalt -numericpad *'
works but 'ctrl lalt -numericpad enter' won't. So if StarBlank doesn't
like your key sequence, it may be the commodities library's fault.
You'll have the best luck on simple sequences, so you may have to
experiment a little.
This version was developed on an Amiga 3000 running 2.1. Please
let me know if it runs on your 2.0+ machine. It "should" run under 3.0,
but I could not verify this.
ETC
===
The rest of StarBlank is your standard Amiga interface, so I won't
insult your intelligence :^). Especially handy are the dozen or so
string gadget editing keys like ctrl-x, tab, shift-tab, ctrl-w, ctrl-k,
ctrl-a, ctrl-z,... Remember to hit return (or tab/shift tab) after
entering something in the string gadgets!
CREDITS
=======
A big thank-you goes to Leo L. Schwab for his stars.c program on
Fred Fish disk #33. His piece of code inspired my own star routine.
Thanks Leo!!!
The following people gave useful advice and bug reports on earlier
versions of StarBlank:
Eric Penn, John T. Merryman, Jeffrey Booker, Phillip Klien,
C. Rick Bramham II, & Karl Laun
The current thank-you list: Eric Penn again!
Please send me your comments, suggestions, and bug reports!
Brian Neal
106 Mabel Court #D
Morris, IL 60450
U.S.A.
GEnie: B.NEAL2