Page 5 of 6 FirstFirst 123456 LastLast
Results 41 to 50 of 57

Thread: Auto CD / DVD Insert with definable actions

  1. #41
    Variable Bitrate chevyn8's Avatar
    Join Date
    Oct 2006
    Location
    small town nebraska
    Posts
    263
    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.
    CarPC in my 82 Camaro. Dual core atom, M4-ATX, 7 lilliput, bu353 GPS, Reborn skin, punch 40/100ix
    MediaLaunch for RR
    Online Check for RR
    Locker for RR

  2. #42
    Variable Bitrate chevyn8's Avatar
    Join Date
    Oct 2006
    Location
    small town nebraska
    Posts
    263
    Script not part of the download?
    CarPC in my 82 Camaro. Dual core atom, M4-ATX, 7 lilliput, bu353 GPS, Reborn skin, punch 40/100ix
    MediaLaunch for RR
    Online Check for RR
    Locker for RR

  3. #43
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,692
    Blog Entries
    1
    Quote Originally Posted by chevyn8 View Post
    Script not part of the download?
    yikes I forgot to add it! You can just decompile it, as it is not password protected..
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  4. #44
    Variable Bitrate chevyn8's Avatar
    Join Date
    Oct 2006
    Location
    small town nebraska
    Posts
    263
    Autoit decompiler won't work with the latest version. Only 3.2.5.1 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.
    CarPC in my 82 Camaro. Dual core atom, M4-ATX, 7 lilliput, bu353 GPS, Reborn skin, punch 40/100ix
    MediaLaunch for RR
    Online Check for RR
    Locker for RR

  5. #45
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,692
    Blog Entries
    1
    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:

    Code:
    ; 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.
    
    Dim $DiskInserted
    Dim $DiskType
    Dim $DriveStatus
    Dim $TypeDisk
    Dim $DelayTIme
    Dim $AIWait
    Dim $RRWait
    Dim $MyDrive
    Dim $DVDCOMMAND
    Dim $CDCOMMAND
    Dim $CDCOMMANDSkin
    
    
    ;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 
    $RRWait="Wait;1"
    $AIWait =1000
    EndIf
    
    If $DelayTIme = 2 then 
    $RRWait="Wait;1"
    $AIWait =2000
    EndIf
    
    If $DelayTIme = 3 then 
    $RRWait="Wait;3"
    $AIWait =4000
    EndIf
    
    While 1
        $DiskType = DriveGetFileSystem($MyDrive)
    
        If $DiskType = "UDF" And $DiskInserted = "no" Then
    ;MsgBox(4096, "Drive Status:", "A DVD Was inserted")
            $rr.Execute($DVDCOMMAND)
            $rr.Execute ("SETIND;CUSTOM_DVDIN;ON")
            $DiskInserted = "yes"
        EndIf
        
        If $DiskType = "CDFS" And $DiskInserted = "no" Then
    ;MsgBox(4096, "Drive Status:", "An Audio CD Was inserted")
            $TypeDisk="CD"
            ;$rr.Execute("SetVar;$CdInserted;0")
            sleep($AIWait)        
            $rr.Execute("SETVARBYCODE;TrackNumber;TRACKNUMBER")
            sleep(300)
            $rr.Execute($CDCOMMANDSkin)
            $rr.Execute("SAVETOSKIN;AutoTrackNum;$TRACKNUMBER$")
            $rr.Execute("SETVARBYCODE;AutoTrackPos;CURRENTTRACKTIME||SAVETOSKIN;AutoTrackPos;$AutoTrackPos$")
            sleep($AIWait)
            $rr.Execute("SETVARBYCODE;TrackNumber;TRACKNUMBER")
            $TrackNumber=$rr.getinfo("=$TRACKNUMBER$")
            ;MsgBox(4096, "Track Number:", $TrackNumber)
            $SavePLCommand = "SAVELIST;$SKINPATH$TempPL.M3u"
            $rr.Execute($SavePLCommand)
            $rr.Execute ("SETIND;CUSTOM_CDIN;ON")
            
    ; Pause for time determined in the ini & give RR time to catch up and save the playlist to disk
            sleep($AIWait)
            $rr.Execute($CDCOMMAND)        
            $DiskInserted = "yes"
        EndIf
    
        $DriveStatus = DriveStatus($MyDrive)
        If $DriveStatus = "NOTREADY" Then
            $rr.Execute ("SETIND;CUSTOM_CDIN;OFF")
            $rr.Execute ("SETIND;CUSTOM_DVDIN;OFF")        
            If $TypeDisk="CD" then
    ;MsgBox(4096, "Drive Status:", "an Audio CD Was Ejected")
                ;$rr.Execute("SetVar;$CdInserted;1")
                sleep($AIWait)            
                $rr.Execute($CDCOMMANDSkin)
                $rr.Execute("MUTE||" & $RRWait & "||LOADLIST;$SKINPATH$TempPL.M3u||STOP||SETLIST;" & $TrackNumber)
                $rr.Execute("PLAY||SEEKTO;$AutoTrackPos$||MUTE")
                $TypeDisk = "None"
            EndIf
            $DiskInserted = "no"
        EndIf
    Sleep($AIWait)
        ; Lets see if Road Runner is running
        AutoItSetOption("WinTitleMatchMode", 3)
        $handle = WinGetHandle("RoadRunner")
        ; If Road Runner is not running, lets exit this script
        If @error Then ExitLoop
    WEnd
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  6. #46
    FLAC
    Auto Apps:loading...
    EL CAMINO's Avatar
    Join Date
    Jul 2005
    Location
    upland california us
    Posts
    1,283
    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?

  7. #47
    Constant Bitrate aperali's Avatar
    Join Date
    Aug 2007
    Location
    Rio de Janeiro, Brazil
    Posts
    170
    Great plugin!!!

    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?

  8. #48
    Newbie
    Join Date
    Sep 2007
    Location
    Sussex, England
    Posts
    23
    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,
    Phil

  9. #49
    Newbie Bildonia's Avatar
    Join Date
    Dec 2007
    Location
    Illinois
    Posts
    28
    yeah same here...or are there any other progs that will do the same?
    1st CarPC
    Plans --> >>>>>>>>><
    Parts --> >>>>>>>><<
    Install -> <<<<<<<<<<

  10. #50
    Maximum Bitrate tundra2000's Avatar
    Join Date
    Mar 2006
    Location
    Houston, TX
    Posts
    551
    broken link..............

Page 5 of 6 FirstFirst 123456 LastLast

Similar Threads

  1. Wtb - Slot Load Dvd / Cd Player
    By SAScooby in forum Classified Archive
    Replies: 3
    Last Post: 04-25-2004, 07:01 PM
  2. Slim 8x DVD and 24x CD drives im selling Cheap!
    By infinkc in forum Classified Archive
    Replies: 0
    Last Post: 02-17-2004, 09:02 PM
  3. FS: Slimline CD & DVD, 512MB CF Card
    By StratusPh34r in forum Classified Archive
    Replies: 15
    Last Post: 01-31-2004, 08:31 PM
  4. PC CD/ DVD skipping problems?
    By Euclid in forum General Hardware Discussion
    Replies: 6
    Last Post: 02-05-2003, 08:43 PM
  5. Slimeline/Slotload CD or DVD Drive
    By Lando in forum General Hardware Discussion
    Replies: 7
    Last Post: 04-28-2002, 11:21 AM

Bookmarks

Posting Permissions

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