home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 8
/
CDASC08.ISO
/
VRAC
/
ACE170.ZIP
/
SCRIPTS.DOC
< prev
next >
Wrap
Text File
|
1993-09-05
|
15KB
|
524 lines
AceComm & Utilities (Tm)
Version 1.7
"Leading Software Technology" for todays hi-speed modem
Evaluation copy 09/05/93
AceComm
AceComm & Utilities User Manual
Version 1.7
Copyright (c) 1990 - 1993 all rights reserved
by
MGP Programming Services & Michael G Phelps
┌─────────┐
┌─────┴───┐ │ (R)
──│ │o │──────────────
AceComm Support Services │ ┌─────┴╨──┐ │Association of
Michael G Phelps │ │ │─┘ Shareware
3003 N. Central Ave Suite 121-171 └───│ o │ Professionals
Phoenix, AZ 85012 USA ──────│ ║ │────────────────
└────╨────┘ MEMBER
Telephone (602) 846-4563 (12 - 7pm MST 6 days)
AceComm BBS (602) 846-2940
CompuServe 75120,3306
CONTENTS
-----------------------------------------------------------------
Chapter 1 Scripts.............................................1
AutoScriptGen (Tm)...............................3
Conditionals, Labels, Gotos, Data Area...........5
Chapter 1 Scripts
This release of 09/05/93 introduces a macro driven script
language.
The next release in about 30 days will bring this documentation
current and provide many more example script files.
LUI MACROS require local keyboard input, and so are not suited
to un-attended scripts.
LUI MACROS contain a '_' underscore as the last character
inside the brackets.
o The MACRO PROCESSOR supports MACRO STACKING
o MACRO STACKING means multiple MACROS per line
<SendStr>u z ACE0601.ARJ^M <SendZmo>files\ace0601.arj
<SendStr>u z ACE0601.ARJ^M <RunProgram>DSZ sz -m files\ace0601.arj
<SetDTR> ON <SendStr>ATDT846-2940^M <WaitStr>CONNECT <SendStr>^[^[
o MACRO DATA PARAMETERS are bounded inside of square
brackets [ ]
o MACRO DATA PARAMETERS need not have a <SP> character in front
of them
o MACRO DATA PARAMETERS must be upper CASE
<SendStr>[USER_NAME]^MY^M[FON_REC_PWD]
|
|
DATA PARAM (IEMSI data)
<SendStr>[USER_NAME]^M~~~~[PASSWORD]^M
| | | |
| | | One second delay (~ = 1/4 second delay)
MACRO | |
| Control character representation for <CR>
|
MACRO DATA PARAMETER (IEMSI data)
o MACRO FUNCTION PARAMETERS are prefixed with a % character
<SendZmo> %PF
| |
| MACRO FUNCTION PARAMETER (prompt for filename)
Page 1 "AceComm & Utilities"(Tm) v1.7
Chapter 1 Scripts
|
Internal Zmodem sending unit
<RunProgram>dsz port %P speed %B sz %PF %WK <SendStr>^M
| | | |
| | | |
| | | MACRO FUNCTION PARAM
| | | (wait for key press)
| | |
| | MACRO FUNCTION PARAM
| | (prompt for filename)
| |
| MACRO FUNCTION PARAM
| (insert ascii baud)
|
MACRO FUNCTION PARAM
(insert ascii port)
Page 2 "AceComm & Utilities"(Tm) v1.7
Chapter 1 Scripts
AutoScriptGen (Tm)
AceComm generates script files automatically when running in
AutoScriptGen mode. The macro <AutoScrGen_> puts AceComm into
AutoScriptGen mode. AceComm default keyboard file ACE_DEF.KBD
assigns ALT-A to <AutoScrGen_>.
AutoScriptGen first prompts for a filename to use for the script
file. The extension .SCR will automatically be appended.
╔═Input Window══════════════════════════════════════════════════
║═Enter filename, <ENTER> alone when done, ESC-abort════════════
║>=> D:\ACE\CSERVE░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
╚═══════════════════════════════════════════════════════════════
Having a filename, AutoScriptGen creates the file and waits for
activity. We want to call out. Lets bring up the FON directory
and select Compuserve.
╔═ Telephone_directory fon\ACE.FON, 9 Records═══════════════════
║═ System Name Phone Number Line Control V
║ 1 AceComm Support BBS 1-602-846-2940 19200,8N1 A
║>2 CIS (local phoenix 9600) 468-0285 19200,7E1 A
║ 3 CIS (phones) 1-800-346-3247 2400,7E1 A
║ 4 Comp USA #2 1-214-620-7993 19200,8N1 A
║ 5 Supra Modem BBS 1-503-967-2444 19200,8N1 A
║ 6 Comput Connections (PCB) 1-202-547-2008 19200,8N1 A
║ 7 Comp USE (Dallas TX) 1-214-620-2255 19200,8N1 A
║ Dial Edit <SPACEBAR>-Que Circling_dial_queue Fon_files S
╚═ Add_record Remove_record UnMark_All Import Paint Quit H
AutoScripGen will write Fon.Record information to the script
file in the form of macro commands.
Below is a simple script file produced by AutoScriptGen. The
first 5 lines are a result of having selected a Fon.Record to
dial from inside the dialing area. AutoScriptGen has used 4
macro commands to initialize a Fon.Record and a 5'th macro to
call the continuous dialer function.
FILE: CSERVE.SCR
------------snip here -------------
<INITFONREC>CIS (local phoenix 9600)
<FON_NUM>468-0285
<FON_BAUD>19200
Page 3 "AceComm & Utilities"(Tm) v1.7
Chapter 1 Scripts
AutoScriptGen (Tm) (continued)
<FON_TERM>Av/An
<FON_REDIAL>
<SENDSTR>^M
<WAITSTR>Host Name:
<SENDSTR>cis^M
<WAITSTR>User ID:
<SENDSTR>75120,3306^M
<WAITSTR>Password:
<SENDSTR>cis/pwd^M
<WAITSTR>er choice number !
<SENDSTR>go ibmpro^M
<WAITSTR>Press <CR> !
<SENDSTR>^M
<OPENCAPTURE>ibmpro
<WAITSTR>Enter choice !
<SENDSTR>READ NEW^M
<WAITSTR>ress <CR> !
<SENDSTR>^M
<CLOSECAPTURE>
<WAITSTR>Enter choice !
<SENDSTR>off^M
<WAITSTR>Host Name:
<SENDSTR>off^M
<ENDS>
------------snip here -------------
Page 4 "AceComm & Utilities"(Tm) v1.7
Chapter 1 Scripts
Conditionals, Labels, Gotos, Data Area
:Label
Labels begin with ':' character
Labels are used as arguments to the <goto> macro
<goto> label
"Label" can be defined any where in the script file, either
before or after a <goto> macro.
<if> condition
AceComm supports a set of conditional macros. Conditional
macros return either 1 or 0.
{-DATA_AREA-}
Defines a data area
{-TEXT_START-}
see examples
{-TEXT_END-}
{-Data_ Area-} will be covered extensively next month with
many complex scripts as well as complete documentation.
The following script introduces some un-documented script
language features.
Follows is a basic script which includes a data area.
------------snip here -------------
<ClearWindow>
<DispText>Intro
<DispText>Ask_Continue
:GetKey
<GetKey>
<if>Y
<goto>Dial
<if>N
<goto>End
<goto>GetKey
:Dial
<INITFONREC>ACECOMM Support BBS ; Initialize a FON RECORD
<FON_NUM>1-602-846-2940 ;
<FON_BAUD>19200 ;
Page 5 "AceComm & Utilities"(Tm) v1.7
Chapter 1 Scripts
Conditionals, Labels, Gotos, Data Area (continued)
<FON_TERM>Av/An ;
<FON_REDIAL> ; Go into re dial mode
<DispText>Connect
<WAITSTR> your name:
<GetDCD> ; <WaitStr> may have timed
<if>1 ; out
<goto>Connect
<goto>Dial
:Connect
<SENDSTR>Michael Phelps^M
<SENDSTR>Y^M
<SENDSTR>password^M
<WAITSTR>Select: ; Notice the AVATAR video
<SENDSTR>ff ; sequence, Scripts created
:End ; in graphics modes are
<ENDS> ; video type sensitive
{-DATA_AREA-}
{-TEXT_START-}Intro
-- Generic Log On Script --
{-TEXT_END-}
{-TEXT_START-}Ask_Continue
Continue (Y/n) {-TEXT_END-}
{-TEXT_START-}Connect
-- Connect --
{-TEXT_END-}
------------snip here -------------
The above example contains some video type specific
characters in the <WaitStr> strings.
------------snip here -------------
<Wait_To_HHMM>15:45 ; wait till 3:45 pm
<INITFONREC>A.C.E. Software Support; call Init FON function
<FON_NUM>1-602-846-2940 ; set phone number
<FON_BAUD>2400
<FON_TERM>Av/An ; video type for script
<FON_REDIAL> ; call redial function
<WAITSTR>it a few moments.
<SENDSTR>^M
<WAITSTR>s your name:
<SENDSTR>Michael Phelps^M
<WAITSTR>ael Phelps [Y,n]?
Page 6 "AceComm & Utilities"(Tm) v1.7
Chapter 1 Scripts
Conditionals, Labels, Gotos, Data Area (continued)
<SENDSTR>^M
<WAITSTR>Password:
<SENDSTR>melissa_jean^M
<WAITSTR>Select:
<SENDSTR>f^M
<SENDSTR>d^Mz^Mace170.arj^M
<RecvZmo>
<WAITSTR>Select:
<SENDSTR>gyn^M
<ENDS>
<ENDS>
------------snip here -------------