In this example of a script that displays three slides (files slide1.sld, slide2.sld, and slide3.sld), the time it takes to access the disk drive and load the next slide into memory overlaps with the viewing time for the current slide.
The first line begins the slide show and loads slide1.
The asterisk (*) preceding the slide name on the second line preloads slide2.
The third line specifies a delay of 2000 milliseconds to allow the audience to view slide1.
The fourth, fifth, and sixth lines display slide2, preload slide3, and specify a delay for viewing slide2.
The seventh and eighth lines display slide3 and specify a delay for viewing slide3.
The script may contain comments, as follows:
; Begin slide show, load SLIDE1 VSLIDE SLIDE1 ; Preload SLIDE2 VSLIDE *SLIDE2 ; Let audience view SLIDE1 DELAY 2000 ; Display SLIDE2 VSLIDE ; Preload SLIDE3 VSLIDE *SLIDE3 ; Let audience view SLIDE2 DELAY 2000 ; Display SLIDE3 VSLIDE ; Let audience view SLIDE3 DELAY 3000 ; Cycle RSCRIPT