'K here's mine. I am not typing well because I am in a hurry here's the code for CD Player Pro (really made in Dark Basic Classic)
Rem * Title : Keyboard Entry
Rem * Author : DBS-LB
Rem * Date : October 2001
rem C D P P
rem o i l r
rem m s a o
rem p k y
rem a e
rem c r
rem t
rem ------------------------------
rem By Nick Aldwin
rem ------------------------------
rem *some code from other sources*
rem -SETUP-
rem Setup for no-key-repeat code
dim key(250) : dim oldkey(250)
rem Music track variable set to default of 1
tr=1
rem Hide mouse
hide mouse
rem -CD TRACK LOADING-
ltrack:
cls
rem Ink with blue and make text big for logo
ink rgb(0,0,255),0 : set text size 50
center text 320,20,"CDPP 2.1"
center text 320,80,"Compact Disk Player Pro 2.1"
rem Ink with red and make text normal
ink rgb(255,0,0),0 : set text size 12
center text 320,220,"Make sure there is a CD in your drive and enter a track number."
set cursor 270,240
rem Take user input for track #
input "Track #: ",tr
rem Load track into music #1
load cdmusic tr,1
cls
rem Ink with blue and make text big for logo
ink rgb(0,0,255),0 : set text size 50
center text 320,20,"CDPP 2.1"
center text 320,80,"Compact Disk Player Pro 2.1"
rem Ink with red and make text normal
ink rgb(255,0,0),0 : set text size 12
center text 320,240,"Music loaded. Press any key to continue."
suspend for key
cls
shape=2
rem -MAIN CONTROLLER-
do
rem Ink with blue and make text big for logo
ink rgb(0,0,255),0 : set text size 50
center text 320,20,"CDPP 2.1"
center text 320,80,"Compact Disk Player Pro 2.1"
rem Ink with yellow and make text normal
ink rgb(255,255,0),0 : set text size 12
rem No-key-repeat code
for a = 1 to 250
if key(a) = 1 then oldkey(a) = 1
if keystate(a) = 1 and oldkey(a) = 0 : key(a) = 1 : else : key(a) = 0 : endif
if keystate(a) = 0 then oldkey(a) = 0
next a
rem <P> key code
if key(25)=1
if music paused(1)=1
cls
resume music 1
shape=0
goto done
else
if music playing(1)=1
cls
pause music 1
shape=1
goto done
else
cls
play music 1
shape=0
goto done
endif
endif
done:
endif
rem <S> key code
if key(31)=1
if music playing(1)=1
if music paused(1)=1
cls
resume music 1
stop music 1
shape=2
else
cls
stop music 1
shape=2
endif
endif
endif
rem <L> key code
if key(38)=1
gosub ltrack
endif
rem <X> key code
if key(45)=1
gosub bye
endif
rem <W> key code
if key(17)=1
cls
set window on
endif
rem <F> key code
if key(33)=1
cls
set window off
endif
rem Ink with red
ink rgb(255,0,0),0
rem Tell controls
center text 320,200,"Press <P> to play/pause and <S> to stop."
center text 320,240,"Press <L> to load a new track."
center text 320,280,"Press <X> to quit."
center text 320,320,"Press <W> to turn window mode on and <F> to turn it off."
rem Ink with yellow
ink rgb(255,255,0),0
rem Make shape
select shape
case 0
rem Play
line 10,10,60,30
line 10,60,60,30
line 10,10,10,60
endcase
case 1
rem Pause
box 10,10,30,60
box 40,10,60,60
endcase
case 2
rem Stop
box 10,10,60,60
endcase
case default
rem Default (Stop)
box 10,10,60,60
endcase
endselect
loop
rem -END OF PROGRAM-
rem Delete music
bye:
delete music 1
rem End the program
end
END TRANSMISSION