                             SAMPLE.TXT                  
                         
     These macro examples are distributed with PC-TALK4.  They can be
found in the PC-TALK4.KEY file on the Master Program Disk and are
stored under <Shift>-1 through <Shift>-5.  In addition, REGISTERED
USERS can Download PC-TALK4.KEY and other support files from the
SPECIAL FILE AREA once they have completed the no cost registration on
the HEADLANDS BBS.

     In this discussion we denote control characters with the ( ^ )
character preceding the character.  For example, control C would be
shown as ^C.  The ( } ) character is the way we embed a Return (Enter
key) into the macro.  On your screen the control characters display as
highlighted characters.

     To use these macros, replace the [xx] in the macro command string
with the correct DD# entry in YOUR Dialing Directory.  For example, in
my dialing directory, MCI is entry # 6.  Therefore, to dial MCI I
would replace the [xx] with 06.  That segment would become:  |106
[Your Acct#] and [Your Password] should be replaced with your actual
account number and password respectively.  Pretty simple.

     These macros were created to help you quickly learn the use of
the macro commands.  They are offered as samples only, but you will no
doubt find them useful and the accompanying text should help provide a
clearer understanding of how PC-TALK4 macros work.  Each macro has
been tested and works properly given the set of circumstances under
which they were tested.  Please keep in mind that you may have to
modify them slightly for the purpose which you intend to use them.

Auto Log-on to:  MCI (Shift F1)
----------------------------------------------------------------
|1[xx]|2T~^C|2:[Your Acct#]}|2:[Your Password]}
----------------------------------------------------------------

Auto Log-on to:  OAG (Shift F2)
----------------------------------------------------------------
|1[xx]|2T}|5}^J}|5}^J}|2@OAG}|2Q[Your Acct#];[Your Password]}
----------------------------------------------------------------

Auto Log-on to:  COMPUSERVE (Shift F3)
----------------------------------------------------------------
|1[xx]|2T~^C|2:[Your Acct#]}|2:[Your Password]}
----------------------------------------------------------------

Auto Log-on to:  HEADLANDS BBS (Standard Log-on) (Shift F4)
----------------------------------------------------------------
|1[xx]|2T~|2?[Your First]}|2?[Your Last]}|2?Y}|2:[Your Password]}
----------------------------------------------------------------

     As you use on-line services such as MCI, CompuServe, The Source
and the many Bulletin Board Systems (BBS) available, you will see how
the macro feature of PC- TALK4 can be extremely useful.

     The following macro is a demonstration of the power of the Macro
Command Set.  To use it, you must first manually sign-on to the
HEADLANDS BBS and REGISTER as a PC-TALK4 user.  There is no charge for
registration and there are many useful features to be found on the
BBS.  The most notable of these is that the BBS is a place to get help
with your general and specific operational questions about PC-TALK4.

                                  1




     The purpose of this macro is to allow you to automatically log-on
to the HEADLANDS BBS, go to the files section of the BBS, download a
file called MACRO.TXT and log-off the BBS.  Once programmed, all this
is done by pressing ONE KEY!

Standard Log-on with Auto Download: HEADLANDS BBS (Shift F5)
----------------------------------------------------------------
|1[xx]|2T~|2?[Your First]}|2?[Your Last]}|2?Y}|2:[Your Password]}
|2?Q}|2?F}|2?D}|2?3}|2?MACRO.TXT}|3R|42}|5~|2?~G}|5~|2?~Y}
----------------------------------------------------------------

Now let's dissect the macro and understand what each segment does.

|1[xx] ................ Dial the number from the Dialing Directory.

|2T~ .................. Wait for the "T" in CONNECT and pause (3 sec.)

|2?[Your First]} ...... Wait for a "?" then send your first name.

|2?[Your Last]} ....... Wait for a "?" then send your last name.

|2?Y} ................. Wait for a "?" then send a "Y" (For YES).

|2:[Your Password]} ... Wait for a ":" then send your password.

|2?Q} ................. Wait for a "?" then send a "Q" (Quit to...).

|2?F} ................. Wait for a "?" then send a "F" (Files menu).

|2?D} ................. Wait for a "?" then send a "D" (Download).

|2?3} ................. Wait for a "?" then send a "3" (Select the
                        XMODEM CRC Protocol).

|2?MACRO.TXT} ......... Wait for a "?" then send "MACRO.TXT" as the
                        filename you are requesting to Download.

|3R|42} ............... Invoke the RECEIVE feature of PC-TALK4 and
                        instruct PC-TALK4 to read the filename stored
                        in Temporary Alt Key <Alt>-2. (Make sure that
                        it's there before you attempt to use the
                        macro.)  In this case it is "MACRO.TXT=c."
                        The =c is the XMODEM CRC transfer option.

|5~ ................... Generate a pause.  This is to accommodate the 
                        time lag in the menu presentation of the BBS.

|2?~G} ................ Wait for a "?" pause again, then send a "G" 
                        to say Good bye to the BBS.

|5~ ................... Generate a pause.  This is to accommodate the 
                        time lag in the BBS.

|2?~Y} ................ Wait for a "?" then send a "Y" to verify that
                        you really do want to log-off.



                                  2




When you examine the macro segments one-at-a-time they are easy to
understand, and as you gain more experience using on-line services,
you should be able to quickly create useful macros.

               WHAT TO WATCH FOR WHEN CREATING A MACRO.

Because PC-TALK4's macros are actually a "mini" programming language,
you need to insure that you are using them correctly.  The following
are some of the areas to focus on:

1)   You must enter correct information.  i.e., the right account #,
     the right password, the right filename etc.

2)   If you are using a "wait-for" macro (Type 2) and the macro
     encounters the specific wait-for character prior to when you 
     had expected it, then it will execute the command segment and
     continue on anyway.  Therefore, make sure that you pick the 
     proper character to wait-for.

3)   If you are attempting an XMODEM receive or transmit and you 
     forget the =c or =x, the macro will come to a halt.

4)   To insure that you don't accidentally wipe out an existing file
     during an XMODEM transfer, PC-TALK4 looks to see if the filename
     is already in your directory.  Therefore, if you are doing an
     XMODEM receive and  you already have a file in your directory
     with the name you have requested to transfer via the macro, it
     will cause a delay in the  macro sequence and possibly a macro
     abort.

5)   The need for a momentary delay (the " ~ " character) varies from
     system to system.  The requirements of the remote system will 
     determine the need for this delay.  If you feel that your macro
     has been entered correctly and yet it doesn't quite work, add a
     delay in the sequence to allow the remote computer a chance to
     catch up.  A good rule of thumb is that you can use a delay when
     testing the macro, and if the delay is not needed, then remove it
     from the macro or reduce the delay time.  However, the delay is
     generally not needed.

                  *** DON'T BE SHY - EXPERIMENT ***

















25-Feb-87                         3
                                                               