home *** CD-ROM | disk | FTP | other *** search
- KEYSTROKE MACROS
-
- A Keystroke Macro is simply a collection of keystrokes which is saved
- so you may issue one command and repeat the series of strokes again
- and again. In PC-TYPE+, Keystroke Macros can be a powerful tool to
- help you with your editing tasks - they are a tremendous reformatting
- tool.
-
- TO DEFINE A MACRO:
- (1) Press AltY -start- ( Y will blink on Command Line)
- (2) Enter your keystrokes -define-
- (3) Press AltY -end- ( Y will stop blinking )
-
- The Macros you define may be saved as a permanent feature of PC-TYPE+
- if you find some which are particularly useful. You may save up to 10
- Macros in any one Defaults file. There is an eleventh Macro which is
- a temporary Macro - it is the one which is created by the process
- above.
- Press the PgDn Key
-
- After you define the Macro with AltY, you may use it as often as you
- wish until you define a new one or exit the current PC-TYPE+ session.
- At that point you must save the temporary Macro to one of the 10 Macro
- positions or it will be lost when the new Macro is defined.
-
- To make those Macros you save in the 10 Macro positions permanent, you
- must either save an ALL Defaults file, or save ALL the defaults to
- PC-TYPE+. (See the HELP file DFLTS_SV).
-
- Running the Temporary Macro (CtrlY)
-
- After defining the Macro as above, to run the Macro, just press CtrlY.
- That's all. Move the cursor to the asterisk below and press AltY.
- (*)
- Now type PC-TYPE+ and press AltY again. The blinking Y should now
- stop blinking. Now press CtrlY 2 or 3 times. You have now made and
- run a PC-TYPE+ Keystroke Macro. NOTE: Esc WILL CANCEL A MACRO BEING
- DEFINED OR STOP A MACRO WHICH IS RUNNING.
- Press the PgDn Key
-
- MAKING A MACRO WHICH REPEATS
-
- To make a Macro repeat, instead of ending the Macro definition with
- AltY, you end it with CtrlY. This tells PC-TYPE+ that when the MACRO
- is finished, start it over again. Such a MACRO will continue to run
- until you press the Esc key or until a message is written to the
- Message Line, (usually the message "At TOP or BOTTOM of file.").
-
- Follow these instructions carefully. Move the cursor to the asterisk.
- (*)
-
- Press AltY. The warning prevents you from inadvertently wiping out
- the last Macro you defined. If you had saved it, you would not have
- gotten the warning. Press Y. Now type PC-TYPE+ and then press the
- left arrow 8 times until the cursor is on the "P" of "PC". Press
- CtrlY to end the Macro, and then press CtrlY again. This will
- continue to repeat until you press the Esc key. Press Esc.
-
- Press the PgDn Key
-
- The F10 key is a powerful adjunct to Keystroke Macros. F10 will
- execute the instruction on the Command Line (normally a Locate
- instruction for Keystroke Macros) and leave the cursor in the text
- area. ───────── (Follow the arrows in this example) ─────────────────┐
- │
- ┌──Press F10, type "abcd" and then press the "Del" key twice. Now │
- │ press CtrlY to end the Macro definition. Press CtrlY again and │
- │ let the Macro run its course. │
- │ ┌────────────────────────────────────────────────────────────┘
- │ xxxxxx└─ Move the cursor to the Command Line and type the
- │ xxxxxx command: /xxxxxx (Make sure there are 6 x's in your
- │ xxxxxx locate command.) Now move the cursor to the asterisk
- │ xxxxxx and press AltY (and then Y again.)───────────────────────┐
- └────────────────────────────────────────────────────────────────────┘
- As you can see, the Macro stopped itself when the message was issued.
- Most functions, except those requiring keystroke entries may be
- included in your Macros.
-
- Press the PgDn Key
-
- CtrlK and MACROS
-
- It is often useful to be able to interrupt a Macro and key in a few
- characters which may change from application to application. This may
- be accomplished with Ctrl K.
-
- While defining your Macro, when you come to a point where you want to
- interrupt the Macro, press CtrlK. The cursor shape will change to a
- square a the TOP of the current cursor position. You may then key in
- the unique strokes. To return to MACRO execution, press the Enter
- key.
-
- The next time you call this Macro, when it reaches the CtrlK keystoke,
- the cursor shape will again change, and the Macro will wait for your
- new keyboard entry. As soon as you press the Enter key, then the
- Macro will resume operation with those keystrokes you entered after
- pressing Enter the first time.
-
- Press the PgDn Key
-
- CtrlK EXAMPLE
-
- (*)
-
- 1. Move the cursor to the asterisk above.
- 2. Press AltY to begin a new Macro. (Answer Y if the "Current Macro
- will be lost" message appears).
- 3. Type "abc" as the first three keystrokes of the new Macro.
- 4. Press CtrlK. (Notice the cursor has changed shape.)
- 5. While in CtrlK mode, type "123".
- 6. Exit CtrlK mode by pressing Enter. (Notice the cursor shape now.)
- 7. Type "def" as the last three keystrokes in the Macro.
- 8. End the Macro by pressing AltY again.
-
- Now try the Macro by pressing CtrlY. The Macro will type "abc" and
- then wait for your CtrlK entry. Type "XXXXXX" and then press Enter.
- The Macro will now finish with "def".
-
- Press the PgDn Key
-
- A WORD OF CAUTION
-
- For maximum flexibility, when in the CtrlK mode of a Macro which is
- currently running, you are allowed to press the "Esc" key to move back
- and forth between the Command Line and the Text area. In other words,
- pressing "Esc" will not terminate the Macro execution in this case.
-
- If you make such a Macro repetitive, it might be difficult to stop.
- The best way to exit such a Macro is to force a message to be written
- to the Message Line which will cancel the Macro.
-
- This can be easily done by going to the Top of the file and pressing
- the Up arrow (or going to the bottom of the file and pressing the Down
- arrow) - any message will do. Even the message "Are you sure?" which
- is given when you press F4 or Ctrl Break will work. Otherwise, you
- must be quick enough to catch the Macro before the next CtrlK mode is
- entered.
-
- Press the PgDn Key
-
- MAKING YOUR TEMPORARY MACRO ONE OF THE 10 SAVED MACROS
-
- The Y on the Command Line tells you that you have a Temporary Macro
- defined. On the menu for the Miscellaneous functions, (F8), you will
- see that F10 says "Save Macros". Press F8, then F10, AND THEN Esc.
- You saw the resident KEYSTROKE MACROS menu.
-
- To save your Temporary Macro, you would go to this KEYSTROKE MACROS
- menu and then using the TAB key move the Macro Selection Bar to the
- position you want and press F10. At this point you may press Esc if
- you change your mind or type in the mnemonic for your macro that would
- be meaningful to you. Then press the F10 key and your Macro will be
- moved and the "Y" will disappear from the Command Line. Try it.
-
- This Macro has only been moved - it has not been permanently saved.
- You must save your defaults to disk file or make them permanent within
- PC-TYPE+ or you will lose this macro when you exited PC-TYPE+.
-
- Press the PgDn Key
-
- RUNNING ONE OF THE 10 MACROS
-
- If you remember the position in which you saved each MACRO, you could
- hold down the Ctrl key and then press the 1, 2, ... 9 or 0 key at the
- TOP of your keyboard to run the MACRO. If you're like me, you
- probably need a quick reminder.
-
- We provided a few "seed" macros when we sent you your copy of
- PC-TYPE+. Let's try a couple. Move the cursor to the asterisk on the
- line below and then press F8, F9 and F1. (*) This macro was defined
- with the keystrokes
- AltU Ctrl~ AltL AltR
-
- and is an enhancement to the standard Split Line function Ctrl~.
- AltU was pressed first to insure that any previous marked area would
- be cleared before marking a new area. This is an important safeguard
- when using any of the blocked area reformatting commands. Now press
- F8, then F9, and then F2.
- Press the PgDn Key
-
- The Join function was defined with the keystrokes
-
- AltU AltL AltL AltR
-
- You may of course, replace any of these Macros with your own. You may
- also save multiple ALL Defaults files with different sets of Macros in
- each and then call them in as needed for special functions.
-
- MACRO 3 which we provided enhances the CtrlM function which moves a
- marked area of text at the cursor location by first splitting and then
- moving. MACRO three merely adds a CtrlR after the CtrlM so that the
- target paragraph will be reformatted and made more recognizable.
-
- MACRO 4 will reformat all the paragraphs from the current cursor
- position to the end of the file.
-
- Try these Macros and decide if you want to keep them or not.
-
- Press F4 to Return to the HELP Menu
-