home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC/CD Review 40
/
PCRFEB.BIN
/
internav
/
internav.pr$
/
REGISTER.BMC
< prev
Wrap
Text File
|
1994-10-20
|
2KB
|
88 lines
**
** REGISTER.BMC -- Registration Logon
**
** This script is used to setup and dial the modem, log onto DELPHI's
** toll-free registration number and open a terminal window. It
** performs no other functions.
**
** Last Updated 9/2/94 6:45 pm by EFR
**
Screen("On")
LocalEcho("Off")
SetDelay(50)
Show("Initialize Modem . . .")
ModemPuts("$(CodeAT)Z$(CommEol)")
Gets("$(ResultOK)",2000,0)
ModemPuts("$(CodeAT)$(CmdSetup1)$(CommEol)")
Gets("$(ResultOK)",2000,0)
Show("Dialing London registration number . . .")
ModemPuts("$(CodeAT)$(CmdDial)$(DialPrefix)0171-284-2424$(CommEol)")
WatchStart(600000)
WatchPoint(1,1,"CONNECTED")
WatchDelete(1)
WatchPoint(2,1,"CONNECT ")
Gets("\n",1000,0);
Show("Connected to London SprintNet PAD. . .")
Wait(2000)
** Put a comment marker (an asterisk) in front of the
** next command (ModemPuts("@")) for 300 and 1200 bps
** access.
ModemPuts("@")
ModemPuts("D$(CommEol)")
WatchDelete(2)
WatchPoint(3,1,"NO CARRIER")
Return("Unable to connect. Check your local access number, access method, and modem port speed settings under Options and try again.")
WatchPoint(4,50,"Username:")
Show("Sending GODELPHI to logon as new user . . .")
Puts("GODELPHI$(CommEol)")
WatchDelete(4)
WatchPoint(5,5,"NO CARRIER")
Return("Unable to connect. Check your modem port speed settings under Options and try again.")
WatchPoint(11,10,"BUSY")
Show("Busy . . . Redialing . . . Click on the Cancel button to terminate.")
Wait(5000)
Puts("$(CodeAT)$(CmdDial)$(DialPrefix)0171-284-2424$(CommEol)")
WatchPoint(12,5,"NO DIALTONE")
Return("No Dialtone detected. Check telephone line and modem connections, and try again.")
WatchPoint(15,5,"NO DIAL TONE")
Return("No Dialtone detected. Check telephone line and modem connections, and try again.")
WatchPoint(21,5,"Please enter your password:")
Screen("Off")
PutPassword()
Puts("$(CommEol)")
Gets("\n",2000,0)
Screen("On")
WatchPoint(22,5,"Thanks for visiting. Bye!")
WatchExit()
WatchPoint(23,5,"RETURN to continue.")
Puts("*internav*$(CommEol)")
WatchDelete(23)
WatchEnd()
Gets("CARRIER",5000,0)