|
-
Oct 7th, 2001, 09:42 PM
#1
Thread Starter
Fanatic Member
Trouble organizing code......
Hey, I'm sure this is not the BEST way to do this, but it works for me. I'm a little confused on this code so If anyone could help it would be appreciated. When you doubleclick a file in my listview, it starts a counter that counts down, and plays the file. So what I want to do is this:
play the file until the counter = "00:00"
and if the counter = "00:00" then
go to the next item in the listview (how can I do this?)
then just do a loop, so it keeps going through the playlist, playing the songs.
Do I need to use something like
PHP Code:
Do Until counter ="00:00"
What is the best way to write this code?
Any tips on this are greatly appreciated. Also, now that I've done this whole timer thing, is there a way to get the time from the embedded mediaplayer.ocx control in my program?
-
Oct 7th, 2001, 11:19 PM
#2
PowerPoster
How are you playing your file? Does it have a function to return the time? You can just compare the time it returns to the length of the the file, and when both equal each other, you can use some code like this to go to the next song:
VB Code:
ListView1.ListItems(ListView1.SelectedItem.Index + 1).Selected = True
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|