home *** CD-ROM | disk | FTP | other *** search
- ;=| PC Pursuit Logon Script v1.00 |===========================================;
- ; ;
- ; Before using this script you must enter your PC Pursuit User ID/Password ;
- ; below where indicated with <--. You must also set up Intellicomm for use ;
- ; with PC Pursuit. See "LONG DISTANCE SERVICES" in the manual for details. ;
- ; ;
- ;=============================================================================;
- SENDCR:
- delay 10 ;^M is automatically added after send, sendnc does not
- send "@D" ;<-- first @ could also be changed to ^M (send "^MD")
- waitfor "TERMINAL=" 10 SENDCR
- sendnc "D1"
- SENDCR2:
- send ""
- waitfor "@" 10 SENDCR2
- sendnc "C D/"
- sendbif "G" "city" ;send City (area code), as defined in the BIF
- sendnc "/24" ;<-- or /3 for 300 baud, /12 for 1200 baud
- sendnc ","
- send "USERID" ;<-- ENTER YOUR PC PURSUIT USER ID HERE (between the "")
- ;-------------------------------------------------------
- waitfor "PASSWORD ="
- send "PASSWORD" ;<-- ENTER YOUR PC PURSUIT PASSWORD HERE (between the "")
- ;--------------------------------------------------------
-
- when ;clear all whens
- when "BUSY" DISCONNECT ;if/when get BUSY goto label DISCONNECT below
- when "NOT OPERATING" DISCONNECT
- when "NO CARRIER" DISCONNECT
- waitfor "CONNECT" 45 DISCONNECT ;wait for CONNECT or goto DISCONNECT in 45 sec.
-
- send "ATZ^M" ;reset/wake up remote MODEM
- waitfor "OK"
- sendnc "ATDT"
- sendbif G "phn1" ;send the BBS phone #, as defined in the BIF
- send "" ;add a CR, sendbif doesn't add one
-
- when ;clear any previous whens
- when "BUSY" SITEBUSY ;goto SITEBUSY: if get the message BUSY
- when "NO DIALTONE" SITEBUSY
- when "NO CARRIER" SITEBUSY
- waitfor "CONNECT" 45 SITEBUSY ;wait 45 seconds then timeout and goto SITEBUSY
- exit ;exit with no errorcode tells Icom to logon BBS now
-
- SITEBUSY:
- send "^M@"
- when
- when "@" "D"
- waitfor "DISCONNECTED" 10
-
- DISCONNECT:
- delay 20
- hangup
- exit 1 ;exit with > 0 errorcode tells Icom to cancel BBS logon
- ; but to try again later
-