home *** CD-ROM | disk | FTP | other *** search
- | Sample AutoPilot script for logging onto Compuserve with St-talk Pro
- |___________________________________________________________________________
- clear |
- trace off |
- prompt1="User ID: " | the prompt for account number
- prompt2="Password: " | the prompt for password
- account="70000,000~" | put your account number here
- password="pass-word~" | dummy password
- |
- termtype 2 |
- |
- IF connect | see if connected
- Print "Logging on at " |
- Print gettime |
- Print "~" |
- Flush 120 |
- Printm "^C" |
- ok=Wait 10 prompt1 | wait for the username prompt
- IF not ok |
- GOTO nologin |
- ENDIF |
- Printm account | send the account number
- ok=Wait 10 prompt2 | wait for the password prompt
- IF not ok |
- GOTO nologin |
- ENDIF |
- Printm password | send the password
- Flush 60 |
- Print "~Connected to Compuserve!~"
- ELSE | tried too many times
- _nologin |
- Print "~Could not connect to Compuserve!~"
- QUIT | quit the program
- ENDIF |
- |
- | continue with other things here
- QUIT
-