The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > Road Runner > RR Plugins

Reply
 
Thread Tools Search this Thread Display Modes
Old 05-17-2006, 04:17 PM   #1
Constant Bitrate
 
Sweet05's Avatar
 
Join Date: Apr 2006
Posts: 186
My Photos: (0)
A small app for rr to monitor cd drive and tell rr if it contains music

Edit Update: Uploaded another zip. There are were still problems being reported eith the SysTray.ocx so I included a installer for the complete package to help simplify things.

Edit Update: Uploaded a new zip file with the installer for the systray.ocx that the CD Drive Monitor program needs

Hello all, I have created a small aplication that monitores the cd drive on your system and then sends any command you choose to RR when that drive contains music.

I created this application so that if I put a music cd in my drive the skin would automatically switch to a cd player screen and using b8bboi's cfx bat files load that cd into the play list. It works very well. The zip file includes the binary and the source code.

I would like to thank guino for the work on the rr sdk which got me pointed in the right direction and b8bboi for the use of his bat files.
CDMonitor.zip

Last edited by Sweet05; 05-25-2006 at 04:26 PM.
Sweet05 is offline   Reply With Quote
Sponsored Links
Old 05-17-2006, 04:26 PM   #2
FLAC
 
mauri's Avatar
 
Join Date: Jan 2004
Posts: 999
My Photos: (0)
Good idea!
Send all file to Guino, for implement this in RR update version.


Mauri
mauri is offline   Reply With Quote
Old 05-17-2006, 04:54 PM   #3
Constant Bitrate
 
Sweet05's Avatar
 
Join Date: Apr 2006
Posts: 186
My Photos: (0)
Well, I told guino if he wanted a copy just ask and he didn't ask. I don't want to bother him he is a busy man already.
Sweet05 is offline   Reply With Quote
Old 05-17-2006, 05:09 PM   #4
Jesus Freak
antimatter's CarPC Specs
 
antimatter's Avatar
 
Join Date: Jan 2004
Location: California
Vehicle: 2006 Mazda Mazdaspeed 6 GT
Posts: 4,277
My Photos: (0)
this is a cool idea. I love Road Runner but it needs some better support for the basics.

For people that Watch DVD's and listen to CD's Road runner is a bit clunky. It would be nice to have better CD support. Its not crucial but it would be nice. I remember guino saying his plan was to write a CD playing and ripping plugin but he just hasent gotten around
__________________
-Jesus- King of Kings Lord of Lords
antimatter is offline   Reply With Quote
Old 05-17-2006, 05:15 PM   #5
RoadRunner Mastermind
guino's CarPC Specs
 
guino's Avatar
 
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Vehicle: 04/Mazda/RX-8
Posts: 8,030
My Photos: (5)
Quote: Originally Posted by Sweet05
Well, I told guino if he wanted a copy just ask and he didn't ask. I don't want to bother him he is a busy man already.

I do want a copy.. I just can't keep up with everything going on here.. I'm just not all seeing... post it on my ftp site (link on skins list thread) or email it to me (email is on my profile), and I'll put it up on RR's site for whoever wishes to use it. If you provide me the sources I might even make some improvements (if I see any needs for such).
__________________
Road Runner,RR's Myspace

"Being happy is not about having what you want, it's about wanting what you have."
"The best things in life are always free - but that doesn't mean money can't buy you good things."
guino is offline   Reply With Quote
Old 05-17-2006, 05:48 PM   #6
Constant Bitrate
 
Sweet05's Avatar
 
Join Date: Apr 2006
Posts: 186
My Photos: (0)
@guino the zip file at the top of the thread has the binary and source included but I will be shooting you am e-mail to make sure you get it.

The code that monitors the drive is acctually very simple and one improvement I see already for v1.1 is the ability to search sub folders so you don't have to have at least one music file in the root directory.
Sweet05 is offline   Reply With Quote
Old 05-22-2006, 02:07 PM   #7
Constant Bitrate
 
Sweet05's Avatar
 
Join Date: Apr 2006
Posts: 186
My Photos: (0)
Well?? Anyone using this yet? Comments? Questions?
Sweet05 is offline   Reply With Quote
Old 05-24-2006, 07:04 AM   #8
Low Bitrate
deanthom's CarPC Specs
 
deanthom's Avatar
 
Join Date: Apr 2006
Location: Australia
Vehicle: 1990 Honda Integra
Posts: 84
My Photos: (0)
SysTray.ocx

Sweet05,

I'd love to try this out, sounds exactly what I have been looking for! However, I get an error saying I need SysTray.ocx, where can I get that? I downloaded one, but I think it's a different version to what you used.

Keep up the good work!
Dean
deanthom is offline   Reply With Quote
Old 05-24-2006, 10:52 AM   #9
Low Bitrate
deanthom's CarPC Specs
 
deanthom's Avatar
 
Join Date: Apr 2006
Location: Australia
Vehicle: 1990 Honda Integra
Posts: 84
My Photos: (0)
I just found an even easier way to make this work, without needing any extra software running. See my thread here:
http://www.mp3car.com/vbulletin/road-runner/77315-heres-easy-way-autoplay-audio-cds-dvds-whatever-road-runner.html
deanthom is offline   Reply With Quote
Old 05-24-2006, 04:19 PM   #10
Constant Bitrate
 
Sweet05's Avatar
 
Join Date: Apr 2006
Posts: 186
My Photos: (0)
Thanks for the heads up on the ocx I am going to package it in the zip file right now. I am also using b8bboi's bat files. I edited mine a bit to allow me to load 2 or 3 cd's in a row with out loosing the saved playlist from the cd's saving over top of it.
Sweet05 is offline   Reply With Quote
Sponsored Links
Old 05-24-2006, 04:34 PM   #11
Constant Bitrate
 
Sweet05's Avatar
 
Join Date: Apr 2006
Posts: 186
My Photos: (0)
New zip uploaded with the systray.ocx installer included
Sweet05 is offline   Reply With Quote
Old 05-25-2006, 04:28 PM   #12
Constant Bitrate
 
Sweet05's Avatar
 
Join Date: Apr 2006
Posts: 186
My Photos: (0)
Uploaded another zip which contains an installer for the entire package. This should greatly simplify things.
Sweet05 is offline   Reply With Quote
Old 05-25-2006, 10:08 PM   #13
Low Bitrate
deanthom's CarPC Specs
 
deanthom's Avatar
 
Join Date: Apr 2006
Location: Australia
Vehicle: 1990 Honda Integra
Posts: 84
My Photos: (0)
Nice app Sweet05, I would be using it now had I not discovered the autoplay hack. Very useful for people not running the windows explorer shell though!

Also, you must use the eject button on your CD drive? Or have multiple CD drives? Otherwise, why do you need to have multiple levels of playlist restore? The way mine works, you put in a cd and it plays it, you eject (using a button on the skin, no eject button on CD drive) and it restores the playlist back. Put in another CD and the same happens again. The only thing I don't like is that it doesn't remember what song you were up to in the playlist, it just starts it from the beginning when it is restored.

Last edited by deanthom; 05-25-2006 at 10:16 PM.
deanthom is offline   Reply With Quote
Old 05-25-2006, 10:40 PM   #14
FLAC
 
Join Date: May 2005
Location: Vienna, VA
Posts: 1,382
My Photos: (0)
Quote:
The only thing I don't like is that it doesn't remember what song you were up to in the playlist, it just starts it from the beginning when it is restored.

My latest ExecTBL.ini code has that ability. Here's the code.
Code:
"LOADCD","SETVARBYCODE;SAVEDTRACKNUM;TRACKNUMBER||SETVARBYCODE;SAVEDTRACKPOS;CURRENTTRACKTIME||RUNQW;C:\Program Files\Road Runner\CFX_Tools\BATs\LoadCD.bat" "E||LOADLIST;C:\Program Files\Winamp\winamp.m3u;Audio CD||!BROWSE" "LOADCD_CANCEL","SETVARBYCODE;SAVEDTRACKNUM;TRACKNUMBER||SETVARBYCODE;SAVEDTRACKPOS;CURRENTTRACKTIME||RUNQW;C:\Program Files\Road Runner\CFX_Tools\BATs\LoadCD.bat" "E||LOADLIST;C:\Program Files\Winamp\winamp.m3u;Audio CD||!BROWSE||CANCEL" "UNLOADCD","RUNQW;C:\Program Files\Road Runner\CFX_Tools\BATs\UnloadCD.bat||LOADLIST;C:\Program Files\Winamp\winamp.m3u||SETLIST;$SAVEDTRACKNUM$||PLAY||SEEKTO;$SAVEDTRACKPOS$" "UNLOADCD_CANCEL","RUNQW;C:\Program Files\Road Runner\CFX_Tools\BATs\UnloadCD.bat||LOADLIST;C:\Program Files\Winamp\winamp.m3u||CANCEL||SETLIST;$SAVEDTRACKNUM$||PLAY||SEEKTO;$SAVEDTRACKPOS$"

Also, if you have the latest LoadCD.bat, it can load all music files, not just audio tracks.
LoadCD.bat
__________________
iGMon - Integration between iGuidance and Road Runner
CFX - Skin for Road Runner

Last edited by b8bboi; 05-25-2006 at 11:05 PM.
b8bboi is offline   Reply With Quote
Old 05-26-2006, 11:12 PM   #15
Constant Bitrate
 
Sweet05's Avatar
 
Join Date: Apr 2006
Posts: 186
My Photos: (0)
I got it. Thanks for all your work getting me started b8bboi but here is the code I came up with to load cd's while remembering the postion of the playlist no matter how many cd's you load.

Code:
"LOADCD","RUNQW;C:\Program Files\Road Runner\CFX_Tools\BATs\LoadCD.bat|E||CLEARLIST||LOADLIST;C:\Program Files\Winamp\cd.m3u;Audio CD "LOADCDSAVEPOS","SETVAR;SAVED;1||SETVARBYCODE;SAVEDTRACKNUM;TRACKNUMBER||SETVARBYCODE;SAVEDTRACKPOS;CURRENTTRACKTIME||RUNQW;C:\Program Files\Road Runner\CFX_Tools\BATs\LoadCD.bat|E||CLEARLIST||LOADLIST;C:\Program Files\Winamp\cd.m3u;Audio CD "UNLOADCD","SETVAR;SAVED;0||CLEARLIST||RUNQW;C:\Program Files\Road Runner\CFX_Tools\BATs\UnloadCD.bat||LOADLIST;C:\Program Files\Winamp\winamp.m3u" "UNLOADCDSAVEDPOS","AUDIO||STOP||LIST||SELPL||CLEARLIST||SETVAR;SAVED;0||RUNQW;C:\Program Files\Road Runner\CFX_Tools\BATs\UnloadCD.bat||LOADLIST;C:\Program Files\Winamp\winamp.m3u||STOP||SETLIST;$SAVEDTRACKNUM$||PLAY||EXIT||SEEKTO;$SAVEDTRACKPOS$" "CD","LOAD;cd_player.skin||BYVAR;SAVED;LOADCDSAVEPOS<<LOADCD"

SPECIAL NOTE: The first two commands do not end in a quotation mark and this is on purpose for some reason RR adds a quote to the label AUDIO CD if you put the quote in. Go figure??

You will also have to edit your LOADCD bat file to include a check to see if a file already exists. The whole bat file is below.

Code:
@echo off set v_param=%* REM echo %v_param% if exist "D:\Program Files\Winamp\_unloadcd_winamp.m3u" goto filefound copy "D:\Program Files\Winamp\winamp.m3u" "D:\Program Files\Winamp\_unloadcd_winamp.m3u" /Y :filefound dir %v_param%:\*.cda /s /b > "C:\Program Files\Winamp\cd.m3u" dir %v_param%:\*.mp3 /s /b >> "C:\Program Files\Winamp\cd.m3u" dir %v_param%:\*.wma /s /b >> "C:\Program Files\Winamp\cd.m3u" dir %v_param%:\*.wav /s /b >> "C:\Program Files\Winamp\cd.m3u" dir %v_param%:\*.ra /s /b >> "C:\Program Files\Winamp\cd.m3u" dir %v_param%:\*.ram /s /b >> "C:\Program Files\Winamp\cd.m3u" dir %v_param%:\*.mid /s /b >> "C:\Program Files\Winamp\cd.m3u" dir %v_param%:\*.ape /s /b >> "D:\Program Files\Winamp\cd.m3u"

Let me elaborate on the commands. The "CD" command loads the cd_player screen I made. If you do not have a seperate screen in your skin for cd's simply remove the "LOAD;cd_player.skin" from the command. b8bboi's CFX skin uses a "LOADCD_CANCEL" command which is simply the above commands with "||CANCEL" at the end. I would suggest coding the commands a bit differently. For instance in b8bboi's CFX skin the menu that loads cd's uses "LOADCD_CANCEL" to load CD's you should change this to "CANCEL||CD" the command to unload the cd is "UNLOADCD_CANCEL" this should probably be changed to "CANCEL||UNLOADCDSAVEDPOS" the addition of the "CANCEL" command closes the menu CFX uses before exicuting the commands.

If you do have a cd player screen in your skin to exit the screen you need to enter the command "UNLOADCDSAVEDPOS||'SCREEN'" where 'SCREEN' is the name of the screen you are going to. (i.e. "UNLOADCDSAVEDPOS||MAIN").

Some of this is very complicated and I hope I explained it well enough please pm me if you have any questions.

Last edited by Sweet05; 05-26-2006 at 11:42 PM.
Sweet05 is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT -5. The time now is 04:59 AM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics