home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
wp4
/
mcroade3.lzh
/
ALTL.DOC
next >
Wrap
Text File
|
1991-06-14
|
11KB
|
233 lines
ALTL.wpm
A Macro Menuing System for WordPerfect 5.1
by
Jeffrey S. Kane, Ph.D.
Performance Sciences International
Summerfield, NC
1. Read the MacroAde.doc and Disclaim.er files distributed with this
macro.
2. Requires:
WordPerfect 5.1
3. Features:
A. Each menu can list the names and descriptions of 40
macros.
B. Names and descriptions listed side-by-side; no additional
strokes to get descriptions.
C. Expanded macro descriptions (64 versus 39 characters)
which are instantly editable.
D. Any macro in a menu can be executed from the menu by
scrolling the highlight bar down to its name and pressing
[ENTER].
E. Any macro in a menu can be deleted from the menu.
F. A new macro name and description can be entered on any of
the menu's 40 lines.
G. Duplicating AltL.wpm under different names, making
corresponding changes to fresh and renamed copies of the
TableX.wpm and Macromnu.X files, and reflecting those
changes in the header portion of the renamed AltL.wpm
copies, allows the creation and use of specialized macro
menus. For example, you might create a menu of all the
macros you use in producing a newsletter, another for
those in preparing annual reports, another for those used
in preparing articles in a particular format required by
a journal, etc.
4. Installation:
A. AltL.wpm requires the following files to be present in
the directory in which your macros reside:
AltL.wpm
Table1.wpm
Macromnu.1
Modtable.exe (users don't use this file
directly but it must be present
for AltL.wpm to work properly)
Be sure to keep copies of the original unused versions of
these files in case you want to set up additional menus
or in the event you have to re-install AltL.
B. The highlight bar in the AltL menu utilizes the color
attributes assigned to the UNDERLINE feature. If you
don't feel that the representation of UNDERLINE is set to
allow highlighted menu items to stand out sufficiently,
change the color attributes assigned to UNDERLINE by
accessing Setup--Display--Colors/Fonts/Attributes--Screen
Colors (Shift-F1 2 1 1) in WordPerfect.
C. Edit the AltL.wpm file in the macro editor (Ctrl-F10
AltL 2). Change the header information according to
the instruction comments at the top of the file.
Specifically,...
1) Change the directory assigned to WPMDir to the
one holding the WordPerfect macro files in
your system if 'D:\WP51\' is not correct.
2) Change the name of the file assigned to
MacroFil if you do not wish to use the name
"Macromnu.1" for this purpose. (Be sure to
change the file's name also in this case.)
3) Change the name of the file assigned to
MacTable if you do not wish to use the name
"Table1.wpm" for this purpose. (Be sure to
change the file's name also in this case.)
4) Change the value assigned to OldSpeed from
"Normal" to one of the other values specified
in the comment if you wish the macro to
restore the keyboard to some cps speed besides
"Normal" at the conclusion of the macro.
5) Do NOT change the values assigned to any other
variables.
D. Enter WordPerfect and retrieve the Macromnu.1 file. At
the top of the document activate Reveal Codes (Alt-F3)
and notice that the font selected is *Courier 10 cpi.
This is a fixed space font within the basic HPLaserJet
Series II font list. It should work okay regardless of
whether you're using this printer or not since this file
is used only for display purposes, and not meant to be
printed out. However, if some problem arises (e.g.,
lines not all the same length, or some lines wrapping to
second line), or if you wish to print the file out,
change the printer selection to one available on your
system and be sure a 12 point (10 cpi) fixed space font
is selected as the base font (Ctrl-F4 4).
E. Upon your initial execution of AltL (accomplished by
merely holding down the ALT key and pressing L, of
course), you see that all the menu entries are specified
as "*Not in Use". You can now add any of your macros by
merely scrolling to the line on which you want the entry
for a macro to appear and pressing the [INSERT] key. You
will then be prompted for the macro's name and
description. Pressing [ENTER] after typing in the
description (you can leave the description blank if you
so wish) sends the system into a brief spasm while the
.wpm are externally altered and you are then returned to
the now revised menu.
5. Operation:
A. Add or modify any macro entries in the menu by repeating
the procedure described in 4D above for the initial
insertion of macro entries.
B. Delete macro entries from the menu by moving the
highlight bar down to the target entry and pressing the
[DELETE] key. You'll be prompted with "Are you
sure...(Y/N)?" and the deletion will then proceed or be
canceled depending on your response.
C. Most Importantly, you can execute a macro by moving the
highlight bar to its menu entry and pressing [ENTER].
The macro will execute at the place in your document from
which you invoked the macro menu unless you have added
the {NEST}MOVECSR~ macro command as the first line of the
macro to be executed. This command invokes the
MOVECSR.wpm macro, also supplied as part of the MacroAde
package, which allows you to move the cursor anywhere in
your document before the macro of primary interest is
executed.
D. You'll note that the movement of the highlight bar via
the up and down cursor keys is rather slow. This was
unavoidable because the WordPerfect program apparently
does not clear the keyboard buffer between keyboard
entries occurring within macros. Consequently, a
keyboard buffer clearing routines written in the macro
language had to be added to prevent the scroll bar from
running out of synchronization with the macro's line
counter. A side effect of the buffer clearing routine is
to slow down the highlight bar section. This can be
partially compensated for by using the PgUp and PgDn
keys, which actually just move you one screen (24 lines)
at a time, but quickly.
E. The program strives, and to the best of my knowledge
succeeds, at returning your system in the same state it
was in when AltL was invoked. It also will return you to
the place in your document at which it was invoked unless
you use MOVECSR.wpm. Note that in some cases, due to the
continuing quirks of WordPerfect, the line to which it
returns, or the following one, may be knocked slightly
out of format. This happens infrequently and the
readjustment of the line is always just a matter of 1 or
2 keystrokes.
6. Setting Up Additional Menus:
You can set up as many different AltL-type menus as you
wish. Each such menu would be invoked by a different name,
preferably by an ALT plus letter combination for ease of
execution. Here is the procedure for setting up each such
additional menu.
A. Decide on the names you want to assign to the main
menuing macro (AltL.wpm) in the new menu to be set up.
Also decide on the numbers to be used in the new names
for Table1.wpm and Macromnu.1 that will be used in the
new menu. I recommend just using the next unused number.
B. Copy fresh copies of the following files from your
archive disk or directory to the new names you have
selected in the directory where your macros reside. BE
ABSOLUTELY CERTAIN TO COPY THE FILES TO THEIR SPECIFIC
NEW NAMES OR ELSE YOU WILL OVERWRITE THE VERSIONS YOU'VE
PREVIOUSLY SET UP.
Copy AltL.wpm D:\WP51\NewAltName.wpm
Copy Table1.wpm D:\WP51\Table#.wpm
Copy Macromnu.1 D:\WP51\Macromnu.#
C. Edit the new Alt?.wpm (formerly AltL.wpm) file in the
macro editor (Ctrl-F10 Alt? 2). Change the header
information according to the instruction comments at the
top of the file.
1) Change the directory assigned to WPMDir to the
one holding the WordPerfect macro files in
your system if "D:\WP51\" is not correct.
2) Change the name of the file assigned MacroFil
to the new file name you've assigned to
Macromnu.1 in Step A, above (i.e., to
Macromnu.?, where ?=the new total number of
menus you'll have).
3) Change the name of the file assigned to
MacTable to the new file name you've assigned
to Table1.wpm in Step A, above (i.e., to
Table?.wpm, where ?=the new total number of
menus you'll have).
4) Change the value assigned to OldSpeed from
"Normal" to one of the other values expressing
the cps level at which you run your keyboard
outside of this menuing system.
D. With these steps accomplished you are now ready to invoke
the new menu and insert the entries you want it to
contain, as described previously in the installation
section.
7. Technical support:
Free technical support will be furnished to any licensed users
who calls on weekdays during the hours from 9:00 a.m. to 5:00 p.m.
(Eastern) at the following number: (919) 643-3492
We may also be reached by mail at:
Performance Sciences International
Suite 1250
3001 Latta Drive
Summerfield, NC 27358