This program was originally intended
to be run from my other programs that shell to it when correct responses
The purpose is to hopefully provide a reinforcer such as a video file for correct responses. After displaying the video file the program quits and returns to the calling program after ca. 45 seconds. This allows the user to play the file several times. Clicking on the green EXIT sign immediately terminates the program.
I have modified the program such that it can also be run by itself. In this case moving the pointer on a blue square at the upper right brings up a file list box that allows selection of files for viewing.
The program is also plays midi files (MID), wave files (WAV) and displays bitmaps (BMP). It was originally intended for AVI video. However depending on which drivers are installed on your system it can be used for displaying several types of files. If you have Quicktime installed you can use it to display JPG, PIC, MPG, MOV.
It can also be stepped backwards. As can be seen in the screen view the program runs full screen with no menus, minimize buttons to distract or confuse the user. In addition this prevents accidentally starting programs, saving files, etc..
The blue band.
While playing an AVI file if you move the mouse pointer on the blue band it will immediately jump to the corresponding frame and continue playing. This can create some interesting rap type effects that children like to play with. If the video is not playing moving the mouse along the blue band will play the file, frame for frame, forwards or backwards. A frame can be copied to the clipboard and later pasted into another program. Midi and wav files function similarly.
The green band
Two or more sequential frames can be selected for continuous playback - forward only or forward/backward.
Clicking on the arrow button (<----) at the lower left and thereafter moving the mouse on the green band will drag a red band with an arrow into the green band. This band defines the end point. When the video file corresponds to this point it will either play backwards, jump to the start and play or stop. (Depending on the if the loop and reverse options are checked.) Clicking on the arrow button or the red band toggles its color between red or dark blue. When the band is dark blue it stays put. when its red it follows the mouse movements on the green band.
Clicking on the arrow button ---> at the lower right and moving the mouse on the green band will drag a red arrow from the right side into the green band. This band defines the start point.
Clicking on the right-left arrow button or band <---> allows you to move both the start point and end point together while the file is playing.
Backwards playing of sound dose not work very well. Some AVI files can play sound backwards in a sort of jerky way. To do this press the F1 key and a window comes up and you can experiment with the different possibilities.
Individual frames can be placed on the windows clipboard and later pasted into another application.
When the program is run from another
program no file list box is available and the program ends after
ca. 45 seconds. The calling program selects a file at random from the list (C:\VB0EXE\VID.LST) and then starts VID.EXE with the file name. The probability can be manipulated by entering the file name two or more times. For example in the VID.LST file I have included the file 5w.avi occurs twice. Because their is a total of 4 files in the list the probability is 50% that 5w.avi will be played. (Make sure the full path is included or the probability will be Zero!) You can add AVI, WAV and MID files to the list.
The VID.LST file I have included is such:
5w.avi is a morf of 5 spots that morf into the number 5 while the sound track plays the Norwegian word for 5 (fem). racket-k.wav is a short ca. ¼ second sound from a neat musical instrument called a renaissance racket! I use it as my default beep instead of the windows ding sound. sr.mid is a short midi file.
Its intended to run at 800 X 600 64000 colors.
VID.EXE and VID.LST must reside in the directory C:\VB0EXE.
Download VID.ZIP (34 kB Dated Dec 21. 1997)
Several programs require the system files GAUGE.VBX, SPIN.VBX, MCI.VBX and THREED.VBX in your WINDOWS\SYSTEM directory. If you donít already have them you can get them here. Download VBFILES.ZIP 62.5 kb.