home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
TE2SC121.ZIP
/
Bink2BBS.Scr
next >
Wrap
Text File
|
1992-07-21
|
2KB
|
67 lines
;; -------------------------------------------------------------------------
;;
;; Bink2BBS.Scr -- Copyright (c) 1992, Oberon Software, Mankato Mn
;; Author: Brady Flowers, 07/19/92
;;
;; This little script is designed to get us through the BinkleyTerm
;; conversation and into the BBS. This should work with a variety of
;; FidoNet BBSes. It is tested with Pete Norloff's OS/2 Shareware BBS
;; and with the Oberon Support BBS. The thing that will break it is
;; the waitfor("Thank you", 3) statement if a sysop does not transmit
;; a string containing the words "Thank you" once the user has pressed
;; ESCape to enter the BBS.
;;
;; -------------------------------------------------------------------------
global integer fGotBBS ;; Caller must declare this global variable if it
integer i ;; wants to test the success or failure
subroutine GetBBS
fGotBBS = FALSE ;; All primed for failure
;; Try five times to cajole Bink into sending its initial banner by
;; transmitting space characters, one every two seconds.
i = 0
do while i < 5
sendbyte(' ')
if waitfor("Address", 3)
break
else
i = i + 1
sleep(2000)
endif
loop
;; If i is less than 5, then we got the Bink banner, now do the same
;; thing with ESCape characters to tell Bink we want the BBS. See the
;; comment above regarding testing for "Thank you" here.
if i < 5
i = 0
do while i < 5
sendbyte('^[')
if waitfor("Thank you", 3)
break
else
i = i + 1
sleep(2000)
endif
loop
;; If i is less than 5 here, it means Bink said "Thank you" and we
;; should be going into the BBS now.
if i < 5
fGotBBS = TRUE
endif
endif
endsub
program
gosub GetBBS
end