home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS - Coast to Coast
/
simteldosarchivecoasttocoast2.iso
/
sprint
/
bigclo.zip
/
BIGCLOCK.SPM
Wrap
Text File
|
1988-12-11
|
11KB
|
344 lines
; B I G C L O C K
; (c) 1988 Ralph Roberts
; VERSION 1.1, 12/09/88. Improvements to BigClock include putting the time dis-
; play in register QP (a scratch register). Thus, your document is not modifi-
; and then restored as Version 1 did--in fact, it is not touched at all. Should
; you have windows open, they will now be restored exactly also.
; A word about macro space. Sprint 1.0 has a limited amount of space available
; for macros. Putting in long ones like BigClock can eventually fill up it up.
; You can always reset by choosing Reset Shortcuts on the User Interface sub-
; menu of the Customize menu (ALT-C-U-R in the Borland Advance UI). Doing this,
; however, takes out ALL your macros. To make keeping permanent ones easy, you
; need an "executive" macro like my KEYS.SPM described in COMPUTE!'S USING BOR-
; LAND'S SPRINT. Playing with macros like BigClock is worthwhile because of the
; insight into programming techniques they offer, and the fact that you can awe
; and astound your friends. Would you have BELIEVED a word processor could do
; what this macro lets Sprint do?
; BigClock is a BIG and I mean * * * B I G * * * clock. The display is 16 lines
; lines high by 80 columns wide. Seconds appear at the top of the screen & the
; BigClock is updated every minute. Pressing any key (except ESC) will restore
; your file exactly... Sprint is POWERFUL and this is another excellent example
; of that power. Let's see WordStar or WordPerfect do this!!... Please remember
; that for accurate time your computer's DOS clock must be set right using the
; TIME utility built into DOS (many computers now do this automatically for you
; through "on board" clocks.
; If you want to make the display even better, do a global search and change of
; this macro, changing all '#' to ASCII character 219 (a solid block).
; TO INSTALL: To put this macro into Sprint, simply load this file, exactly
; as it is. If there is a ruler at the top, remove it. Then type the ALT-U-M-R
; key combination and this macro will be compiled. Next, use the ALT-U-M-E key
; combination. When it reads, "Enter Macro:" on the status line at the bottom
; of your screen, type in the name "BIGCLOCK" and hit the <ENTER> key. You
; may then either execute your new macro, or assign it to a key or key
; combination for ease-of-use in the future. Enjoy!
; Ralph Roberts, the author of this macro, also wrote the comprehensive book,
; COMPUTE!'S USING BORLAND'S SPRINT. Autographed copies of this 100,000-word+
; book are now available for the retail price of $16.95 (ppd) from the author
; at: P.O. Box 8549, Asheville, North Carolina 28814.
one:
toeol " #### " c
toeol " #### " c
toeol " ###### " c
toeol " ###### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol "############ " c
toeol "############ " c
two:
toeol " ######## " c
toeol " ######## " c
toeol "#### #### " c
toeol "#### #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " ###### " c
toeol " ###### " c
toeol " #### " c
toeol " #### " c
toeol "#### " c
toeol "#### #### " c
toeol "#### #### " c
toeol "############ " c
toeol "############ " c
three:
toeol " ######## " c
toeol " ######## " c
toeol "#### #### " c
toeol "#### #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " ###### " c
toeol " ###### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol "#### #### " c
toeol "#### #### " c
toeol " ######## " c
toeol " ######## " c
four:
toeol " ###### " c
toeol " ###### " c
toeol " ######## " c
toeol " ######## " c
toeol " #### #### " c
toeol " #### #### " c
toeol "#### #### " c
toeol "#### #### " c
toeol "############## " c
toeol "############## " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " ######## " c
toeol " ######## " c
five:
toeol "############ " c
toeol "############ " c
toeol "#### " c
toeol "#### " c
toeol "#### " c
toeol "########## " c
toeol "########## " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol "#### #### " c
toeol "#### #### " c
toeol " ######## " c
toeol " ######## " c
six:
toeol " ###### " c
toeol " ###### " c
toeol " #### " c
toeol " #### " c
toeol "#### " c
toeol "#### " c
toeol "#### " c
toeol "########## " c
toeol "########## " c
toeol "#### #### " c
toeol "#### #### " c
toeol "#### #### " c
toeol "#### #### " c
toeol "#### #### " c
toeol " ######## " c
toeol " ######## " c
seven:
toeol "########### " c
toeol "########### " c
toeol "### #### " c
toeol "### #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
eight:
toeol " ######## " c
toeol " ######## " c
toeol "#### #### " c
toeol "#### #### " c
toeol "#### #### " c
toeol "#### #### " c
toeol "#### #### " c
toeol " ######## " c
toeol " ######## " c
toeol "#### #### " c
toeol "#### #### " c
toeol "#### #### " c
toeol "#### #### " c
toeol "#### #### " c
toeol " ######## " c
toeol " ######## " c
nine:
toeol " ######## " c
toeol " ######## " c
toeol "#### #### " c
toeol "#### #### " c
toeol "#### #### " c
toeol "#### #### " c
toeol "#### #### " c
toeol " ########## " c
toeol " ########## " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " ###### " c
toeol " ###### " c
zero:
toeol " ########## " c
toeol " ########## " c
toeol "#### #### " c
toeol "#### #### " c
toeol "#### #### " c
toeol "#### ###### " c
toeol "#### ###### " c
toeol "#### ######## " c
toeol "#### ######## " c
toeol "######## #### " c
toeol "######## #### " c
toeol "###### #### " c
toeol "###### #### " c
toeol "###### #### " c
toeol " ########## " c
toeol " ########## " c
colon:
toeol "" c
toeol " " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " " c
toeol " " c
toeol " " c
toeol " " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
toeol " #### " c
getnumber:
if current = 48 (down down zero draw)
if current = 49 (down down one draw)
if current = 50 (down down two draw)
if current = 51 (down down three draw)
if current = 52 (down down four draw)
if current = 53 (down down five draw)
if current = 54 (down down six draw)
if current = 55 (down down seven draw)
if current = 56 (down down eight draw)
if current = 57 (down down nine draw)
if current = 58 (down down colon draw)
clearit:
r c r c del del del
down down tosol deletelineend
15 repeat (down tosol deletelineend)
r toend
ticktockticktock:
while !keypressed (
tosol deletelineend
time 2 put "%02d:"
time 1 put "%02d:"
time 0 put "%02d"
draw
r c r c if current = 48
(f c if current = 48
(clearit
bell set
tosol
getnumber f
r toend
tosol c getnumber
r toend
tosol c c getnumber
r toend
tosol c c c getnumber
r toend
tosol c c c c getnumber
r toend
tosol c c c c c getnumber
r toend
1100 wait)) r toend)
bigclock:
set qp ""
1 -> zoom
mark {to qp
int rawsave
int statsave
Statline -> Statsave
raw-> rawsave 0-> raw
mark {r toend
message "\n Press any key EXCEPT <Esc> to end and your screen will"
" be restored)."
dline = 1 dcolumn= 0
19 repeat insert " ^J"
78 repeat (insert "_")
insert "^J"
insert
" ^BB I G C L O C K^N (c) 1988 Ralph Roberts^J^J"
insert
"A demo of Sprint's incredible POWER by Ralph Roberts,^J"
insert
" author of the book: ^BCOMPUTE!'S USING BORLAND'S SPRINT^N.^J"
r toend
tosol time 2 put "%02d:"
time 1 put "%02d"
" ^B * Winding the BigClock * ^N" draw
tosol
getnumber f
r toend
tosol c getnumber
r toend
tosol c c getnumber
r toend
tosol c c c getnumber
r toend
tosol c c c c getnumber
r toend
tosol c c c c c getnumber
r toend
ticktockticktock
key
r toend
24 repeat deleteline
0-> statline
1-> statline
0 -> zoom draw}}