home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR10 / ACE170.ZIP / MACRO.DOC < prev    next >
Text File  |  1993-09-05  |  41KB  |  1,489 lines

  1.  
  2.          
  3.          
  4.          
  5.          
  6.          
  7.          
  8.          
  9.          
  10.          
  11.          
  12.          
  13.          
  14.          
  15.          
  16.          
  17.          
  18.          
  19.          
  20.          
  21.          
  22.          
  23.          
  24.                              AceComm & Utilities (Tm)
  25.          
  26.                                   Version  1.7
  27.          
  28.             "Leading Software Technology"  for todays hi-speed modem
  29.          
  30.                             Evaluation copy 09/05/93
  31.          
  32.                                     AceComm
  33.          
  34.          
  35.          
  36.          
  37.          
  38.          
  39.          
  40.          
  41.          
  42.          
  43.          
  44.          
  45.          
  46.          
  47.          
  48.          
  49.          
  50.          
  51.          
  52.          
  53.          
  54.          
  55.          
  56.          
  57.          
  58.          
  59.          
  60.          
  61.          
  62.          
  63.          
  64.          
  65.                            AceComm & Utilities User Manual
  66.                                    Version 1.7
  67.                   Copyright (c) 1990 - 1993 all rights reserved
  68.                                        by
  69.                    MGP Programming Services & Michael G Phelps
  70.          
  71.          
  72.          
  73.          
  74.          
  75.          
  76.          
  77.          
  78.          
  79.          
  80.          
  81.          
  82.          
  83.          
  84.          
  85.          
  86.          
  87.          
  88.          
  89.          
  90.          
  91.          
  92.                                                  ┌─────────┐
  93.                                            ┌─────┴───┐     │          (R)
  94.                                          ──│         │o    │──────────────
  95.          AceComm Support Services          │   ┌─────┴╨──┐ │Association of
  96.          Michael G Phelps                  │   │         │─┘  Shareware
  97.          3003 N. Central Ave Suite 121-171 └───│    o    │  Professionals
  98.          Phoenix, AZ  85012  USA         ──────│    ║    │────────────────
  99.                                                └────╨────┘    MEMBER
  100.          Telephone   (602) 846-4563 (12 - 7pm MST 6 days)
  101.          AceComm BBS (602) 846-2940
  102.          CompuServe  75120,3306
  103.          
  104.          
  105.          
  106.          
  107.          
  108.          
  109.          
  110.          
  111.          
  112.          
  113.          
  114.                                       CONTENTS
  115.          -----------------------------------------------------------------
  116.          
  117.          Chapter 1  AceComm  MACRO Programming Language.................1
  118.          Chapter 2  MACROS..............................................3
  119.                        Local User Input (LUI) Functions.................3
  120.                        Character I/O Functions..........................7
  121.                        File Functions..................................10
  122.                        Data Transfer functions.........................12
  123.                        Modem Functions.................................15
  124.                        FON Record / Dialing............................16
  125.                        Misc Functions..................................18
  126.          Chapter 3  MACRO Parameter Functions..........................20
  127.                        Expandable MACRO Parameters.....................20
  128.                        Expandable MACRO Functions......................24
  129.          
  130.          
  131.          
  132.          
  133.          
  134.          
  135.          
  136.          
  137.          
  138.          
  139.          
  140.          
  141.          
  142.          
  143.          
  144.          
  145.          
  146.          
  147.          
  148.          
  149.          
  150.          
  151.          
  152.          
  153.          
  154.          
  155.          
  156.          
  157.          
  158.          
  159.          
  160.          
  161.          
  162.          
  163.          
  164.          
  165.          
  166.          
  167.          
  168.          Chapter 1  AceComm  MACRO Programming Language
  169.          
  170.          
  171.          Please submit all MACRO suggestions to
  172.          
  173.          a)  MSG to Michael Phelps on the AceComm Support BBS
  174.          b)  MSG to Michael Phelps on Compuserve UID 75120,3306
  175.          
  176.          Reference to characters such as carriage return,  space,  escape,
  177.          etc.   are  made  in  this document.  Reference to a character is
  178.          made in the following manner.  <CR> <SP> where <CR> refers  to  a
  179.          carriage  return,  and  <SP> refers to a space character.  MACROS
  180.          are bounded by the  same  <>  brackets  as  character  reference.
  181.          Character  references  are  not MACROS.  A complete MACRO listing
  182.          follows this chapter.
  183.          
  184.          -- MACROS --
  185.          o   MACROS are directives bounded inside of angle brackets < >
  186.          o   MACROS must have a SPACE character in front of them when not
  187.              the first command on a line.
  188.          
  189.           <ChgDir>[DIR_MAIL] <RunProgram>BWAVE <ChgDir>[DIR_START]
  190.                             |                 |
  191.                             |_________________|
  192.                             |
  193.                             Leading space
  194.          
  195.          o   MACROS may be any combination of CaSe
  196.          
  197.           <RunProgram> jmodem
  198.           <runprogram> jmodem
  199.          
  200.          o   The MACRO PROCESSOR supports MACRO STACKING
  201.          o   MACRO STACKING means multiple MACROS per line
  202.          
  203.           <SendStr>u z ACE0601.ARJ^M <SendZmo>files\ace0601.arj
  204.           <SendStr>u z ACE0601.ARJ^M <RunProgram>DSZ sz -m files\ace0601.arj
  205.           <SetDTR> ON <SendStr>ATDT846-2940^M <WaitStr>CONNECT <SendStr>^[^[
  206.          
  207.          
  208.          o   MACRO DATA PARAMETERS are bounded inside of square
  209.              brackets [ ]
  210.          o   MACRO DATA PARAMETERS need not have a <SP> character in front
  211.              of them
  212.          o   MACRO DATA PARAMETERS must be upper CASE
  213.          
  214.           <SendStr>[USER_NAME]^MY^M[FON_REC_PWD]
  215.                    |
  216.                    |
  217.                    DATA PARAM (IEMSI data)
  218.          
  219.          
  220.          
  221.                 Page 1              AceComm & Utilities (Tm)
  222.          
  223.          
  224.          Chapter 1  AceComm  MACRO Programming Language
  225.          
  226.          
  227.           <SendStr>[USER_NAME]^M~~~~[PASSWORD]^M
  228.           |        |         |   |
  229.           |        |         |   One second delay (~ = 1/4 second delay)
  230.           MACRO    |         |
  231.                    |         Control character representation for <CR>
  232.                    |
  233.                    MACRO DATA PARAMETER (IEMSI data)
  234.          
  235.          
  236.          o   MACRO FUNCTION PARAMETERS are prefixed with a % character
  237.          
  238.           <SendZmo> %PF
  239.            |        |
  240.            |        MACRO FUNCTION PARAMETER (prompt for filename)
  241.            |
  242.            Internal Zmodem sending unit
  243.          
  244.           <RunProgram>dsz port %P speed %B sz %PF %WK <SendStr>^M
  245.                                |        |     |   |
  246.                                |        |     |   |
  247.                                |        |     |   MACRO FUNCTION PARAM
  248.                                |        |     |   (wait for key press)
  249.                                |        |     |
  250.                                |        |     MACRO FUNCTION PARAM
  251.                                |        |     (prompt for filename)
  252.                                |        |
  253.                                |        MACRO FUNCTION PARAM
  254.                                |        (insert ascii baud)
  255.                                |
  256.                                MACRO FUNCTION PARAM
  257.                                (insert ascii port)
  258.          
  259.          
  260.          
  261.          
  262.          
  263.          
  264.          
  265.          
  266.          
  267.          
  268.          
  269.          
  270.          
  271.          
  272.          
  273.          
  274.          
  275.          
  276.          
  277.                 Page 2              AceComm & Utilities (Tm)
  278.          
  279.          
  280.          Chapter 2  MACROS
  281.          
  282.                     Local User Input (LUI) Functions
  283.          
  284.          
  285.          
  286.          LUI MACROS require local keyboard input, and so  are  not  suited
  287.          to un-attended scripts.
  288.          LUI MACROS contain a '_' underscore as the last character
  289.          inside the brackets.
  290.          
  291.          
  292.          <AutoScrGen_>
  293.          
  294.             Toggle AutoScrGen(tm) mode
  295.          
  296.             Toggle  AutoScript  Generation  mode  On/Off.   When  "On"  an
  297.             extended status line will appear at the bottom of the TERMINAL
  298.             screen.   At  the far left of the extended status line will be
  299.             the phrase "AutoScriptGen"
  300.          
  301.          
  302.          <BackBuffer_>
  303.          
  304.             Menu Area
  305.             Enter Back Buffer Screen Area
  306.          
  307.             BackBuffer contains the last n lines of display that  scrolled
  308.             off the TERMINAL screen.  BackBuffer has a status line of it's
  309.             own.   The  status  line  contains such information as current
  310.             line position into the buffer, total lines buffered, and  some
  311.             of the navigational keys are displayed.  Hold the ALT key down
  312.             for the POP UP REFERENCE available for the BackBuffer area.
  313.          
  314.          
  315.          <CaptureFile_>
  316.          
  317.             Toggle Capture File
  318.             Prompts for filename
  319.          
  320.             Capture  will  also  prompt  for append or overwrite.  Capture
  321.             does absolutely  NO  filtering  of  any  kind.   All  data  is
  322.             recorded  to  file  "as  it  comes  in the port".  The AceComm
  323.             package comes with separate utilities which  can  strip  video
  324.             control codes from files.
  325.             See also <OpenCapture> filename, <CloseCapture>
  326.          
  327.          <CommandShell_>
  328.          
  329.             Enter Shell to Command Processor/ Operating System
  330.          
  331.          
  332.          
  333.                 Page 3              AceComm & Utilities (Tm)
  334.          
  335.          
  336.          Chapter 2  MACROS
  337.          
  338.                     Local User Input (LUI) Functions (continued)
  339.          
  340.          
  341.             In  most cases "Drop to DOS", if your DOS compatible operating
  342.             system places it's name in the environment where  AceComm  can
  343.             find  it.   "Shell"  is  not hard wired to COMMAND.COM but the
  344.             COMMAND PROCESSOR as found in the environmental data area.
  345.          
  346.          
  347.             Notes: When SWAP is  "ON",  the  serial  port  is  effectively
  348.                    disabled  during  the  shell.   When  SWAP is "OFF" the
  349.                    serial port remains active and  any  incoming  data  is
  350.                    handled  properly,  unless  the  receive  buffer  wraps
  351.                    around.
  352.          
  353.          <FileRequest_>
  354.             Menu driven EMSI file request function.
  355.          
  356.          
  357.          <FonListDialer_>
  358.          
  359.             Menu Area
  360.             Enter .FON List / Dialer
  361.          
  362.             Dial/.FON directory area.  While AceComm allows manual dialing
  363.             from inside the TERMINAL area, it most convenient to dial from
  364.             a  record contained in one of the .FON files available for use
  365.             from the DIAL area.
  366.          
  367.          
  368.          <FileLister_>
  369.          
  370.             Menu Area
  371.             Enter File Lister
  372.          
  373.             Files lister inside AceComm provides a  basic  directory  list
  374.             function   capable   of   changing   directories  and  drives.
  375.             File-marking,    deletion,    selection    for     appropriate
  376.             file-utility,  etc.   LISTFILES  may be created.  ACE.BCH is a
  377.             file created by the Tag feature inside the File  Lister  Area.
  378.             files tagged will be listed inside ACE.BCH as CR LF terminated
  379.             strings.   When  selecting  any  of  AceComm's  internal batch
  380.             capable sending protocols, AceComm will check for the existent
  381.             of the file ACE.BCH and allow sending  from  the  LISTFILE  if
  382.             desired.
  383.          
  384.          
  385.          <MdmHangUp_>
  386.          
  387.          
  388.          
  389.                 Page 4              AceComm & Utilities (Tm)
  390.          
  391.          
  392.          Chapter 2  MACROS
  393.          
  394.                     Local User Input (LUI) Functions (continued)
  395.          
  396.          
  397.             Prompts Yes/no before,
  398.             Sends PRM-data MDM_HANGUP string to modem.  Waits 1/2  second,
  399.             then drops DTR for 1 second.
  400.          
  401.          
  402.          <PrmDataMenus_>
  403.          
  404.             Menu Area
  405.             Enter PRM-data Menu Area
  406.          
  407.             Notes: When AutoSave is "ON", all data changed is automatically
  408.                    saved when exiting the PRM-data area.
  409.          
  410.          
  411.          <RProtocols_>
  412.          
  413.             Menu Area
  414.             Enter Receive Unit Protocols Area
  415.          
  416.          
  417.          <RunScriptFile_>
  418.          
  419.             List .SCR directory, Allow selection, Run selected .SCR file
  420.          
  421.             Lists  the  PRM-data .SCR directory Allows selection of a .SCR
  422.             file for immediate execution.
  423.          
  424.             Notes:  AceComm  allows  .SCR file as an argument when started
  425.                    which immediately executes the script.
  426.          
  427.          
  428.          <ScrnSnapShot_>
  429.          
  430.             Menu Area
  431.             Take Screen Snapshot
  432.          
  433.             Create a "SnapShot" of the current  screen  minus  any  status
  434.             lines  active.  Prompts for a filename.  Filenames always will
  435.             have the .SNA extension.  AceComm can detect  and  will  strip
  436.             away filename extensions provided by the user when they do not
  437.             match  that  of  the function.  This command is available from
  438.             most ALT POP UP REFERENCE areas.
  439.          
  440.          
  441.          <ScrnTag_>
  442.          
  443.          
  444.          
  445.                 Page 5              AceComm & Utilities (Tm)
  446.          
  447.          
  448.          Chapter 2  MACROS
  449.          
  450.                     Local User Input (LUI) Functions (continued)
  451.          
  452.          
  453.             Menu Area
  454.             Enter Screen Tagger Screen Area
  455.          
  456.             Tagger will allow tagging to the  first  SPACE_CHAR  or  press
  457.             RIGHT-ARROW  Tagger  tags the entire line of text.  Tagger has
  458.             it's own status line, and a block cursor will appear inside of
  459.             the Tagger mode.  Tagged items will be assigned  to  the  next
  460.             available SHIFT-Fn key.
  461.          
  462.             Tagger  pops  up  the  SHIFT-Fn  key  window and displays each
  463.             tagged item, as they are tagged.  Tagger  is  most  handy  for
  464.             grabbing  filenames  for  download off a BBS screen.  SHIFT-Fn
  465.             key fires the tagged item back when ready.   This  command  is
  466.             available from most ALT POP UP REFERENCE areas.
  467.          
  468.          
  469.          <SProtocols_>
  470.          
  471.             Menu Area
  472.             Enter Sending Unit Protocols Area
  473.          
  474.          
  475.          <ViewKeyCombos>
  476.          
  477.             Bring up Pop up Reference
  478.          
  479.          
  480.          
  481.          
  482.          
  483.          
  484.          
  485.          
  486.          
  487.          
  488.          
  489.          
  490.          
  491.          
  492.          
  493.          
  494.          
  495.          
  496.          
  497.          
  498.          
  499.          
  500.          
  501.                 Page 6              AceComm & Utilities (Tm)
  502.          
  503.          
  504.          Chapter 2  MACROS
  505.          
  506.                     Character I/O Functions
  507.          
  508.          
  509.          <WaitStr> STRING
  510.          
  511.             Waits for a CASE sensitive string (sequence of characters)  to
  512.             come  in the from the modem.  Can TIMEOUT.
  513.          
  514.             Notes:  The  example  below contains a SPACE_CHAR as the first
  515.                    character of STRING.
  516.          
  517.                    <WaitStr> name:
  518.          
  519.             Arguments  to  MACROS  are  taken  as  is,  up  until the first
  520.             <CR> on the line of text.
  521.          
  522.             A normal text editor in ASCII TEXT mode will have  placed  the
  523.             CR_CHAR as the byte following the ':' character in the example
  524.             STRING  below  '  name:'.   File Functions internal to AceComm
  525.             will  filter  the  leading  SPACE_CHAR  from  the  MACRO  ARG.
  526.          
  527.          
  528.          <SendStr> STRING
  529.          
  530.             Sends   a   string  to  the  modem.   Does  CONTROL  CHARACTER
  531.             TRANSLATION.
  532.          
  533.                <SendStr>^M
  534.                 Send a single CR_CHAR
  535.          
  536.                <SendStr>  Michael  Phelps^M
  537.                 Notes: the leading SPACE_CHAR part of STRING
  538.          
  539.                <SendStr>[USER_NAME]^M~~~~Y^M~~~~[FON_REC_PWD]
  540.                 Send IEMSI data user name field, a <CR> char, 1 second
  541.                 pause, Y, <CR> char, 1 second pause, current
  542.                 Fon.Record.Password.
  543.          
  544.                <SendStr>[USER_NAME]^M^M[PASSWORD]^M
  545.                 Send IEMSI data user name field, 2 <CR> chars, IEMSI
  546.                 data password field.
  547.          
  548.          <DoorWayMode>
  549.          
  550.             Toggle doorway mode.  Saves the  key  press  combo  on  entry,
  551.             whatever  key-combo  you  assign <DoorWayMode> to, is the only
  552.             way out.  Doorway sends all key presses to the modem in  their
  553.             RAW  'un-cooked'  form.  Non extended key presses are send LOW
  554.          
  555.          
  556.          
  557.                 Page 7              AceComm & Utilities (Tm)
  558.          
  559.          
  560.          Chapter 2  MACROS
  561.          
  562.                     Character I/O Functions (continued)
  563.          
  564.             BYTE ONLY.  Extended key presses are sent LOW BYTE, HIGH BYTE.
  565.          
  566.          
  567.          <HostEcho>
  568.          
  569.             Toggle Host echo mode.  This macro  emulates  HostMode's  ECHO
  570.             capability.  It does not answer the phone.  However modems set
  571.             up for auto answer function normally.
  572.          
  573.          
  574.          <AutoAnswer> On
  575.          
  576.             PRM-data MDM_HOST_INIT is sent to the modem when hostmode flag
  577.             is toggle "ON".  PRM-data MDM_INIT is sent to the modem when
  578.             hostmode flag is toggled "OFF".  AceComm begins responding to
  579.             the RI bit SET, and will send the MDM_ANSWER string to the
  580.             modem when RI BIT becomes asserted.  <HostEcho> becomes
  581.             active.
  582.          
  583.             AutoAnswer is also terminated whenever the user dials  out  from
  584.             the FON LIST MENU AREA.
  585.          
  586.             See your modems S7 register as an alternative.
  587.          
  588.          <LocalEcho>'  ,0
  589.          
  590.             Toggle local character echo.  Local key-presses will be echoed
  591.             to the screen.  (same effect as sending "ATE1^M" to the modem)
  592.          
  593.          
  594.          <SendEMSI_CLI>
  595.          
  596.             Send an EMSI_CLI HDR sequence to modem
  597.          
  598.             BBS  mailer  front ends that use EMSI handshake protocol will,
  599.             if EMSI is implemented properly, interpret an  "EMSI_CLI"  HDR
  600.             sequence,  as  "this  is  a  human caller" and drop to the BBS
  601.             without any delay.  Note: At  this  writing  Front  Door,  and
  602.             Binkley  recognize  EMSI_CLI  HDR.   DBridge  does  not.   See
  603.             default AutoD trigger assignments (ACE.CTL)
  604.          
  605.          
  606.          <SendEMSI_ICI>
  607.          
  608.             Send an EMSI_ICI data packet to modem
  609.          
  610.          
  611.          
  612.          
  613.                 Page 8              AceComm & Utilities (Tm)
  614.          
  615.          
  616.          Chapter 2  MACROS
  617.          
  618.                     Character I/O Functions (continued)
  619.          
  620.             EMSI_ICI is a response made by the caller (CLIENT)  to  a  BBS
  621.             system   (HOST)  which  supports  Interactive  EMSI  handshake
  622.             protocol.  IEMSI data is contained inside the  PRM-data  area.
  623.             This  data  can  be used for automating log on when call a BBS
  624.             that supports IEMSI.  See default  AutoD  trigger  assignments
  625.             (ACE.CTL)
  626.          
  627.          
  628.          
  629.          
  630.          
  631.          
  632.          
  633.          
  634.          
  635.          
  636.          
  637.          
  638.          
  639.          
  640.          
  641.          
  642.          
  643.          
  644.          
  645.          
  646.          
  647.          
  648.          
  649.          
  650.          
  651.          
  652.          
  653.          
  654.          
  655.          
  656.          
  657.          
  658.          
  659.          
  660.          
  661.          
  662.          
  663.          
  664.          
  665.          
  666.          
  667.          
  668.          
  669.                 Page 9              AceComm & Utilities (Tm)
  670.          
  671.          
  672.          Chapter 2  MACROS
  673.          
  674.                     File Functions
  675.          
  676.          
  677.          <SetFonFile> FILENAME
  678.          
  679.             Tacks  FILENAME  onto  the  PATH  defined in PRM DATA for .FON
  680.             files.  AceComm keeps track of the current(last accessed) .FON
  681.             file.  FILENAME becomes the current .FON  file.   <SetFonFile>
  682.             1_114.fon <DialRecord> 1
  683.          
  684.          
  685.          <ChgDir> FILENAME
  686.          
  687.             Make FILENAME current directory
  688.          
  689.          
  690.          <OpenCapture> filename
  691.          
  692.             Calling this function opens a capture file in the directory
  693.             path defined inside PRM-data Area "Directories" menu, .CAP
  694.             files. This function will first close an open capture file,
  695.             properly saving it to disk.
  696.          
  697.          
  698.          <CloseCapture>
  699.          
  700.             Close the current open capture file, or just returns if none
  701.             is open.
  702.             Notes: capture files are automatically closed on detection
  703.             of a loss in carrier.
  704.          
  705.          
  706.          <RunScriptFile> FILENAME
  707.          
  708.             Open and run FILENAME
  709.          
  710.             Notes:  Just FILENAME no PATH.  PATH found in PRM-data as .SCR
  711.                     is used.
  712.          
  713.          
  714.          <RunProgram> FILENAME
  715.          
  716.             Spawn an executable file.   Can  search  the  DOS  PATH.   Can
  717.             determine files's extension (.COM, .EXE).  All system ISRs are
  718.             restored  before  the  spawn  takes place.  The serial port is
  719.             un-hooked.  The state of DCD, and LINE  CONTROL  are  left  in
  720.             tact.
  721.          
  722.          
  723.          
  724.          
  725.                 Page 10              AceComm & Utilities (Tm)
  726.          
  727.          
  728.          Chapter 2  MACROS
  729.          
  730.                     File Functions (continued)
  731.          
  732.             After  the  spawn the system ISRs AceComm uses are taken back,
  733.             the serial port is re-assumed.
  734.          
  735.             SWAP FLAG "ON" and XMS,EMS,  or  DISK  swapping  takes  place.
  736.             SWAP  FLAG "OFF" and AceComm is left in memory, with exception
  737.             to first restoring the serial port and interrupts.
  738.          
  739.          
  740.          
  741.          
  742.          
  743.          
  744.          
  745.          
  746.          
  747.          
  748.          
  749.          
  750.          
  751.          
  752.          
  753.          
  754.          
  755.          
  756.          
  757.          
  758.          
  759.          
  760.          
  761.          
  762.          
  763.          
  764.          
  765.          
  766.          
  767.          
  768.          
  769.          
  770.          
  771.          
  772.          
  773.          
  774.          
  775.          
  776.          
  777.          
  778.          
  779.          
  780.          
  781.                 Page 11              AceComm & Utilities (Tm)
  782.          
  783.          
  784.          Chapter 2  MACROS
  785.          
  786.                     Data Transfer functions
  787.          
  788.          
  789.          <SendASCII> C:\MSG\COMM\ASCII.TX1
  790.          
  791.             Outputs from a file to the modem.  Sends  the  complete  file.
  792.             Does  *NO*  CONTROL  CHARACTER  TRANSLATION.  Data sent to the
  793.             modem is paced for buffer FULL, and all handshaking is valid.
  794.          
  795.             ESC-key press aborts the function.
  796.          
  797.          
  798.          <SendZmo> FILENAME
  799.          
  800.             Call internal zmodem sending unit with 1k data frame size.
  801.          
  802.             ESC-key press aborts the function.
  803.          
  804.          
  805.          <RecvZmo>
  806.          
  807.             Call internal zmodem recv  unit.   AceComm's  internal  zmodem
  808.             receiver  is capable of up to 8k data frame size.  The receive
  809.             unit will continue  in  batch  mode  until  the  sender  stops
  810.             sending files, or the user terminates the transfer.  Files are
  811.             placed  into the directory pointed to in the PRM-data area for
  812.             Downloads.
  813.          
  814.             ESC-key press aborts the function.
  815.          
  816.          
  817.          <SendYmo> FILENAME
  818.          
  819.             Call internal ymodem sending unit with  128  byte  data  frame
  820.             size.
  821.          
  822.             ESC-key press aborts the function.
  823.          
  824.          
  825.          <SendYmo1k> FILENAME
  826.          
  827.             Call internal ymodem sending unit with 1k data frame size.
  828.          
  829.             ESC-key press aborts the function.
  830.          
  831.          
  832.          <SendYmoG> FILENAME
  833.          
  834.          
  835.          
  836.          
  837.                 Page 12              AceComm & Utilities (Tm)
  838.          
  839.          
  840.          Chapter 2  MACROS
  841.          
  842.                     Data Transfer functions (continued)
  843.          
  844.             Call internal ymodemG sending unit with 1k data frame size.
  845.          
  846.             ESC-key press aborts the function.
  847.          
  848.          
  849.          <SendXmo> FILENAME
  850.          
  851.             Call  internal  xmodem  sending  unit with 128 byte data frame
  852.             size.
  853.          
  854.             ESC-key press aborts the function.
  855.          
  856.          
  857.          <SendXmo1k> FILENAME
  858.          
  859.             Call internal xmodem sending unit with 1k data frame size.
  860.          
  861.             ESC-key press aborts the function.
  862.          
  863.          
  864.          <RecvYmo>
  865.          
  866.             Call internal ymodem.  The receive unit will continue in batch
  867.             mode until  the  sender  stops  sending  files,  or  the  user
  868.             terminates  the transfer.  Files are placed into the directory
  869.             pointed to in the PRM-data area for Downloads.
  870.          
  871.             ESC-key press aborts the function.
  872.          
  873.          <RecvYmo1K>
  874.          
  875.             Call internal ymodem1K.  The receive  unit  will  continue  in
  876.             batch  mode  until the sender stops sending files, or the user
  877.             terminates the transfer.  Files are placed into the  directory
  878.             pointed to in the PRM-data area for Downloads.
  879.          
  880.             ESC-key press aborts the function.
  881.          
  882.          
  883.          <RecvYmoG>
  884.          
  885.             Call  internal  ymodemG.   The  receive  unit will continue in
  886.             batch mode until the sender stops sending files, or  the  user
  887.             terminates  the transfer.  Files are placed into the directory
  888.             pointed to in the PRM-data area for Downloads.
  889.          
  890.          
  891.          
  892.          
  893.                 Page 13              AceComm & Utilities (Tm)
  894.          
  895.          
  896.          Chapter 2  MACROS
  897.          
  898.                     Data Transfer functions (continued)
  899.          
  900.             ESC-key press aborts the function.
  901.          
  902.          
  903.          <RecvXmo> FILENAME
  904.          
  905.             Call internal xmodem.  Files are  placed  into  the  directory
  906.             pointed to in the PRM-data area for Downloads.
  907.          
  908.             ESC-key press aborts the function.
  909.          
  910.          <RecvXmo1K> FILENAME
  911.          
  912.             Call  internal  xmodem1k.  Files are placed into the directory
  913.             pointed to in the PRM-data area for Downloads.
  914.          
  915.             ESC-key press aborts the function.
  916.          
  917.          
  918.          
  919.          Xmodem/Ymodem Receive units are  capable  of  adopting  to  frame
  920.          size.   128  /  1024 data frames are determined by the sender and
  921.          can be sent in any combination.
  922.          
  923.          The Internal Zmodem in AceComm  is  capable  of  up  to  8k  data
  924.          frames.  For compatibility, AceComm only uses larger than 1k data
  925.          frames  with it's sending unit in mailer modes.  AceComm's zmodem
  926.          receive unit can handle up to 8k data frames at any time.
  927.          
  928.          
  929.          
  930.          
  931.          
  932.          
  933.          
  934.          
  935.          
  936.          
  937.          
  938.          
  939.          
  940.          
  941.          
  942.          
  943.          
  944.          
  945.          
  946.          
  947.          
  948.          
  949.                 Page 14              AceComm & Utilities (Tm)
  950.          
  951.          
  952.          Chapter 2  MACROS
  953.          
  954.                     Modem Functions
  955.          
  956.          
  957.          <DialRecord> n
  958.          
  959.             Retrieves the n record found in current .FON file
  960.          
  961.             Re dials number until CONNECT or USER ABORT
  962.          
  963.                 <SetFonFile> 1_114.FON <DIALRECORD> 1
  964.          
  965.          
  966.          <DialNum> PHONE_NUMBER
  967.          
  968.             Builds a  dial  string.   Uses  PRM-data  MDM_DIAL_PREFIX  and
  969.             PHONE_NUMBER  Sends  the  dial string to the modem.  One time.
  970.             No re dials
  971.          
  972.          
  973.          <SetDTR> ON/OFF
  974.          
  975.             SET or RESET UART BIT
  976.          
  977.                  <SetDtr> OFF
  978.          
  979.          
  980.          
  981.          
  982.          
  983.          
  984.          
  985.          
  986.          
  987.          
  988.          
  989.          
  990.          
  991.          
  992.          
  993.          
  994.          
  995.          
  996.          
  997.          
  998.          
  999.          
  1000.          
  1001.          
  1002.          
  1003.          
  1004.          
  1005.                 Page 15              AceComm & Utilities (Tm)
  1006.          
  1007.          
  1008.          Chapter 2  MACROS
  1009.          
  1010.                     FON Record / Dialing
  1011.          
  1012.          
  1013.          <InitFonRec> RECORD NAME
  1014.          
  1015.             This  MACRO must be called first.  The MACRO initializes a FON
  1016.             RECORD with AceComm defaults.  RECORD NAME is copied into  the
  1017.             system name for this record.
  1018.          
  1019.                <InitFonRec> Compuserve
  1020.          
  1021.          
  1022.          <Fon_Num> PHONE_NUMBER
  1023.          
  1024.             Set  the  phone  number field.  Any dial statements in ACE.CFG
  1025.             will be applied to this number when AceComm  builds  the  dial
  1026.             string.
  1027.          
  1028.                <Fon_Num>468-0285
  1029.          
  1030.          
  1031.          <Fon_Baud>BAUD
  1032.          
  1033.             If  using  a  locked port, AceComm will ignore this value when
  1034.             getting ready to dial.
  1035.          
  1036.                <Fon_Baud>19200
  1037.          
  1038.          
  1039.          <Fon_LineCtrl> DATA_PARITY_STOPBIT
  1040.          
  1041.             Valid parameters are as follows
  1042.                   8n1
  1043.                   7e1
  1044.                   7n1
  1045.          
  1046.                <Fon_LineCtrl>8n1
  1047.          
  1048.          
  1049.          <Fon_Term> VIDEO_TYPE
  1050.          
  1051.                - Valid parameters are as follows
  1052.          
  1053.                  TTY
  1054.                  Ansi
  1055.                  Avatar
  1056.                  Av/An
  1057.                  VT102
  1058.          
  1059.          
  1060.          
  1061.                 Page 16              AceComm & Utilities (Tm)
  1062.          
  1063.          
  1064.          Chapter 2  MACROS
  1065.          
  1066.                     FON Record / Dialing (continued)
  1067.          
  1068.          
  1069.                <Fon_Term>Av/An
  1070.          
  1071.          
  1072.          <Fon_CapFile> filename
  1073.          
  1074.          
  1075.          <Fon_Redial>
  1076.          
  1077.             Presents the FON record to the AceComm re dial function.
  1078.          
  1079.          
  1080.          
  1081.          
  1082.          
  1083.          
  1084.          
  1085.          
  1086.          
  1087.          
  1088.          
  1089.          
  1090.          
  1091.          
  1092.          
  1093.          
  1094.          
  1095.          
  1096.          
  1097.          
  1098.          
  1099.          
  1100.          
  1101.          
  1102.          
  1103.          
  1104.          
  1105.          
  1106.          
  1107.          
  1108.          
  1109.          
  1110.          
  1111.          
  1112.          
  1113.          
  1114.          
  1115.          
  1116.          
  1117.                 Page 17              AceComm & Utilities (Tm)
  1118.          
  1119.          
  1120.          Chapter 2  MACROS
  1121.          
  1122.                     Misc Functions
  1123.          
  1124.          
  1125.          <EndAcecomm> ERRORLEVEL
  1126.          
  1127.          <EndAcecomm> 0
  1128.             AceComm session end.
  1129.          
  1130.             Exit AceComm  back  to  the  operating  system.   End  AceComm
  1131.             session.   A QUICK snap, no prompt "Are you sure?".  If your on
  1132.             line, your still on line when you come back unless  "drop  DTR
  1133.             on exit is SET"
  1134.          
  1135.             See Drop DTR on EXIT flag inside Terminal Area Options
  1136.          
  1137.          <DispText>
  1138.             Display text defined inside a script data area
  1139.             Text is displayed at current cursor position
  1140.             Text display is local
  1141.          
  1142.          <ClearWindow>
  1143.          
  1144.             Clear screen. Clears screen above status line
  1145.          
  1146.          
  1147.          <SendDelay> SECONDS
  1148.          
  1149.             Create wait delay before sending the next <SendStr> string
  1150.          
  1151.          
  1152.          <Delay> SECONDS
  1153.          
  1154.             Create program function delay.
  1155.          
  1156.          
  1157.          <Wait_To_HHMM> hh:mm
  1158.             Wait until hour:minute     24 hour format
  1159.             leading zeros not needed
  1160.          
  1161.                     <Wait_To_HHMM>4:10    is valid
  1162.          
  1163.             Sample use:
  1164.          
  1165.              <Wait_To_HHMM>15:45                ; wait till 3:45 pm
  1166.              <INITFONREC>A.C.E. Software Support; call Init FON function
  1167.              <FON_NUM>1-602-846-2940            ; set phone number
  1168.              <FON_BAUD>2400
  1169.              <FON_TERM>Av/An                    ; video type for script
  1170.          
  1171.          
  1172.          
  1173.                 Page 18              AceComm & Utilities (Tm)
  1174.          
  1175.          
  1176.          Chapter 2  MACROS
  1177.          
  1178.                     Misc Functions (continued)
  1179.          
  1180.              <FON_REDIAL>                       ; call redial function
  1181.              <WAITSTR>it a few moments.
  1182.              <SENDSTR>^M
  1183.              <WAITSTR>s your name:
  1184.              <SENDSTR>Michael Phelps^M
  1185.              <WAITSTR>ael Phelps [Y,n]?
  1186.              <SENDSTR>^M
  1187.              <WAITSTR>Password:
  1188.              <SENDSTR>melissa_jean^M
  1189.              <WAITSTR>Select:
  1190.              <SENDSTR>f^M
  1191.              <SENDSTR>d^Mz^Mace170.arj^M
  1192.              <RecvZmo>
  1193.              <WAITSTR>Select:
  1194.              <SENDSTR>gyn^M
  1195.              <ENDS>
  1196.              <ENDS>
  1197.          
  1198.             Mark the end of a script.
  1199.          
  1200.          <RingBell> SECONDS
  1201.          
  1202.             A value of 0 does not ring bell, a value of 1 plays a
  1203.             victory tune, values from 2 - 30 ring the internal bell for
  1204.             the number of seconds. This is the same bell sound heard in
  1205.             the Dial/Connect window.
  1206.          
  1207.          
  1208.          
  1209.          
  1210.          
  1211.          
  1212.          
  1213.          
  1214.          
  1215.          
  1216.          
  1217.          
  1218.          
  1219.          
  1220.          
  1221.          
  1222.          
  1223.          
  1224.          
  1225.          
  1226.          
  1227.          
  1228.          
  1229.                 Page 19              AceComm & Utilities (Tm)
  1230.          
  1231.          
  1232.          Chapter 3  MACRO Parameter Functions
  1233.          
  1234.                     Expandable MACRO Parameters
  1235.          
  1236.          
  1237.          MACRO parameters are UPPER case only
  1238.          
  1239.          The following are data from Fon.Records
  1240.          
  1241.          
  1242.          [FON_REC_PWD]
  1243.          
  1244.             Replaced with the current FON RECORD'S "password"
  1245.          
  1246.          
  1247.          [FON_REC_CAP]
  1248.          
  1249.             Replaced with the current FON RECORD'S CAPTURE "filename"
  1250.          
  1251.          
  1252.          [FON_REC_SCR]
  1253.          
  1254.             Replaced with the current FON RECORD'S SCRIPT "filename"
  1255.          
  1256.          The following are data from PRM-data IEMSI section
  1257.          
  1258.          
  1259.          [USER_NAME]
  1260.          
  1261.             Replaced with the current PRM-data/IEMSI "User Name"
  1262.          
  1263.                <SendStr> [USER_NAME]
  1264.          
  1265.          
  1266.          [ALIAS]
  1267.          
  1268.             Replaced with the current PRM-data/IEMSI "alias"
  1269.          
  1270.          
  1271.          [LOCATION]
  1272.          
  1273.             Replaced with the current PRM-data/IEMSI "location"
  1274.          
  1275.          
  1276.          [DATA_PNUM]
  1277.          
  1278.             Replaced with the current PRM-data/IEMSI "data #"
  1279.          
  1280.          
  1281.          [VOICE_PNUM]
  1282.          
  1283.          
  1284.          
  1285.                 Page 20              AceComm & Utilities (Tm)
  1286.          
  1287.          
  1288.          Chapter 3  MACRO Parameter Functions
  1289.          
  1290.                     Expandable MACRO Parameters (continued)
  1291.          
  1292.          
  1293.             Replaced with the current PRM-data/IEMSI "voice #"
  1294.          
  1295.          [PASSWORD]
  1296.          
  1297.             Replaced with the current PRM-data/IEMSI "password"
  1298.          
  1299.          
  1300.          The following are data from PRM-data DIRECTORY section
  1301.          
  1302.          
  1303.          [DIR_START]
  1304.          
  1305.             Replaced with the current PRM-data/DIR "start up"
  1306.          
  1307.          
  1308.          [DIR_FON]
  1309.          
  1310.             Replaced with the current PRM-data/DIR ".FON"
  1311.          
  1312.          
  1313.          [DIR_CAP]
  1314.          
  1315.             Replaced with the current PRM-data/DIR ".CAP"
  1316.          
  1317.          
  1318.          [DIR_SCR]
  1319.          
  1320.             Replaced with the current PRM-data/DIR ".SCR"
  1321.          
  1322.          
  1323.          [DIR_KTS]
  1324.          
  1325.             Replaced with the current PRM-data/DIR ".KTS"
  1326.          
  1327.          
  1328.          [DIR_DNLDS]
  1329.          
  1330.             Replaced with the current PRM-data/DIR "dnlds"
  1331.          
  1332.          <ChgDir> [DIR_DNLDS] <RunProgram>DSZ rz -mr <ChgDir> [DIR_START]
  1333.          
  1334.          
  1335.          [DIR_NODELIST]
  1336.          
  1337.             Replaced with the current PRM-data/DIR "nodelist"
  1338.          
  1339.          
  1340.          
  1341.                 Page 21              AceComm & Utilities (Tm)
  1342.          
  1343.          
  1344.          Chapter 3  MACRO Parameter Functions
  1345.          
  1346.                     Expandable MACRO Parameters (continued)
  1347.          
  1348.          
  1349.          
  1350.          [DIR_MAIL]
  1351.          
  1352.             Replaced with the current PRM-data/DIR "mail"
  1353.          
  1354.          
  1355.          The following are data from PRM-data MODEM section
  1356.          
  1357.          
  1358.          [MDM_INIT]
  1359.          
  1360.             Replaced with the current PRM-data/MDM "init"
  1361.          
  1362.          
  1363.          [DIAL_PREFIX]
  1364.          
  1365.             Replaced with the current PRM-data/MDM "dial prefix"
  1366.          
  1367.          
  1368.          [DIAL_SUFFIX]
  1369.          
  1370.             Replaced with the current PRM-data/MDM "dial suffix"
  1371.          
  1372.          
  1373.          [ANSWER]
  1374.          
  1375.             Replaced with the current PRM-data/MDM "answer"
  1376.          
  1377.          
  1378.          [HANGUP]
  1379.          
  1380.             Replaced with the current PRM-data/MDM "hangup"
  1381.          
  1382.          
  1383.          [OFFHOOK]
  1384.          
  1385.             Replaced with the current PRM-data/MDM "off hook"
  1386.          
  1387.          
  1388.          [ABORT]
  1389.          
  1390.             Replaced with the current PRM-data/MDM "abort"
  1391.          
  1392.          
  1393.          [RESET]
  1394.          
  1395.          
  1396.          
  1397.                 Page 22              AceComm & Utilities (Tm)
  1398.          
  1399.          
  1400.          Chapter 3  MACRO Parameter Functions
  1401.          
  1402.                     Expandable MACRO Parameters (continued)
  1403.          
  1404.          
  1405.             Replaced with the current PRM-data/MDM "reset"
  1406.          
  1407.          
  1408.          [ECHO]
  1409.          
  1410.             Replaced with the current PRM-data/MDM "echo"
  1411.          
  1412.          
  1413.          [HOST_INIT]
  1414.          
  1415.             Replaced with the current PRM-data/MDM "host init"
  1416.          
  1417.          
  1418.          [CMD_LINE_TERMINATOR]
  1419.          
  1420.             Replaced   with   the   current   PRM-data/MDM  "command  line
  1421.             terminator"
  1422.          
  1423.          
  1424.          
  1425.          
  1426.          
  1427.          
  1428.          
  1429.          
  1430.          
  1431.          
  1432.          
  1433.          
  1434.          
  1435.          
  1436.          
  1437.          
  1438.          
  1439.          
  1440.          
  1441.          
  1442.          
  1443.          
  1444.          
  1445.          
  1446.          
  1447.          
  1448.          
  1449.          
  1450.          
  1451.          
  1452.          
  1453.                 Page 23              AceComm & Utilities (Tm)
  1454.          
  1455.          
  1456.          Chapter 3  MACRO Parameter Functions
  1457.          
  1458.                     Expandable MACRO Functions
  1459.          
  1460.          
  1461.          Expandable MACRO Functions are UPPER case only
  1462.          
  1463.          %B
  1464.             Insert ascii baud, %B is replaced with current baud setting
  1465.             is ascii format.
  1466.          
  1467.          %P
  1468.             Insert ascii port, %P is replaced with current port number
  1469.             is ascii format. Port number is 1 based (com1 =1, com2 =2)
  1470.          
  1471.          %FN   (Valid when used from <FileLister_>)
  1472.          
  1473.             Use from File Lister  Area,  %FN  is  replaced  with  currently
  1474.             "highlighted" filename.
  1475.          
  1476.          %PF
  1477.             Prompt  for  filename,  %PF is replaced with what you type into
  1478.             the prompt box.
  1479.          
  1480.          %WK
  1481.          
  1482.             Wait for Key press, stops MACRO execution and waits for a  key
  1483.             press.
  1484.          
  1485.          
  1486.          
  1487.          
  1488.          
  1489.