home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
371.lha
/
badger_v1.01
/
badger.doc
< prev
next >
Wrap
Text File
|
1990-05-05
|
8KB
|
217 lines
3/28/90
SHAREWARE SHAREWARE SHAREWARE SHAREWARE SHAREWARE SHAREWARE SHAREWARE
Program: Badger
Programmer: George Kerber
Written: 03/15/90 - 03/31/90
Version: 1.01
This program is released as SHAREWARE. This means that all users who
find this program useful and continue to use it are required to mail
the author (me) $15 to pay for the program and to register their copy.
Failure to make the required payment is THEFT. This program may be used
for a period of 15 days (one 15 day trial period per user) without
charge. Any user that continues to use the program past the 15 day trial
period should mail payment to:
George Kerber
19757 E. Linvale Drive
Aurora, CO 80013
(303) 693-2890
As the author, I choose to make this program shareware and require a
payment of $15 for the use of the program. If anyone does not think
the program is worth $15 (which is anyone's choice to make), that
doesn't justify not making payment if you continue to use the program.
If my price is too high, then simply delete the program.
All registered users will receive a copy of the latest version of
'badger' that operates without any SHAREWARE message notices. The
shareware screen was intended to be annoying. Please send your
registration payment, and you will never have to see the screen again.
Any attempt to remove the SHAREWARE notice using some type of sector
editor will make the program inoperative.
SHAREWARE SHAREWARE SHAREWARE SHAREWARE SHAREWARE SHAREWARE SHAREWARE
PURPOSE:
--------
Badger is a 'quick' reminder program. The user can enter important events
via prompts, along with the number of days to pre-notify. Badger will
display any important events that fall within the pre-notify date from the
menu or using the '-s' option. The '-s' option will only display the
important events that are 'due'. This is useful for inclusion in your
startup-sequence.
SYNTAX:
-------
badger
badger -s
badger ?
-s Badger will display only the current due important events and
then exit. If no events are due, there will be no output. Add
this to your startup-sequence.
? A short help screen will be displayed.
With no option (or an invalid option) Badger will display a menu to
add, view or search for current due events.
When choice appear between [] brackets, any choice that is capitalized is
the default and can be selected by simply pressing any key.
MENU OPERATION
---------------
All menu selections can be selected by the choice number or the first
letter of the description.
(s) 1. Search For Important Events.
(a) 2. Add Events.
(v) 3. View Events.
(q) 4. Quit. (default)
1. (s) Any important events that are "due" will be displayed. The user
will have 3 possible choices.
1. Snooze: This is the default and will be selected by pressing any
key not used for the other menu choices. The event will be kept and
the user will be reminded again the next time the program is
executed.
2. Delete: The event will be deleted from the file.
3. Remind Again Next Year: The event will be moved to the next year in
the list. Any dates of 2/29/LEAPYEAR will be moved to 2/28 of the
next year.
If there are no pending events to display, this menu choice will appear
in black text (color 2) and will be inoperative.
2. (a) The user will be prompted for a date. The date must be entered as
m/d/y. Leading zeros can be entered for the month, day and year, but
they are not required. Today or later is all that will be accepted.
Enter the number of days to pre-notify the user about the event. The
default is 10 days. You can enter 0 - 45 days.
Enter a description of the event. This is the message that will be
displayed to the user when the event is displayed.
3. (v) The user will be presented with a sequential display of all events
in the file. Events can be deleted with this choice. This menu choice
will appear black (color 2) if there are no events to view and be
inoperative.
4. (q) If any changes were made to the event list, the user will be
prompted to save or ignore the changes.
All records are stored in 's:badger.data'. If a current file exists, then
it will be renamed to 's:badger.bak' and the new information will be written
to 's:badger.data'. This insures that the previous generation file is
always available in the s: directory.
STARTUP-SEQUENCE
----------------
Add the following line to your startup-sequence after any commands
necessary to set your system clock.
c:badger -s
or whatever directory badger is in.
Each time you boot your Amiga, badger will check for any important events
that are 'due' and display them to the user. If there is nothing to
display, there will be no output. See the RETURN CODE section below. The
display will be identical to the "Search For Important Events" from the
badger menu, except that the user WILL NOT be prompted if any changes should
be saved.
It is also possible to 'run' 'badger -s' so that your startup-sequence will
continue to execute while you are viewing any 'due' events.
c:run >nil: badger -s
INSTALLATION:
-------------
Copy the badger program to the sys:c directory, or any other directory in
your PATH if you do not plan on using badger from the workbench with an
icon.
-- or --
Copy both badger and badger.info to any directory you desire. You will have
to specify this directory when you execute badger from your
startup-sequence.
RETURN CODE
-----------
If an error occurs that terminates the program prematurely, a return code of
10 (ERROR) is passed to the AmigaDOS shell along with a message printed to
the screen informing the user.
When the program is executed using the -s option, a return code of 5 (WARN)
is returned to the AmigaDOS shell if there were important events to
display. No messages or errors are displayed. Adding 'badger -s' to your
startup-sequence will produce no output unless an important event is
displayed. You can trap for a no-event condition by checking the return
code in the script you are executing 'badger -s' from.
....
badger -s
if NOT WARN
echo "No Important Events Today"
endif
....
If you want some type of message displayed if there were no important events
to display, add the above code to your startup-sequence. Otherwise badger
-s will execute quietly unless there is an important event to display. The
user can safely ignore the return code if desired.
FLOPPY DISK USERS
-----------------
This program will work from floppy disks, but may be annoying slow to run
each and every time your system is booted from every disk. I suggest that a
bootable (and writable) disk be created with the program run from the
startup-sequence as described above. Then simply boot from your badger disk
whenever you want to check your event list.
STATUS:
-------
This program is SHAREWARE. If you find this program useful, you are
required to mail the author $15 as payment for the program and to register
your copy. Failure to mail payment is THEFT, no different than stealing a
program from a shelf in a store. I am not responsible for any failure of
this program, or any missed events or any consequences of the missed event.
(I hate responsibility)
George Kerber
19756 E. Linvale Drive
Aurora, Colorado 80013
303-692-2890
Compuserve 74010,2132