File Archive

 
Output of file : MALTLIB.51 contained in archive : MALT22.ZIP

ÿWPCNûÿ(8Sample library macro
üThis is the sample library macro included with MALT 2. This macro should be located in the same directory as your other macros. In general, the labels correspond to the names of MALTLIB-keys. Thus, for example, pressing ScrollLock-C will cause the macro at {LABEL}C (Center justify) to execute. Similarly, pressing ScrollLock-F6, will cause the macro at {LABEL}F6 (Bold /Underline) to execute. The routines associated with the cursor keys have two labels, e.g. {LABEL}RT and {LABEL}XRT. This is for purposes of demonstration, to show how the numeric key pad and cursor pad keys can be mapped to the same routine.

This sample may be used as a template to create your own library macro.

This macro was created with MPE4WP.
Copyright 1992, Michael H. Shacter~

üOptional instructions to handle errors and
the cancel key~

üüerror~~
üüend~~

üA MALTLIB macro *must* begin with a {TEXT} command;
the "Enter a command..." message is optional~

(üKeyName~Enter a command and press enter: ~


ü

üThe {TEXT} command *must* be followed by a {CALL}
or {GO} command. Intervening commands that apply to all
macros in the library (such as {DISPLAY ON}) are OK.~

ü4üKeyName~~


üC~ üLabels correspond to MALT-key names~
3€ljc&€


üD~
0€du


üH~
3€phap


üI~
K€ai


üK~ üChange case derived from PC Magazine
Working Word communication~
üü1~8ü5üright~~~
üÿ>96&ÿ<123~
;€€.€u
üüÿ>64&ÿ<91~
;€€.€l
üü


üL~
3€lm


üM~ üMemorandum macro~
üTurn off reveal codes, if on~
üScreenSave~
ü
üSave default underline settings~
3€ou&€&€&€€
üDon't underline spaces~
1€3€ounn&€
%€'€M E M O R A N D U MU€
€
€
€
üSave default tab settings~
üS~&€&€€
üNew tabs~
üS~ €0.9
€r1.1
€&€&€

€%€TO:€ €
2üPlease type recipient's name, then press F7~
;ü&€~
ü
€
€ €%€FROM:€ €
üSubstitute your name on the next line~
[Your name here]

€
€
üEnter date as text~
€%€DATE:€ €0€T
€
€
€%€SUBJECT:€ €
2üPlease type subject, then press F7~
;ü&€~
2ü~
üDraw line~
ü
€
€@€LH&€
€
€
üPlace recipient's name in variable for header~
€€€!€TO:!€S€
;€U€,üaRecipient
€
üCreate header~
€€€3€phapMemorandum to 4üRecipient~
€0€c
€Page €
€&€ua&€
üMove cursor to end~
€€€
üRestore reveal codes, if necessary~
üScreenRestore~
"ü üEnd of memorandum macro~

üR~



üS~
3€lt


üT~
3€pm


üV~
2€v


üZ~
3€ps


üF6~
%€'€


ü1~
0€p1
€


ü2~
0€p2
€


ü3~
0€p3
€


ü4~
0€p4
€


üCR~
3€opl


üRT~
üXRT~
3€oar


üLE~
üXLE~
3€oal


üUP~
üXUP~
3€oau


üDO~
üXDO~
3€oad


üScreenSave checks to see if Reveal Codes is active,
and if so turns it off (this routine and ScreenRestore
are taken from the WordPerfect manual)~

üScreenSave~
üRevealCodes~~
ü)ü&512~

üRevealCodes~1~



üScreenRestore restores Reveal Codes if it was
turned off by ScreenSave~

üScreenRestore~
ü4üRevealCodes~~




üerror~

€€€
€3€ €
€€  MALTLIB-4üKeyName~ is unassigned
€€! €
~
*ü20~

üend~
2ü~
ü
ü
ü