home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
007.lha
/
RSLClock.doc
< prev
next >
Wrap
Text File
|
1986-11-10
|
7KB
|
111 lines
RSLClock is a superficially simple little utility that "runs"
unobtrusively at the end of the screen title bar. The "close" gadget
and "window to front/back" gadgets are there, but they are hidden from view!
There it sits, indicating both the currently free memory, the time, and once
a minute, the date. It also "pops up" to the front of the Workbench screen,
once every minute. If you would like military time you can run the program
with "Run RSLClock long" it will then read out 12 hour time in AM/PM type
(hours & minutes), otherwise the default setting is Hours:minutes in 12 hour
style.
SYNTAX:
LONG (this will toggle military 24 hour time with HH:MM:SS style)
BACK (this will create a "backdrop" black screen that can be toggled
in/out by using left-Amiga N/M keys or by double clicking
the menu button when the window is activated - use it
to hide current screen)
NOPOPUP (this disables the feature to pop clock window to front of
workbench screen at the beginning of every minute)
SPLITUP (this will split up the memory display into free chip and
fast memory, separately)
COLOR [B],[D] (this sets the colors of the window pen - first number
can be 0-3, and background pen - second number can be 0-3.
Any other numbers will give you the default colors)
POSITION [X],[Y] (this sets the left top edge of the window if the
given width allows it, should you be utilizing WB 1.2 in
400 line Workbench mode use an asterisk * and a space before
the position commands in order for the program to recognize more
than 200 lines per screen)
[disk drive] (i.e. DF1: this will indicate the number of free Kbytes
on indicated disk drive, re-evaluated once every minute!)
[# Kbytes before emergency shutdown] (i.e. 25 this will shut down
this utility and reclaim the memory if your system's free
memory falls below this point, default is 10 Kbytes!)
? (this will display syntax)
Note single letters are the same as typing the entire command!
As an example RUN RSLClock b s DF1: p 120,45 will run the program
with a backdrop screen, split memory into it's chip and fast components,
display info on DF1: and displace the window to the given coordinates!
*****************************************************************************
New In Version 1.1:
This new update includes a menu which allows you to change all of the
available options of RSLClockPlus, after it is running. An additional
feature available via the Menu is the ability to summon an emergency CLI
which runs completely independent of all other tasks. Since RSLClockPlus
always pops up in front of all other Workbench windows, this may be helpful
when there isn't any other way to get into a CLI. I found PopCLI redundant
with this feature available, but be cautious since this feature, like
EXECUTE, takes 40 odd bytes from your memory and won't give it back without
a warmboot! A very small price to pay!. Also, if the backdrop screen is
enabled and the RSLClockPlus window is activated, simply double clicking the
right menu button twice will toggle you in and out of the backdrop screen!
In addition to the new features, the older features have been
"polished" up a bit! Although the program is a bit larger than 1.0, I think
that it is worth it. To the best of my knowledge it runs on both 1.1 and
1.2 (beta 4). Please tell me if there are any problems running it under any
of the available versions of KS!
*****************************************************************************
*****************************************************************************
New in Version 1.11:
There is an unfortunate flaw in the ctime() function which came with
my Aztec compiler, which I had to build a "fix" for. Now the date will
not be displayed as "Nov 0" when in fact it is "Oct 31"!
Another problem fixed in Ver 1.11 is due to the fact that the device
driver for the floppy drives think that there are only 488 bytes per block,
instead of 512, which is the way that INFO calculates it! Since everyone
believes INFO, I have adjusted this "anomaly" so that the free bytes of the
disk drive will be the same as displayed using the INFO command!
****************************************************************************
****************************************************************************
New in Version 1.2:
I have found out that there in fact is ONLY 448 bytes per block on the
disk drive! the remaining 24 bytes are used by AmigaDOS as its overhead.
I have decided that in a rebellious mood I will display what space is really
available to you, the user instead of the "Public Relations" space available
indicated via the INFO command. Truth is more important than having my program
agree with INFO's inaccurate value! So back to a 5% discrepancy with INFO's
value!
COLOR, and POSITION commands have been included in this version. I happen
to prefer the default values (of course I do, I wrote them into it as defaults),
but if you people want to customize it you own liking, GO AHEAD! Of course,
the menu allows you to change colors "on the run".
In previous versions only 3 significant digits were displayed for
Kbytes free on peripheral storage devices. This is fine for floppies, but
not for hard disks. In this version hard disks will be displayed with 5
significant numbers (if you have MORE than 99999K Bytes free, you shouldn't
be caring about your available free memory)!
Another small feature added in this version update, is that once the
backdrop is enabled and brought to the front by double clicking the right
menu mouse button, simply hitting any key on the keyboard will bring back
the previously active screen and activate the last window used!
****************************************************************************
I know that there already is an abundance of "clock" programs, but this
is optimized for my own needs. I hope that others find it useful!
I would like to thank Addison-Wesley, without whose ROM Kernal books,
I would still be using my C compiler to compile "Hello there!" type programs.
Please feel free to use this utility and distribute it freely.
Given all the suggestions for additional features, I hope that this
program hasn't grown TOO BIG for a utility. I am presently considering adding
an additional BACKSCRATCH option, using the chinese backscratch feature that
was never a well documented feature in the Amiga A1000 hardware specs, it will
scratch the user's back at a pre-selected interval!
Feel free to comment, suggest, compliment, and disparage, as you wish!
Happy Hacking!
-RSL-
AMuse BBS (212)269-4879: Roy S. Laufer
CIS: 72435,1025
Delpi: RSLaufer