home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1992-03-07 | 1.5 KB | 80 lines |
- Screen Open 0,640,256,8,Hires
-
- ST:
- Home
- Flash Off : Curs Off : Cls 0
- Colour 1,$F13
- Paper 0 : Pen 1
- Wait 50
- Inverse On : Centre "BELL Picture Compactor V1.0" : Inverse Off
- Pen 5
- Print : Print : Print : Centre "Click right mouse button to crunch ALL pics on a BELL set up disk"
- Print : Print : Centre "Click left mouse button to crunch manually"
- Print : Print : Centre "OR press ESCAPE KEY to quit."
- Do
- If Mouse Key=1 Then Goto MANUAL
- If Mouse Key=2 Then Goto ALL : Rem right mouse button
- If Key State(69) Then Stop
- Loop
-
- MANUAL:
-
- F$=Fsel$("","SELECT PICTURE TO CRUNCH")
- If F$="" Then Goto ST
- Load Iff F$,0
- Spack 0 To 10
- Wait 50
- Screen Open 0,640,256,8,Hires
- Flash Off : Curs Off : Cls 0
- Paper 0 : Home : Print "Saving crunched pic ";F$;" ...."
- Save F$,10
- Wait 50
- Erase 10
- Goto ST
-
- ALL:
- If Not Exist("Df0:pictures/")
- Cls 0
- Print "ERROR: NO Pictures/ drawer found, not a BELL set-up disk."
- Wait 100
- Goto ST
- End If
- Dir$="DF0:"
- OLDF=Dfree
- Dir$="df0:pictures/"
-
- COUNT=0
- F$=Dir First$("**")
- While F$<>""
- Inc COUNT
- F$=Dir Next$
- Wend
-
- For A=1 To COUNT
- F$="pic"+Str$(A)-" "
- Cls 0 : Home : Print F$
- Load Iff F$,0
- Wait 50
- Spack 0 To 11
- Save F$,11
- Wait 50
- Erase 11
- Next A
-
- Screen Open 0,640,256,8,Hires
- Flash Off : Curs Off
- Cls 0 : Paper 5 : Print "ALL PICS CRUNCHED"
- Dir$="DF0:"
- Print : Print
- Paper 0
- Print "Previous disk space free was ";OLDF
- Print "Disk space free now= ";Dfree
- SAV=Dfree-OLDF
- Print "Saving of ";SAV;" bytes."
-
- Paper 4 : Print : Print "CLICK MOUSE KEY TO CONTINUE"
-
- While Mouse Key=0 : Wend
-
-
- Goto ST