home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Gold 1
/
The_Golden_ROM_Series_-_Shareware_Gold_Volume_1_Number_11_-_SK_89-301_-_1989.iso
/
LIB022
/
DOWNPCB1.SCR
< prev
next >
Wrap
Text File
|
1988-01-01
|
5KB
|
274 lines
; JTL 9-17-87 23:55pm
GetScr ; save current screen
ClrScr ; clear it
ColorFG 15 ; set colors to white
Box 6 1 75 16 ; draw a box
ColorFG 14 ; set color to yellow
Note
Display ' ****-'
ColorFG 13
ColorBG 1
Display 'Multiple'
ColorFG 14
ColorBG 0
Display '-File DnLoad/Logoff PCBoard V11/12.x Qmodem 3.1-****'
ColorFG 15
Note
Note Instructions:
ColorFG 6
Note Enter a filename to be downloaded after each prompt.
Note Maximum of TWENTY (20) filenames can be entered.
Note A blank <CR> entry starts the transfers.
ColorFG 7
Note An Incorrect Filename is Automatically bypassed.
Note Re-enter the correct Filename on the next File #.
Note
ColorFG 6
String login transfer logend dirpath correct cnt file cownt count cwnt kount
Getlog:
ColorFG 6
Display " Select Auto-Logoff after File Transfers [Y]es or [N]o ? > "
ColorFG 15
Inkey login
DisplayLN '$login'
If '$login' = 'N' nlog ; check answer
If '$login' = 'Y' ylog ;
Goto Getlog
nlog:
Assign logend "done"
Goto home
ylog:
Assign logend "logoff"
home:
ColorFG 6
Display ' Select Download Protocol [X,C,Y,B,I,G,Z <Q>=Quit] > '
ColorFG 15
Inkey 9
DisplayLN '$9'
If '$9' = 'X' selpath
If '$9' = 'C' selpath
If '$9' = 'I' selpath
If '$9' = 'Y' selpath
If '$9' = 'B' selpath
If '$9' = 'G' selpath
If '$9' = 'Z' selpath
If '$9' = 'Q' done
Goto home
selpath:
ColorFG 3
Note Enter Download Drive:\Path DO NOT use a "\" to end the Path.
ColorFG 6
Display ' Drive:\Path > '
ColorFG 15
Get dirpath 45
If '$dirpath' = '' selpath
Chdir $dirpath\
If $Success valid
Chdir $dirpath
If $Success valid
ColorFG 12
DisplayLN " Path is Invalid, Re-enter."
ColorFG 6
Goto selpath
valid:
ColorFG 2
Display " Path is Valid."
ColorFG 6
Display ' Is Path Correct [Y]es or [N]o ? <CR>=Yes > '
ColorFG 15
Inkey correct
Displayln '$correct'
If '$correct' = 'Y' Getone
If '$correct' = 'N' selpath
If '$correct' <> '^M' selpath
Getone:
ColorFG 2
Assign cwnt 0 ;actual file counter
Assign cnt 1 ;visual file counter
Assign count 4 ;xy position counter
Goto gfiles
column:
Gotoxy 28 $count
ColorFG 2
Display ' File # $cnt > '
Incr count
Goto files2
gfiles:
ColorFG 2
Display ' File # $cnt > '
ColorFG 3
files2:
ColorFG 3
Get file 12
If '$file' = '' go
Push '$file'
Incr cnt
Incr cwnt
If '$cnt' = '11' column
If '$cnt' = '12' column
If '$cnt' = '13' column
If '$cnt' = '14' column
If '$cnt' = '15' column
If '$cnt' = '16' column
If '$cnt' = '17' column
If '$cnt' = '18' column
If '$cnt' = '19' column
If '$cnt' = '20' column
If '$cnt' = '21' go
Goto gfiles
go:
ColorFG 7
Gotoxy 1 13
Note
Display ' Online with: '
ColorBG 2
ColorFG 15
Display ' $board '
ColorBG 0
ColorFG 7
Display ' '
ColorBG 4
ColorFG 15
Display '[$9]'
ColorBG 0
ColorFG 7
Displayln ' Protocol '
ColorFG 10
Display ' $cwnt'
ColorFG 7
If '$cwnt' = '1' one
Display ' Files will be Downloaded in Reverse order from: '
Goto skip
one:
Display ' File will be Downloaded '
Goto cont
skip:
ColorBG 2
ColorFG 15
Display ' $cwnt to 1 '
ColorBG 0
ColorFG 7
cont:
ColorBG 0
Displayln ' '
Display ' '
ColorFG 0
ColorBG 6
Display "===================[ Online Text Area Below ]====================="
ColorBG 0
ColorFG 12
Box 1,17,80,$last_row
ClrScr
ColorFG 3
Timeout 60 $logend
Assign cownt $cnt
start:
Send "{" ;maybe two <CRs>
ColorFG 3
Waitfor "Command?"
Send "d{"
Waitfor "none?"
Assign kount $cnt ;file counter in window
next:
Decr kount
When
Pop file
If '$file' = '' $logend
Send "$file $9{"
When "none?" next
When "Aborts Transfer" load
Waitfor "Abort"
load:
Pause 1000
Gotoxy 1 40
Display ' '
ColorBG 2
ColorFG 15
Display 'File # $kount'
ColorBG 0
ColorFG 3
Downld $dirpath\$file $9
Decr cownt
If '$cownt' < "1" $logend
If '$9' = 'z' tones
Goto start
tones:
Beep 400
Beep 600
Beep 800
Goto start
done:
Send "{"
ColorFG 10
Putscr
Exit
logoff:
PutScr
ClrScr
When
When "Command?" logout
Send "{"
Waitfor "Command?"
logout:
Pause 4500
ClrScr
ColorFG 6
Note
Note Auto Logoff was Previously Selected.
ColorFG 15
Note
Note PRESS [Esc] then [Y] to Abort the Logoff.
ColorFG 10
Assign 0 $wherex
Assign 1 $wherey
Assign cnt 9
tmout:
Gotoxy $0 $1
Display ' $cnt Seconds to Auto Logoff.
Pause 200
If '$cnt' = '2' bye
Decr cnt
Goto tmout
bye:
Gotoxy $0 $1
Display ' 1 Second to Auto Logoff.
Pause 200
ColorFG 15
Note Auto-Logoff Completed.
ColorFG 10
Send "g{"
Pause 5000
Hangup
Exit