home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
TE2SC121.ZIP
/
MaxLogin.Scr
< prev
next >
Wrap
Text File
|
1992-07-21
|
2KB
|
56 lines
;; -------------------------------------------------------------------------
;;
;; MaxLogin.Scr -- Copyright (c) 1992, Oberon Software, Mankato Mn
;; Author: Brady Flowers, 07/19/92
;;
;; Usage: This is setup specifically for logging onto Pete Norloff's
;; OS/2 Shareware 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 = "PN2" ;; <<== Change this for your setup
string MyName = "Brady;Flowers" ;; <<== Change this to your name
integer hWatch1
integer hWatch2
program
if !connected
dial(DialerEntry)
endif
if connected
run("Bink2BBS")
if fGotBBS
hWatch1 = watchfor("Press ENTER to continue", "sendbyte(13)")
hWatch2 = watchfor("[Y,n]", "transmit(""n^M"")")
waitfor("What is your name:", 30)
transmit("%s;y;%s^M", myName, Password(""))
waitfor("Select:", 120)
cancelwatch(hWatch1)
cancelwatch(hWatch2)
else
;; Couldn't get thru Binkley for some reason?
hangup(FALSE)
endif
endif
end