home *** CD-ROM | disk | FTP | other *** search
- |
- | ST-Talk Pro AutoPilot script for Genie Downloading mod 3/2/88 jsd
- |_____________________________________________________________________________
- Clear | Erase variables
- Trace off | Trace mode off
- |
- dlfiles="" | Init String type variable to hold file names
- Array dlfiles 10 | Declare storage for upto 10 file names
- Array dlnums 10 | Declare storage for upto 10 file numbers
- |
- dlmax=1 | Set this for the number of files to DL
- | Fill in the file names and numbers.......
- |___________________________|_________________________________________________
- dlfiles[1]= "f:test"
- dlnums[1] = 390
- dlfiles[2]=""
- dlnums[2] =0
- dlfiles[3]=""
- dlnums[3] =0
- dlfiles[4]=""
- dlnums[4] =0
- dlfiles[5]=""
- dlnums[5] =0
- dlfiles[6]=""
- dlnums[6] =0
- dlfiles[7]=""
- dlnums[7] =0
- dlfiles[8]=""
- dlnums[8] =0
- dlfiles[9]=""
- dlnums[9] =0
- dlfiles[10]=""
- dlnums[10] =0
-
- |Log on and get to Atari ST RT download area. Run from dialer after dial.
- |____________________________________________________________________________
- IF connect | Double check carrier detect
- Capture 2 | turn capture on to buffer 2
- Print "~Logging on to Genie...~~" | Show what we're doing
- IF not Wait 30 "U#=" | Wait for logon prompt
- GOTO logerror | error, abort!
- ENDIF | Put your account/password here...
- Printm "^Rxxx11111,password,476;6~" | Send user id and go to ST RT & DL
- ELSE |
- GOTO logerror | no carrier detect, abort.
- ENDIF | continue with DL after function def
-
- |============================================================================
- |Define User-function DLone |
- |___________________________|
- @DLone | Create a user function to download one file
- | Inputs fileanem from dlfile and number from dlnum
- error=true | Assume there was an error
- IF not Wait 90 "file?" | Wait for file? prompt
- GOTO DLerror | nope, error!
- ENDIF |
- Printm dlnum | Send the file number
- Printm "~" | Send a return
- IF not Wait 90 "<Q>uit" | Wait for Quit etc prompt
- GOTO DLerror | nope, error!
- ENDIF |
- Printm "D~" | Send D for Download and a return
- IF not Wait 90 "receive"| Wait for receive prompt
- GOTO DLerror | nope, error!
- ENDIF |
- Flush 30 |
- Print "~~Downloading #" | Display status...
- Print dlnum |
- Print ", " |
- Print dlfile |
- Print "... " |
- Download 2 dlfile | Do the download of the filename in dlfile
- IF not Wait 90 ">?" | Wait for ? prompt
- GOTO DLerror | nope, error!
- ENDIF |
- Print "Done.~" | Display status
- Printm "~" | Send a return
- IF not Wait 90 ")?" | Wait for ? prompt
- GOTO DLerror | nope, error!
- ENDIF |
- Printm "Y~" | Send Y and a return, ready for next file
- error=false | No error if we made it this far
- _DLerror | Exit here for errors
- @endsub |End of DLone
- |___________________________|_________________________________________________
-
- |
- | Main loop to download the array of files
- |_____________________________________________________________________________
-
- count=1 | Start at first file
- _DLloop | Start downloading file list...
- IF count<=dlmax | Are there more files?
- dlnum = dlnums[count] | Yes, get the file's number
- dlfile = dlfiles[count] | and get its name
- DLone | download the file
- IF error=true | Was there an error?
- GOTO bigerror | Yes, end!
- ENDIF | No...
- count = count + 1 | Increment the file count
- GOTO DLloop | Do another file.
- ENDIF |
- | End of main Loop
- Wait 90 "file?" | Wait for file? prompt
- Printm "~" | No more files.
- Print "Done Downloading!~" | Hey, we're done!
- Capture 0 | turn capture off
- IF not Wait 90 "<H>elp?" | Wait for prompt
- GOTO bigerror | nope, error!
- ENDIF |
- QUIT | and quit (or do some more smart stuff)
- |___________________________|
-
-
- _bigerror | Go here upon Control errors!
- Print "Error!~" | Say this was bad.
- Capture off
- QUIT
-
- _logerror | Go here upon bad log on!
- Print "Error logging on!~" | Show status for this.
- Capture off
- QUIT
-