home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
zip
/
telecomm
/
unitmacs.lzh
/
MLTIDIAL.MAC
< prev
next >
Wrap
Text File
|
1990-02-19
|
4KB
|
80 lines
# This macro will dial multiple numbers for multi-line BBS's and
# prompt for re-tries. Edit modem codes, login, and setup file names.
me('Loading BBS set-up file') w(05) loadsetup(' .set') w(05)
se('atz\r\n') w(10) se('ats7=17\r\n') w(10) se('atx4\r\n') w(10)
me('Dialing BBS. Will re-dial w/# cycle')
# Set 1 must be equal to entries in redial list. Dial and login follows:
se('atdt \r\n') w(05) set(1,8) set(2,0) set(3,0)
# If "CONNECT", 3 Crs and log in. If not, "FAILED!" + re-dial.
if(!get('CONNECT',20)) ju(1)
:7
# Put login code here. Carriage returns, no line feeds for Unix.
# Edit codes for your purposes.
# Send up to 8 Cr's, hangup, try next #. If ok, login.
ec('\r\nSending carriage returns...\r\n') w(50)
ec('1\r\n') se('\r') w(40) ec('2\r\n') se('\r')
ec('Should get system message here. If not, more Cr`s\r\n')
if(!ge('login:',04)) ec('3\r\n') se('\r') if(!ge('login:',04)) ju(9)
:8
# Name here if connect is successful and get 1st prompt.
w(05) se(' \r')
# Password code here
ge('Your password:',60) w(05) se(' \r')
# login is successful and screen history is turned on. End macro.
history(1) me('History recording is on') w(20) exit(0)
:1
# If @1 is "0", jump to (5), prompt for re-tries. Otherwise, dial alts.
if(!or(@1,0)) Ju(5)
# Fail and re-dial timeout.
if(com('1',"@3')) me('Will dial in 30 seconds.') w(270) ju(2)
ec('Failed!\r\n') ec('\n') me('Re-dial in 15 seconds.') w(120)
:2
# Re-dial count, display, and check follows: @1= retry countdown @2=retry#
set(1,add(@1,-1)) set(2,add(@2,1)) con('RETRY# ',"@2') ec($T) ec('\r\n')
:3
# Re-dial with 7 alternate numbers:
# First time, 1st # (8) is skipped so num. in top row should be same as
# num. already dialed above.
# #s must be in order bottom-to-top with '1' in bottom "com" argument.
me('Re-dialing Eskimo N. BBS. Cntrl-C aborts. NOW!') w(30)
if(com("@1','8')) me('Dialing port 1') se('atdt \r\n')
if(com("@1','7')) me('Dialing port 2') se('atdt \r\n')
if(com("@1','6')) me('Dialing port 3') se('atdt \r\n')
if(com("@1','5')) me('Dialing port 4') se('atdt \r\n')
if(com("@1','4')) me('Dialing port 5') se('atdt \r\n')
if(com("@1','3')) me('Dialing port 6') se('atdt \r\n')
if(com("@1','2')) me('Dialing port 7') se('atdt \r\n')
if(com("@1','1')) me('Dialing port 8') se('atdt \r\n')
# If no "CONNECT", check count, and re-dial. If yes, return to login.
if(get('CONNECT',20)) ju(7)
:4
# Check if @1 = "1". If so, prompt to re-try or quit. If not, re-dial.
if(com("@1,'1')) ju(5)
ec('\nFailed!\r\n') w(10) me('Re-dial in 15 sec.') w(120) ju(2)
:5
# Prompt to try again or end macro.
ec('Failed! More retries?\r\n') w(05)
# Set @1 must be one more than # of re-dial entries in list.
if(input('All Failed. Try Again? OK or Cancel')) set(1,9) ju(2)
ec('FINISHED.\r\n') w(10) exit(0)
:6
# If no response after connect, "FAILED!", hangup, dial next #.
ec('No Response. Will hangup!\r\n') w(20) drop( ) w(05) assert( ) w(05)
# Check if @1 = "1". Yes, prompt to re-try or quit. No, re-dial.
if(com("@1,'1')) ju(5)
ec('\r\n') ju(1)
:9
# Send more Cr's and check for response. May have to edit prompts.
ec('4\r\n') set(3,0) se('\r')
if(!ge('login:',04)) ec('5\r\n') se('\r') if(!ge('login:',04)) ju(10)
ju(8)
:10
ec('6\r\n') se('\r')
if(!ge('login:',04)) ec('7\r\n') se('\r') if(!ge('login:',04)) ju(11)
ju(8)
:11
se('\r') ec('Sent 8th Carriage Return. Hangup if no go.\r\n')
# Set #3 changes 20 sec. timeout to 30. Ju(6)=hang+dial next. (8)=login
if(!ge('login:',04)) set(3,1) ju(6)
ju(8)