Dec 182017
 
WordPerfect 5.1 macro editor. Translates text-to-macro or macro-to-text.
File MACTRN.ZIP from The Programmer’s Corner in
Category Word Perfect
WordPerfect 5.1 macro editor. Translates text-to-macro or macro-to-text.
File Name File Size Zip Size Zip Type
DISPLAY1.WPM 2007 370 deflated
DISPLAYA.WPM 3967 965 deflated
GETIT.WPM 4060 1193 deflated
HELPER.WPM 3461 970 deflated
MACROED.DOC 18211 7198 deflated
MACROED.EXE 37734 17611 deflated
TYPEME 555 363 deflated
UPDATE 2011 1031 deflated
VERBOSE.WPM 4531 1232 deflated

Download File MACTRN.ZIP Here

Contents of the MACROED.DOC file


WPC
2iBVLWp#|xiJsUdddVd|@{Panasonic KX-P1592/1595PAKXP159.PRSd
@HjUKCFT I. A. 1. a.(1)(a) i) a) 1 a) i) i) i) i) i) i)T2aVW
#|xCourier 10 PitchzNxxx
6x
@Standard PrinterSTANDARD.PRSd
@)2pJPUKCFT I. A. 1. a.(1)(a) i) a) 1 a) i) i) i) i) i) i)TX`hp x (#%'0*,[email protected]:= MACROED [1.3] =
=================

MACROED is a package which gives you a better way to create and edit
Wordperfect Macros.

MACROED is Copyright 1990, SYSINFO. and has been written by Andre
Laurendeau.

YOU MUST REGISTER TO USE THIS PROGRAM FOR MORE THAN 15 DAYS. See the
LICENSE chapter for the conditions of distribution. The registration
fee is $25.00.

THE PROBLEM
===========

You are a user of Wordperfect 5.0 or 5.1. You write Wordperfect
macros, using the Wordperfect Macro Editor. If you are like me, you
really hate that editor. It has a smaller screen than any other editor
on the market (5.1 window size is greater than it's 5.0 counterpart,
but is still too small). It doesn't have any block commands {ALTF4},
or print command {ShiftF7}. You can't search {F2} or replace {ALTF2}
in your macro programs. The only good thing with this editor is that
it insert Special Keys codes and Keywords directly from keyboard.

THE SOLUTION
============

I wrote MACROED to make my life easier. It probably can make yours
easier too. This program convert any Wordperfect Macro program in a
readable ASCII form (Wordperfect call this DOS TEXT) (decompilation),
and convert back a readable ASCII file to a Wordperfect Macro program
file (compilation). It can be executed from the DOS PROMPT, or can be
made RESIDENT and called by a Wordperfect macro.

Working with ASCII files, you can import them in Wordperfect (using
the TEXT IN function on the List files screen, or the {CtrlF5} key)
or edit them with another editor of your choice. After the program is
written, and saved to disk as an ASCII file, you just convert it to
the Wordperfect Macro program format (WPM), and Bingo ! You have a
working Macro.

Working with ASCII files has a great advantage. You can, for example,
create repetitive macros using a program that creates the ASCII file
for you. I used this technique to write the Keyboard Helper macro (See
Keyboard Helper).

%THE ASCII FILES
===============

The syntax of a program in ASCII form is the same as in the Macro
Editor, except some small differences :

1)
If you want to put a left brace ("{") as part of your text,
not a Keyword, you have to enter it twice. ("{{"). MACROED
needs a distinction between a Command or a Special key and a
simple left Brace. The Keywords and Special Keys still use
only one left brace. Example : T$



{CHAR}0~Are you sure ? {{O/N} : ~


`h# ^


`h# ^Note the two left braces

2)
There is a two new commands, {DESCRIPTION} and {VERSION}.
Those commands, if used, must be the two first lines (or the
first line, if you just use one of the commands) of the ASCII
file.T$

,
X
{DESCRIPTION} contains the description of the macro, and will
be put as the description line on the Wordperfect Macro Editor
screen. Note that you don't have to put a description if you
don't want to. The syntax is the same as for any other
command:T$

{DESCRIPTION}Description~

,
X
{VERSION} tells MACROED the version of the Wordperfect Macro
Language your program is written for. Note that if you don't
use that command, MACROED default to version 5.0. Note also
that you can't load a 5.1 macro file in Wordperfect 5.0. The
syntax is:T$



`{VERSION}5.0~ or {VERSION}5.1~


3)
The spaces you type are not replaced by a dot while in the
editor. MACROED will interpret them depending on where they
are. If they are at the beginning of a line, they will be
converted as if the TAB key has been pressed in the
Wordperfect Macro editor. If they are anywhere else in your
text, they will be converted as if you typed the SPACE bar in
the Wordperfect Macro editor (as 'dot spaces'). Note that you
can still use the TAB key to indent your programs. Note also
that spaces at the end of lines, before the [HRT] code, if you
are using Wordperfect as your editor, will also be converted
as 'dot space'. T$

',
X
The only drawback of that method is that if you want to put
spaces at the beginning of a line, or at the end of a line in
an editor which deletes them, you have to put something before
or after those spaces. To help you doing this, the programs
interprets the '{}' string as a null string (nothing), so you
can use that sequence to do the work. Example:T$



{} There is 5 space chars before, and 2 after. {}T$


4)
As you can edit the ASCII file in any editor, if you don't use
Wordperfect to edit your files, there is no automatic
insertion of keywords and special keys. You have to type
everything yourself, as :T$

{PAUSE} {Left} {Macro Commands} etc. D47X7
,
X
Note that nor the case (lower or upper), nor the spaces in the
Keywords or Special keys is important, but no typing error is
permitted. Examples:T$



`VALID : {ENDIF} {END IF} { EnDIf}



`INVALID : {ENXIF} {enddif}

,
X
If the editor you use is Wordperfect, you will be able to
enter all the Keywords or Special Keys codes directly from the
keyboard, without having to type them. To do that, you will
have to use the macro KEYBOARD HELPER, included in this
package.T$


THE CONVERSION PROGRAM
======================

The conversion program, MACROED, is a menu driven program.

When you execute MACROED, it ask you what kind of conversion you want
to do (TEXT to MACRO or viceversa), and then, the SKELETON of the
file(s) you want to work with.

SKELETON is the fully qualified path of your program file, without any
extension (SKELETON is valid, but not SKELETON.WPM). The extension for
the file is automatically selected depending on the conversion used.
The Wordperfect Macro Program files must have a "WPM" extension, and
the ASCII files must have a "TXT" extension.

Note that you can use stars and question mark (*?) in your skeleton
name to work on a group of files, and you can use a different drive
and/or path (Like in C:\TEST\BIGMAC)
'During the conversion, MACROED will show you its progress. After the
conversion, the new file will be created on your disk (If you asked
for MACRO to TEXT conversion, a new file, with the same name than your
MACRO file, but with the TXT extension, will be created). If there is
an error in the conversion progress, MACROED will tell you and stop
execution.

RESIDENT MODE
=============

To put MACROED in resident mode, just type, from the dos prompt, in
the directory where the Worperfect program (WP.EXE) is :



MACROED /RES

MACROED will load itself, and then, start WordPerfect for you.

From that point, you can call MACROED by calling the macro function
{BELL} two times in a row. Let's say you want to use the ALTM Special
Key to start MACROED from Wordperfect. You just have to create a
macro, ALTM, and put one of those lines in it :


{BELL}{BELL}{Screen}0 WordPerfect 5.0


{BELL}{BELL}{Screen}3 WordPerfect 5.1


The {BELL}{BELL} functions wake up MACROED. The {Screen}? (? being 0
or 3, depending on your Wordperfect version) redraw the Wordperfect
screen after MACROED is done. The only reason why MACROED doesn't
redraw the screen by itself is that it would take more space in memory
to save the screen (4K more, in fact). For now, MACROED, while in
resident mode, takes around 85K of memory.

When you'll quit Wordperfect, MACROED will unload itself at the same
time.

IMPORTANT NOTE
==============

Wordperfect maintains an internal buffer with all the macros it has
already loaded, so that it doesn't have to read the disk to reexecute
a macro already loaded. This can cause a problem with MACROED. If you
stay in Wordperfect when you create the new macro with MACROED (By
using the CtrlF1 command, or using MACROED in memoryresident mode),
the Wordperfect's internal buffer isn't changed, so, if you execute
that macro, the old version will still be in memory and executed.
There is no simple way to overcome that problem. The only solution I
know is to enter the new macro in Wordperfect's macro editor, using
CtlrF10, edit, and resave it without modifications.

'THE KEYBOARD HELPER
===================

You will find some WPM files with the programs. Those are all part of
a unique program, HELPER.WPM.

To use the Keyboard Helper, you have to create a directory named
\MACROED, on your root directory, and put the .WPM files in it. You
can also put the HELPER package in any directory you like. To do that,
just modify the HELPER.WPM program to assign the name of your
directory to the variable 9 instead of '\MACROED\'. (First line of
HELPER.WPM)

Then, you create a simple macro in your Wordperfect, choosing the Alt
sequence you want to activate the Keyboard Helper. Let's say you want
the ALTH key. You put in this macro file the commands :

{CHAIN}\MACROED\HELPER~

where \MACROED\ can be changed to your own directory. That's all for
the installation. Now, when you press the ALTH macro Key (Or any
other macro key combination you choose), this menu will appear:

==================================================================
MACROED [1.3] Copyright 1990 SYSINFO
==================================================================
{;} {GO} *{Para Up} 0 {ALT?}
{ASSIGN} {IF EXISTS} *{Para Down} 1 {VAR?}
{BELL} {IF} {PAUSE} 2 {Right}
*{Block Append} *{INPUT} *{PAUSE KEY} 3 {Left}
*{Block Copy} *{Item Down} {PROMPT} 4 {Up}
*{Block Move} *{Item Left} {QUIT} 5 {Down}
{BREAK} *{Item Right} {RESTART} 6 {Cancel}
{CALL} *{Item Up} {RETURN} 7 {Enter}
{CANCEL OFF} *{KTON} {RETURN CANCEL} = VERBOSE
{CANCEL ON} {LABEL} {RETURN ERROR}
{CASE} *{LEN} {RETURN NOT FND}
{CASE CALL} {LOOK} *{SHELL MACRO}
{CHAIN} *{MENU OFF} {SPEED}
{CHAR} *{MENU ON} {STATE}
{DISPLAY OFF} *{MID} *{STATUS PROMPT}
{DISPLAY ON} {NEST} {STEP OFF}
{ELSE} *{NEXT} {STEP ON}
*{END FOR} *{NTOK} *{SYSTEM}
{END IF} {ON CANCEL} {TEXT}
*{END WHILE} {ON ERROR} *{VARIABLE}
*{FOR} {ON NOT FOUND} {WAIT}
*{FOR EACH} {ORIGINAL KEY} *{WHILE}
==================================================================
KEYWORDS: Arrows/First letter and Enter, SPEC.KEYS: The key
==================================================================

( INSERTING KEYWORDS

To insert Keywords in your program, you position the cursor, using the
arrow keys on the Keyword you want. You can also "jump" to the first
Keyword beginning with a letter by pressing that letter. You accept
your choice by pressing the Enter key.

For Specials Keys displayed on the menu and VERBOSE mode, you can also
execute them directly, without having to press then Enter key. Just
type the number or equal sign besides the special key you want.

Note that some keywords have a star "*" before them. Those are
keywords found in the Wordperfect [5.1] Macro Language ONLY. If you
use the {VERSION} command to make a file for 5.0, or don't use the
{VERSION} command at all, those keywords will be flagged as an error.
You must be in {VERSION}5.1~ mode to use those Keywords.

SPECIAL KEYS

On the menu, you can select some special keys. Those are the keys used
to move on the menu.

You can also enter any other Special Key just by pressing it. Example,
if you are on the menu and you press the {F3} key ({Help} key), the
Keyword {Help} will be inserted in your text.

Note that the {ALT A} to {ALT Z} special keys must be entered using
the {ALT ?} choice on the MENU. Same thing for the {VAR ?} option.

Note also that you can type the special key you want or the number or
equal sign BEFORE the menu is completely displayed. That enable you to
work a little bit faster (at least on a slow 4.77Mz PC).

VERBOSE MODE

You choose that mode by pressing the equal sign (=) key. From that
point, and until you press the {Cancel} key, every special keys you
type will be inserted directly in your text. VERBOSE MODE is almost
like typing {CtrlF10} in the Wordperfect Macro Editor.

QUITTING THE HELPER

If you called the KEYBOARD HELPER by mistake, you can get out of it by
typing the {Cancel} key.


#WARNING
=======

Using the MACROED package, it is possible to create a macro that won't
fit in Wordperfect Macro memory. That macro won't run. It is also
possible to create a macro that will run, but that you won't be able
to edit using the Wordperfect Macro editor. I STRONGLY SUGGEST that
you keep the macro size suitable for the Wordperfect Macro editor.
Creating bigger macros can cause unpredictable results.


LICENSE
=======

The present version of MACROED is distributed under the "ShareWare"
concept. It is neither Public Domain nor FreeWare.

MACROED is copyright (C) 1990 by SYSINFO, owned by Andre Laurendeau.

Non-registered users are granted a limited license to use the present
version of MACROED on a 15 day trial basis for the purpose of
determining whether it is useful to them. Use of MACROED besides on
this trial basis, requires registration. Use of non-registered copies
of MACROED by any person, business, corporation, government agency, or
any other institution is strictly prohibited.

Registration permits a user the license to use MACROED on a single
computer; a registered user may use the program on a different
computer, only if the program is not run on more than one computer at
the same time.No registered or non-registered user may modify any
version of MACROED in any way, including decompiling or reverse
engineering of the programs.

All users are granted a limited license to make copies of MACROED only
for the trial basis of others and subject to the following conditions:

,
MACROED must be copied in unmodified form, including the file which
contains this license information.T$

,
The user may not collect or request any fee, charge or other
compensation for the copy provided.T$

,
MACROED may not be distributed in conjunction with any other
product without the express written consent of SYSINFO.T$

,
Operators of electronic bulletin board systems may post MACROED
downloading by their users only as long as the above conditions are
followed.T$

,
Distributors of public domain or user supported software may
distribute copies of MACROED subject to the above conditions and
after obtaining written permission from SYSINFO. Permission is
usually given; write for details.T$
h)
WARRANTY
========

SYSINFO makes no warranty of any kind, expressed or otherwise any
warranties of merchantability and/or fitness for a particular purpose.
SYSINFO shall not be liable for any damages, whether direct, or
indirect arising from the failure of MACROED to operate in the manner
desired by a user. SYSINFO shall not be liable for any damage to data
or property which may be caused directly or indirectly from the use or
misuse of the MACROED program.

IN NO EVENT WILL SYSINFO BE LIABLE TO ANY USER FOR DAMAGES, INCLUDING
LOST PROFITS, LOST SAVINGS, OR OTHER INCIDENTAL OR CONSEQUENTIAL
DAMAGES ARISING OUT OF THE USE, MISUSE, OR INABILITY TO USE ANY
VERSION OF HELP, OR FOR ANY CLAIM BY ANY OTHER PARTY.

In the event of permanent failure of a registered user's version of
MACROED, SYSINFO will replace the version at a cost not to exceed the
cost of a floppy disk and the shipping and handling associated with
the mailing of the disk to the registered user.


ORDERING INFORMATION
====================

A MACROED registration license allows the use of the product on a
regular basis. Registration includes notification of updates.

Individual registrations cost $25.

All corporate, business, government or other commercial users of
MACROED must be registered. An individual registration of MACROED for
a corporation or business does not grant the business the right to
make unlimited copies of MACROED for their employees. A registered
copy of MACROED is required for each user of the program.

SYSINFO does sell this product at a discount for quantity orders and
will engage in site licensing. Please send a written request for
information about quantity ordering, and include in the request the
number of copies which you are interested in purchasing.

Send all requests for registration and information to

SYSINFO
C/O Andre Laurendeau
1030 Beaubien east
Montreal, Qc
Canada
H2S 1T4
CIS : [71510,632]


 December 18, 2017  Add comments

Leave a Reply