OK, so I tried figuring out my self and made my first REAL program in DarkBASIC Pro.
Here is the code:
REM Project: Image Viewer
REM Created: 8/06/2008 2:48:06 p.m.
REM
REM ***** Main Source File *****
REM
set text font "Arial" : set text size 20
center text 150,10,"Push any key to scroll through images"
center text 170,25,"These screenshots were taken by members of the TGC Forums"
wait key
if escapekey()=1 then end
Load Image "C:\Documents and Settings\hn\My Documents\My Pictures\visual_g_s Pics\1.jpg", 1
for t=1 to 300 step 3
paste image 1,300-t,300-t : sleep 1
next t
wait key
Load image "C:\Documents and Settings\hn\My Documents\My Pictures\visual_g_s Pics\2.jpg", 2
for t=1 to 300 step 3
paste image 2,300-t,300-t : sleep 1
next t
wait key
Load Image "C:\Documents and Settings\hn\My Documents\My Pictures\visual_g_s Pics\3.jpg", 3
for t=1 to 300 step 3
paste image 3,300-t,300-t : sleep 1
next t
wait key
Load Image "C:\Documents and Settings\hn\My Documents\My Pictures\visual_g_s Pics\4.jpg", 4
for t=1 to 300 step 3
paste image 4,300-t,300-t : sleep 1
next t
wait key
Load Image "C:\Documents and Settings\hn\My Documents\My Pictures\visual_g_s Pics\6.jpg", 6
for t=1 to 300 step 3
paste image 6,300-t,300-t : sleep 1
next t
wait key
Load Image "C:\Documents and Settings\hn\My Documents\My Pictures\visual_g_s Pics\7.jpg", 7
for t=1 to 300 step 3
paste image 7,300-t,300-t : sleep 1
next t
wait key
Load Image "C:\Documents and Settings\hn\My Documents\My Pictures\visual_g_s Pics\8.jpg", 8
for t=1 to 300 step 3
paste image 8,300-t,300-t : sleep 1
next t
wait key
Load Image "C:\Documents and Settings\hn\My Documents\My Pictures\visual_g_s Pics\9.jpg", 9
for t=1 to 300 step 3
paste image 9,300-t,300-t : sleep 1
next t
wait key
Load Image "C:\Documents and Settings\hn\My Documents\My Pictures\visual_g_s Pics\10.jpg", 10
for t=1 to 300 step 3
paste image 10,300-t,300-t : sleep 1
next t
wait key
Load Image "C:\Documents and Settings\hn\My Documents\My Pictures\visual_g_s Pics\11.jpg", 11
for t=1 to 300 step 3
paste image 11,300-t,300-t : sleep 1
next t
wait key
Load Image "C:\Documents and Settings\hn\My Documents\My Pictures\visual_g_s Pics\12.jpg", 12
for t=1 to 300 step 3
paste image 12,300-t,300-t : sleep 1
next t
wait key
Load Image "C:\Documents and Settings\hn\My Documents\My Pictures\visual_g_s Pics\13.jpg", 13
for t=1 to 300 step 3
paste image 13,300-t,300-t : sleep 1
next t
wait key
Load Image "C:\Documents and Settings\hn\My Documents\My Pictures\visual_g_s Pics\14.jpg", 14
for t=1 to 300 step 3
paste image 14,300-t,300-t : sleep 1
next t
wait key
Load Image "C:\Documents and Settings\hn\My Documents\My Pictures\visual_g_s Pics\15.jpg", 15
for t=1 to 300 step 3
paste image 15,300-t,300-t : sleep 1
next t
wait key
Load Image "C:\Documents and Settings\hn\My Documents\My Pictures\visual_g_s Pics\16.jpg", 16
for t=1 to 300 step 3
paste image 16,300-t,300-t : sleep 1
next t
wait key
Load Image "C:\Documents and Settings\hn\My Documents\My Pictures\visual_g_s Pics\17.jpg", 17
for t=1 to 300 step 3
paste image 17,300-t,300-t : sleep 1
next t
wait key
Load Image "C:\Documents and Settings\hn\My Documents\My Pictures\visual_g_s Pics\18.jpg", 18
for t=1 to 300 step 3
paste image 18,300-t,300-t : sleep 1
next t
wait key
Load Image "C:\Documents and Settings\hn\My Documents\My Pictures\visual_g_s Pics\19.jpg", 19
for t=1 to 300 step 3
paste image 19,300-t,300-t : sleep 1
next t
wait key
Load Image "C:\Documents and Settings\hn\My Documents\My Pictures\visual_g_s Pics\20.jpg", 20
for t=1 to 300 step 3
paste image 20,300-t,300-t : sleep 1
next t
wait key
Load Image "C:\Documents and Settings\hn\My Documents\My Pictures\visual_g_s Pics\21.jpg", 21
for t=1 to 300 step 3
paste image 21,300-t,300-t : sleep 1
next t
wait key
Load Image "C:\Documents and Settings\hn\My Documents\My Pictures\visual_g_s Pics\22.jpg", 22
for t=1 to 300 step 3
paste image 22,300-t,300-t : sleep 1
next t
wait key
Load Image "C:\Documents and Settings\hn\My Documents\My Pictures\visual_g_s Pics\23.jpg", 23
for t=1 to 300 step 3
paste image 23,300-t,300-t : sleep 1
next t
wait key
Load Image "C:\Documents and Settings\hn\My Documents\My Pictures\visual_g_s Pics\24.jpg", 24
for t=1 to 300 step 3
paste image 24,300-t,300-t : sleep 1
next t
wait key
Load Image "C:\Documents and Settings\hn\My Documents\My Pictures\visual_g_s Pics\25.jpg", 25
for t=1 to 300 step 3
paste image 25,300-t,300-t : sleep 1
next t
wait key
Load Image "C:\Documents and Settings\hn\My Documents\My Pictures\visual_g_s Pics\26.jpg", 26
for t=1 to 300 step 3
paste image 26,300-t,300-t : sleep 1
next t
wait key
end
Long and boring...yuuup, at least I got a decent image viewer.
Anyway, one problem. Whenever I try to end the program. Its scrolls through all the images semi fast and THEN closes...
How can I fix this to make it so it closes straight away.
I tried coding a
from 1, right down to 26, but it keeps getting errors. Anyone help?
Visual Game Studio Express Lead Programmer.