new question, how would you take the name of a file.
start:
cls
sync rate 25:do:sync:cls:Box 0,0,700,15,RGB(0,255,255),RGB(0,255,255),RGB(0,255,255),RGB(0,255,255):ink RGB(255,0,0),0:Set cursor 275,0:Print "Music Player":set cursor 0,36:Print "Press 1 for file selector":set cursor 0,48:Print "Press 2 to play music"
box 300,100,700,700,RGB(255,255,255),RGB(255,255,255),RGB(255,255,255),RGB(255,255,255):set cursor 450,100:Print "Music"
if keystate(2)
goto file:
endif
loop
file:
do:sync:sync rate 10
cls
set cursor 0,0:dir
box x1,y1,x2+100,y2+12,RGB(128,255,255),RGB(128,255,255),RGB(128,255,255),RGB(128,255,255)
if keystate(4)
goto start:
endif
if downkey()=1:inc y1,15:inc y2,15:endif:if upkey()=1:dec y1,15:dec y2,15:endif
if returnkey()=1 and y1=84::endif
loop
you see, when you take hightlight a file and press enter I want it to get the name of that file so I can bring it back to the main screen.
Mysteries Surround You