home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
TE2SC121.ZIP
/
Oberon.Scr
< prev
next >
Wrap
Text File
|
1992-07-21
|
2KB
|
70 lines
;; -------------------------------------------------------------------------
;;
;; OberonLogin.Scr -- Copyright (c) 1992, Oberon Software, Mankato Mn
;; Author: Brady Flowers, 07/19/92
;;
;; Usage: This is setup specifically for logging onto the Oberon Software
;; User Support BBS. You may run this either attached to the
;; directory entry for the BBS or from the Alt-/ Command Prompt.
;; If you run it from the Command Prompt, make sure that you
;; change the value of the string "DialerEntry" to match the tag
;; for the BBS as it appears in your dialing directory. (Also,
;; you should change the string "MyName" appropriately!)
;;
;; Note: The script expects to find your password for the BBS stored
;; with the directory entry.
;;
;; Note: This script requires that "Bink2BBS.Scr" be present somewhere
;; on your ScriptPath also.
;;
;; -------------------------------------------------------------------------
global integer fGotBBS ;; Return value from Bink2BBS.Scr
string DialerEntry = "Obern" ;; <<== Change this for your setup
string MyName = "Brady;Flowers" ;; <<== Change this to your name
integer hWatch1
integer hWatch2
integer hWatch3
integer hWatch4
program
if !connected
dial(DialerEntry)
endif
if connected
run("Bink2BBS")
if fGotBBS
hWatch1 = watchfor("Press [ENTER] to continue:", "sendbyte(13)")
hWatch2 = watchfor("Press ENTER to continue...", "sendbyte(13)")
hWatch3 = watchfor("Notes for", "sendbyte('S')")
hWatch4 = watchfor("now (ENTER=Yes)?", "sendbyte('N')")
waitfor("Enter your FIRST and LAST name:", 30)
transmit("%s^M", MyName)
waitfor("Password:", 30)
transmit("%s^M", Password(""))
waitfor("───", 30)
sendbyte('S')
waitfor("Bulletins:", 60)
sendbyte('S')
waitfor("Select:", 60)
cancelwatch(hWatch1)
cancelwatch(hWatch2)
cancelwatch(hWatch3)
cancelwatch(hWatch4)
else
;; Couldn't get thru Binkley for some reason?
hangup(FALSE)
endif
endif
end