Thread: Play Mpg/WMV/etc. until completed, then close .exe -- A bit of help needed por favor

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    May 2009
    Location
    Houston, TX
    Posts
    3

    Play Mpg/WMV/etc. until completed, then close .exe -- A bit of help needed por favor

    I'm writing a program called the Random Chronological Audio/Video Selection Device. What it will do is select files from certain folders in My Documents at random and play them on WMP, just like WMP will do if you set it to random; but on top of that I want to have the files selected also according to the time of the day, so that way I can wake up to Hey Arnold at 7am, be listening to Red Hot Chili Peppers at 12pm, and fall asleep to soothing rain drop music at 9pm. The program plays tracks all day one after another so there isn't a moment in which there isn't some sound coming out of my computer.

    So far I've gotten the program to select random files from any destination and play them continuously, but I have to close WMP manually before the program continues on to the next track. How can I tell my program to close WMP after the track is completed, or how can the next track be selected without having to close WMP? Is there a way to do this just with C or do I have to use some sort of API?

    Thanks in advance
    Last edited by Aeroflot; 05-24-2009 at 05:45 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Gui Class With Tic Tac Toe
    By xxYukoxx in forum C++ Programming
    Replies: 1
    Last Post: 06-01-2003, 04:28 PM
  2. Nibbles (DirectX) play my first completed game's Upgrade!
    By Jeremy G in forum Game Programming
    Replies: 3
    Last Post: 01-25-2003, 07:37 PM
  3. Ghost in the CD Drive
    By Natase in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 10-12-2001, 05:38 PM