home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
wp
/
pcw303b.zip
/
ED.MAC
< prev
next >
Wrap
Text File
|
1988-11-30
|
7KB
|
169 lines
(KEYBOARD MACRO FILE
(The following key reassignments are examples of how you can customize the
(edit control file. This file is not intended to be used as a whole. See
(Customizing the Edit Control File: Redefining Keys. in the PC-Write User's
(Guide for general information. Be sure to use only one 400: line in an edit
(control file.
(TO COPY A MACRO BELOW TO THE EDIT CONTROL FILE:
(Place the cursor on the start of the macro, Ctl F6, move the cursor down
(past end of the macro you wish to copy, then Ctl F6. You will be prompted
(with: Copy marked text to file "mark.doc". Respond with ED.DEF, or the name
(of the edit control file you in which you want to place the macro.
(F5 clears marking.
(INITIAL EDIT MODES
(Make PC-Write start Overwrite mode (Scroll Lock)
400:258
(Make PC-Write start hide mode (Alt Space)
400:399
(Make PC-Write start Para+ mode (Shf F7)
400:346
(Turns on automatic spell checking (Alt F2, F7)
400:361,321
(TAB KEYS
(Make the Tab key (270) inserts blanks to the next tab stop in Pushright
(mode and advances cursor to the next tab stop in Overwrite mode (420).
270:420
(Make the Back Tab key (271) delete spaces to the left of the previous tab
(in Pushright, and simply cursors back to the last tab in Overwrite mode (421).
271:421
(Make Tab insert spaces in both Pushright and Overwrite.
270:727
(Make Back Tab delete spaces to the last tab in both modes.
271:728
(ENTER KEYS
(Makes the Enter key (264) insert an end paragraph font character (Alt K)
(then do an Enter. Useful if you need a hard end of paragraph.
264:20,264
(Makes the Enter key just drop to the start of the next line in
(Overwrite mode and still insert a line in Pushright mode.
264:422
(Makes the enter key in the middle of a line move the cursor
(to the left margin, not to paragraph indent (open paragraph).
264:452
(Makes the enter key stay on the same line at the end, inserting
(a line boundary after it (like Wordstar Ctl N).
264:453
(MOVING AROUND THE SCREEN
(If you are among the 30% of people who find the Page Up and Page Down keys
(opposite of what is natural for you, here are the redefinitions you need.
(The first redefines the Page Up key to perform Page Down. The second
(redefines Page down to Page Up. The last two swap Shf PgUp and Shf PgDn.
329:337
337:329
297:312
312:297
(Make left arrow at line start go to end of prior line.
331:711
(Make right arrow at end of line go to next line start.
333:712
(Make Shf Left Arrow scroll horizontally one character left.
308:713
(Make Shf Right Arrow scroll horizontally one character right.
299:714
(Make Shf Left Arrow scroll horizontally one screen left.
308:715
(Make Shf Right Arrow scroll horizontally one screen right.
299:716
(CUSTOMIZING THE SCREEN CLIP COMMANDS
(Make Shf Ctl F2 instead of Shf Ctl F6 start a Screen Clip.
615:351
(Make Shf F6 instead of Shf Ctl F5 clear the Hold during Screen Clip.
616:345
(These redefinitions are different than other key redefinitions.
(It is backward from usual. 615 or 616 comes before the key code.
(FILE NAME MODIFIERS
(Assigns a prefix to all file names. With this example, whenever you
(type BANK.LET as the filename PC-Write edits B:BANK.&LE.
427:"B:"
(Assigns a prefix to the backup file name only. With this example, when you
(request a backup file, PC-Write uses the backup file name C:\BAK\BANK.LET.
428:"C:\BAK\"
(Assigns a file name suffix for edited files. This may be a file extension,
(or a command line parameter such as the /e or /r options.
429:"/e"
(INSERTING TEXT, DATE AND TIME, OR FILE NAME
(Make Ctl D produce date in the format March 20, 1986.
D:566,'$$Month D, YEAR$$'
(Make Ctl S produce date in the format 03/20/86.
S:566,'$$MO/DA/YE$$'
(Make Ctl T produce CHAPTER1 05:56 (filename and time)
T:566,'$$FILENAME HO:MI$$'
(TWO-KEY SEQUENCES
(In this example, Ctl-Q then A enters the word Abyssinian,
(Ctl-Q B enters the word Balinese, and Ctl-Q C enters Calico.
Q:555,"Cats";
556,65,"Abyssinian";
556,66,"Balinese";
556,67,"Calico"
(CUSTOMIZING ACCENT KEY PAIRS
(Creates a custom accent key pair. In this example, 1, accent, 2
(entered at the keyboard produces the character 3.
567:'1','2','3',47,92,60
(REFORMAT ALL PARAGRAPHS WITHOUT HARD LINE BOUNDS FOR TYPESETTERS
(Make Ctl-\ do operation 300, then reformat all paragraphs
(Operation 300 toggles an "infinite" temporary right margin.
28:300,354,321,319
(OPEN A WINDOW IN LOWER HALF OF SCREEN and prompt for a second file name.
(Ctl-F does Shf Up Arrow to top of screen, arrow down eleven lines, F2,
(arrow down one, F1, F6.
F:296,336,336,336,336,336,336,336,336,336,336,336,316,336,315,320
(OPEN BLANK SPACE FOR AND INSERTION AND CLOSE IT AGAIN USING BOOKMARKS
(Place cursor where you want the space to open. Ctl-O places bookmark,
("presses" enter six times, places second bookmark, returns to first
(bookmark, goes into overwrite mode. Ctl-C closes the space by marking
(space from cursor to the second bookmark and deleting it, returns to
(pushright mode. Use this with the Enter key redefined 264:422.
O:375,264,264,264,264,264,264,438,373,258
C:318,436,318,258
(CHECK FOR MATCHING PARENTHESES
(Ctl M adds parentheses and a message to the file, searches for matching
(pairs using Alt F4, F4, and pauses so you can observe whether the marking
(extends to include the message. If not, the pairs are not matched. The
(macro cleans up, removing all it added.
M:309,"(",298,375," IF MARKING MAKES IT HERE, PARENTHESES MATCH)",309;
363,318,424,424,424,424,319,309,339,373,318,298,318,319
(POWER MARKING COMMANDS
(This macro block gives you some powerful text moves with a two-key sequence,
(Ctl M followed by a letter. Codes 555 "User mode name" and 556 "User mode
(sequence" are used to define a two-key sequence. See also ops 409 and 410,
(which mark (or extend marking) for a word or line, respectively.
M:555,"MarkMv";
556,119,319,333,371,320,372,320,371; (Ctl MW Mark word
556,108,319,438,333,299,320,336,320,436; (Ctl ML Mark line
556,115,319,435,372,434,320,434,323,319,264;
334,331,371,372,320,418; (Ctl MS Mark sentence
556,112,319,438,333,388,299,320,374,299,320,436;(Ctl MP Mark paragraph
556,102,319,333,371,320,372,320,372,320,371,319;(Ctl MF Transpose word forward
556,097,319,333,371,320,372,320,371,371,320; (Ctl MA Transpose word backwd
371,319;
556,121,298,264,264,392,436,319 (Ctl MY Move block