home *** CD-ROM | disk | FTP | other *** search
- ; GHOST BBS 3.00 log on script
- ; Copyright (C) 1993 Gregg Hommel All rights reserved
-
- ; nothing fancy, just logs a user on to GHOST BBS 3.00. If the "- More [S
- ; to stop] -" prompt appears, the user must respond, depending on
- ; whether he wants to read the NEWS file or not. When you get to the
- ; main menu of GHOST BBS or if there is new mail, the script will stop.
-
- ; to use this script, create a dialing directory entry for the GHOST
- ; BBS you wish to call, and put your GHOST name and password in the
- ; appropriate fields of the dialing directory entry. This script will
- ; pick them up from there. Replace the #DEFINE statments below with the
- ; response you want to make for the language and/or ANSI prompts, and
- ; compile this script.
-
- integer watchfor
- string prompt_str
-
- #DEFINE LANGRESP "^M"
- #DEFINE ANSIRESP "Y^M"
-
- proc main
-
- when target 0 "?" call handle_it
- when target 1 "- More" call stop_here
-
- watchfor = 1
- while watchfor
- endwhile
-
- exit
-
- endproc
-
- proc handle_it
- termgets $ROW 0 prompt_str $COL
-
- if strfind prompt_str "[Enter]=no change"
- transmit LANGRESP
- elseif strfind prompt_str "ANSI"
- transmit ANSIRESP
- elseif strfind prompt_str "FIRST"
- transmit $USERID
- transmit "^M"
- elseif strfind prompt_str "Password"
- transmit $PASSWORD
- transmit "^M"
- elseif strfind prompt_str "it now"
- watchfor = 0
- elseif strfind prompt_str "Command"
- watchfor = 0
- endif
-
- endproc
-
- proc stop_here
- watchfor = 0
- endproc
-