It's not for mixed CD's/USB's. Just like a DVD is movie only and an Audio CD is music only...I store songs and videos on separate USB drives. Pop in a usb drive with mp3's and it plays the mp3's, plug-in a usb drive with movies and those play, movie files on a CD, music on a dvd, etc... Works with normal CD's and DVD's. A DVD full of MP4 movies will work as well. I've had 3 USB drives in and popped in a CD or DVD and it will prompt for those just like normal(if the prompt is turned on). It keeps track of each drive separately. My intent was making your script work for what I need...I ended up with a much bigger script that doesn't look much like yours (it is still easy on the cpu as most of the script doesn't execute unless a change occurs). I may look at adding some sort of multi-media on the same drive ability, but it won't be for me as I'm happy with the functionality. The latest version doesn't allow multiple instances of the script to be running, process priority via the ini, and the script exits when RoadRunner exits. The script is built for my needs, hopefully someone else may find it useful.
Script not part of the download?
yikes I forgot to add it! You can just decompile it, as it is not password protected..
Originally Posted by chevyn8
Autoit decompiler won't work with the latest version. Only 184.108.40.206 and earlier can be decompiled. Tried it on my own exe a few days ago :) . I can wait, just curious to see the code. Thanks.
Wow, I just tried to decompile here, and got an error. I hope this is something that they fix.
Here is the code from the latest version:
; Written by JohnWPB of the MP3 Car Forums 9/18/07
; This script will monitor your CD/DVD drive
; Looking for a CD or DVD to be inserted and
; will then auto play it inside Road Runner.
; When a CD is inserted, it will save your current
; playlist to a temporary file. When the CD is then
; ejected, it will then reload that playlist and
; contine with the last song playing in the playlist
; MANY thanks to Liquid smoke for the code to return not
; only to the previous playlist when a CD is ejected, but
; will return to the song that was playing in that playlist.
;Open communications with RR
$rr = ObjCreate("RoadRunner.SDK")
; Read the lines from the AutoLaunch.ini
$MyDrive = IniRead("AutoLaunch.ini", "Auto Drive Settings", "CDDrive", "NotFound")
$DVDCOMMAND = IniRead("AutoLaunch.ini", "Auto Drive Settings", "DVDCOMMAND", "NotFound")
$CDCOMMAND = IniRead("AutoLaunch.ini", "Auto Drive Settings", "CDCOMMAND", "NotFound")
$CDCOMMANDSkin= IniRead("AutoLaunch.ini", "Auto Drive Settings", "CDCOMMAND", "NotFound")
$DelayTIme= IniRead("AutoLaunch.ini", "Auto Drive Settings", "DelayTime", "NotFound")
; Lets add the LoadList command to the CDcommand to execute later in the script
$CDCOMMAND = "LoadList;" & $MyDrive & "||" & $CDCOMMAND
If $DelayTIme = 1 then
If $DelayTIme = 2 then
If $DelayTIme = 3 then
$DiskType = DriveGetFileSystem($MyDrive)
If $DiskType = "UDF" And $DiskInserted = "no" Then
;MsgBox(4096, "Drive Status:", "A DVD Was inserted")
$DiskInserted = "yes"
If $DiskType = "CDFS" And $DiskInserted = "no" Then
;MsgBox(4096, "Drive Status:", "An Audio CD Was inserted")
;MsgBox(4096, "Track Number:", $TrackNumber)
$SavePLCommand = "SAVELIST;$SKINPATH$TempPL.M3u"
; Pause for time determined in the ini & give RR time to catch up and save the playlist to disk
$DiskInserted = "yes"
$DriveStatus = DriveStatus($MyDrive)
If $DriveStatus = "NOTREADY" Then
If $TypeDisk="CD" then
;MsgBox(4096, "Drive Status:", "an Audio CD Was Ejected")
$rr.Execute("MUTE||" & $RRWait & "||LOADLIST;$SKINPATH$TempPL.M3u||STOP||SETLIST;" & $TrackNumber)
$TypeDisk = "None"
$DiskInserted = "no"
; Lets see if Road Runner is running
$handle = WinGetHandle("RoadRunner")
; If Road Runner is not running, lets exit this script
If @error Then ExitLoop
is me only or i'm doing something wrong, but if i use fmodrr for player, !!it wont play .cda files!!, i got an error saying file not supported, and if i use winamp, i got some errors during load and eject. can somebody confirm this?
I haven't tested it yet. But, what happens if you insert a dvd media containing only audio files? it will play them on music or dvd skin?
John, the link to the .zip file on your original post appears to be broken, can you or anyone sort me out > ?
Thanks in advance,
yeah same here...or are there any other progs that will do the same?