Results 1 to 2 of 2

Thread: Trouble organizing code......

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2001
    Location
    Maumelle, AR
    Posts
    624

    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?

  2. #2
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    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:
    1. ListView1.ListItems(ListView1.SelectedItem.Index + 1).Selected = True
    <removed by admin>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width