home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computerworld 1996 March
/
Computerworld_1996-03_cd.bin
/
idg_cd3
/
utility
/
countd
/
count.ref
< prev
next >
Wrap
Text File
|
1996-02-13
|
4KB
|
109 lines
Countdown for Windows/DOS
version 1.0
(C) 1995 Jeremy Lilley
Reference File
Thank you for getting Countdown for Windows and DOS.
This file is a reference to the codes that can be used
in Countdown files. The README.1st is an overview of Countdown
and this file lists the commands. While you can easily use the
Windows editor, CNTEDIT.EXE, to manipulate Countdown data files,
this will give you a better idea of what the commands mean.
--------
Basic commands
Basically, a command is anything between two percentage
signs (%) and two percentage signs in a row will produce a single
percentage sign on the screen. Comments start with REM and
centering and justification are field commands like anything else.
Fields cannot be imbedded.
Here is a sample file:
% REM This is a sample file %
There are %days as dhms since 6/1 1:00PM% days, %hours%:%minutes%:%seconds%
Which displays in Count.EXE at a certain time:
There are 100 days, 12:53:32
Normal text will be displayed unprocessed, but the fields in
percentage signs are treated different. Empty/blank lines will not
be shown, but you can easily add a space to the beginning for a
blank line to show up.
Countdown does its best to fill in blank data (like the year)
and words like "as" are not needed but make the file clearer. Midnight
is assumed in case no time is specified, and unless there is a PM at
the end, 24-hour time (0:00 is midnight) is assumed. 12:00 is always
noon unless there is an AM.
The first word above shows what specific value is used. Words
like "hours," "weeks," "months," "seconds," etc. all work.
The dhms above specifies what will be extracted from that date
(d is "day," h for "hour," etc.). That way, you don't get (24*100)+12
total hours but the hours filtered after the date.
After you have specified one date and an expression like "dhms,"
you can also filter out hours, minutes, seconds, etc. without typing
in the date again. Just putting "hours" alone in parenthesis above
will work because "dhms" was in the "days" expression.
--------
Using Calculations
Another useful feature is to calculate a value from the text.
As an example, if you knew that on average, that you sold a product
every 90 seconds, the following would work:
% seconds since 1/1 as s / 90 % products sold this year.
Symbols like +, -, *, and / all work. It is usually best to
go to the number of seconds and to multiply a smaller value because
it will be updated more often that way.
--------
Other Commands
Here are some other useful commands:
Formatting:
Center - centers text
Left - left-justifies (default)
Right - right-justifies
Date/time:
Now - Tells Countdown to use the current date and time,
necessary if you do other date calculations and
then want today's day.
Date - displays the formatted date
WDay - displays the day of the week
Time - display the formatted time
AMPM - displays AM or PM for the formatted time
TimeS - displays the formatted time with seconds
TimeM - displays the military (24-hour) time
TimeMS - displays military time with seconds
Day - finds the day of the month
Month - displays the month as text
MonthN - displays the number of the month
Year - displays the year
Title - text in quotation marks becomes the header
DOS oriented:
DOSF - this allows the file when displayed in DOS to
look nicer (does not affect windows)
BK_BLUE, BK_RED, etc., makes a different colored background
FG_WHITE, FG_YELLOW, etc., makes the foreground different