home *** CD-ROM | disk | FTP | other *** search
- ' Screen Saver DA by Derrick A. Hall, for HiSoft Basic
- ' Alert source code generated from ALERT MAKER
- ' Public Domain release on the 8-17-89
- ' Time 4:00am( yes, I'm a nite walker)
- '
- '
- rem $option j20
- Library "gemacc","gemvdi","xbios"
- defint a-z
- Const AC_OPEN=40
- '
- id=peekw(peekl(gb+4)+4)
- mpos=fnmenu_register(id," Screen Saver ")
- '
- Dim message(7)
- Dim shared junk,junk2,junk3, inv(10),outv(57),i,rgb(16)
- DIM SHARED t1$,t2$,t3$,t4$,t5$,junk
- '
- save_colors
- repeat main
- evnt_mesag varptr(message(0))
- '
- If message(0)=AC_OPEN then call do_screen_saver
- '
- end repeat main
- '
- Sub do_screen_saver
- '
- Let t1$=" Simple Screen Saver |"
- Let t2$=" v1.0 |"
- Let t3$=" By Derrick A. Hall |"
- Let t4$="Complied in HiSoft BASIC Pro |"
- Let t5$="⇦⇦⇦⇦⇦⇦⇦⇦⇦⇦⇦⇦⇦⇦⇦⇦⇨⇨⇨⇨⇨⇨⇨⇨⇨⇨⇨⇨|"
- junk=FNform_alert(1 ,"[1]["+t1$+t2$+t3$+t4$+t5$+"][ BLANK | INFO |No BLANK]")
- '
- If junk=1 Then
- screen_off
- junk=FNform_alert(1,"[0][ Dummy ][ ON ]")
- screen_on
- End If
- If junk=2 Then
- Let t1$=" This Screen Saver works best |"
- Let t2$=" in COLOR, for the entire |"
- Let t3$="screen will blank out. In MONO|"
- Let t4$=" you get an inverted screen. |"
- Let t5$=" Atari OS not me, sorry. |"
- junk=FNform_alert(1 ,"[1]["+t1$+t2$+t3$+t4$+t5$+"][ BLANK | MORE |No BLANK]")
- '
- If junk=1 Then
- screen_off
- junk=FNform_alert(1,"[0][ Dummy ][ ON ]")
- screen_on
- End If
- If junk=2 Then
- Let t1$=" I dedicated this program to |"
- Let t2$=" Michael McDevitt. |"
- Let t3$=" Will call after the summer. |"
- Let t4$=" I still want that T-shirt. |"
- Let t5$=" hell ya! |"
- junk=FNform_alert(1 ,"[1]["+t1$+t2$+t3$+t4$+t5$+"][ BLANK |La Beija|No BLANK]")
- If junk=1 Then
- screen_off
- junk=FNform_alert(1,"[0][ Dummy ][ ON ]")
- screen_on
- End If
- End If
- End If
- End Sub
- '
- Sub screen_off
- for i=0 to 16
- junk3=FNsetcolor(i,0) 'blank off screen
- next i
- End Sub
- '
- SUB screen_on
- for i=0 to 16
- junk3=FNsetcolor(i,rgb(i)) 'read back stored array
- next i
- End sub
- '
- SUB save_colors
- for i=0 to 16
- rgb(i)=FNsetcolor(i,-1) 'save colors into array
- next i
- END sub
-
-
-
-
-