Page 5 of 11 FirstFirst 1234567891011 LastLast
Results 41 to 50 of 106

Thread: Launch video/dvd/cd/audio via any drive letter

  1. #41
    FLAC
    Auto Apps:loading...
    EL CAMINO's Avatar
    Join Date
    Jul 2005
    Location
    upland california us
    Posts
    1,283
    i think your going in to the complicated route chevy, is just a friendly opinion. i said the same thing to john, if you save info in the skin.ini that you will need later, if the user changes the skin or resets RR, some of it will get lost, causing who knows what, so my advice, use your media.ini if you already have that, why not just use it for all. the info will be safe there even if you do a Full RR Restart.

  2. #42
    Variable Bitrate chevyn8's Avatar
    Join Date
    Oct 2006
    Location
    small town nebraska
    Posts
    263
    One little change and I can have it save to medialaunch.ini. It's the advice I need as I'm building this for me, but there is no reason why I can't make it work for others. A full rr restart will clear everything in skin.ini anyway as that's the first thing the script does. I question if I need to keep any of that in an ini. The script keeps track of everything that goes into skin.ini via global variables in rr and I never read from it (looking for advice here). I still learning I must say that I used this program this evening for quite a while, many stops/hibernates, switched around 5 usb's and a dvd/cd and it worked great.
    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
    FLAC
    Auto Apps:loading...
    EL CAMINO's Avatar
    Join Date
    Jul 2005
    Location
    upland california us
    Posts
    1,283
    test this script, is one way to use "SETVAR" to trigger a function.

    Code:
    $rr=ObjCreate("RoadRunner.sdk")
    
    While (1)
    		if ($rr.getinfo("=$TESTING$") == "NOW") then;RR button, "SETVAR;TESTING;NOW"
    			$rr.Execute("SETVAR;TESTING;");resets the variable.
                MsgBox(4096,"","!HELLO")			 
            Endif	 
    		Sleep(2000)
    WEnd

  4. #44
    Variable Bitrate chevyn8's Avatar
    Join Date
    Oct 2006
    Location
    small town nebraska
    Posts
    263
    I removed all the skin.ini writes and it works great. Survives skin changes, rr reboots, and rr shutdown and startup. Guess I didn't need to use skin.ini..... I actually like the idea of not reading and writing to files as the script executes, the only read is getting the medialaunch.ini settings. I'm sure where in that code you are communicating to the already running script from RR (which line), or do you set a variable in RR then have the script read it. Anyway, I don't think I need to do that. The medalaunch script scans the media and tells RR how to run it, eject it, drive letter, and what the media is. Then the script does nothing until a media device is added or removed.
    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
    FLAC
    Auto Apps:loading...
    EL CAMINO's Avatar
    Join Date
    Jul 2005
    Location
    upland california us
    Posts
    1,283
    good job, true that the less info stored in skin.ini or rr.ini the better, i save all the info needed in the script's ini, like the playlist pos and the cd playlist part also, thats it.

  6. #46
    THE EXPERIMENTER
    Auto Apps:loading...
    carputer1's Avatar
    Join Date
    Sep 2007
    Location
    UK,Surrey
    Posts
    1,978

    ok here it is

    like you chevy
    i'm not a skinner, i play alot. this skin is not spot on but you get the idea,i'm going to sit here and play with over the weekend and try to clean it up abit.



    Edit skin updated sharpened the icons and other bits starting to look more like button effects now very simular

    is there away you can change the indicators to labels,as i can't add indicators to the skin without ruinning it, plus i think this will make it easier for non-skinners who want this app. to easily apple it to there skins. for now i just added labels from the main skin to the menu with active button.image below at the top.


    skin update indictors on main menu
    Attached Files Attached Files

  7. #47
    Variable Bitrate chevyn8's Avatar
    Join Date
    Oct 2006
    Location
    small town nebraska
    Posts
    263
    0.91 cleaner code, removed all writes to skin.ini, added RECENTCMD variable
    Please note, you must remove all MediaLaunch entry's in skin.ini.
    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

  8. #48
    THE EXPERIMENTER
    Auto Apps:loading...
    carputer1's Avatar
    Join Date
    Sep 2007
    Location
    UK,Surrey
    Posts
    1,978

    eject cd rom's

    i know you said this is finicky, i have just installed everything into the carputer.
    all seems to work ok, not tryed resume play list as of yet, but eject on cd rom 2 dose not work, it will only eject cd rom 1 main drive,cd rom 2 is usb rom drive.
    i had this once before , and found out that rr eject command only works on main drive not the others.

    Edit: Reload Playlist works

    ok hows this can you use this it works but it needs to be set up for rr commands so we can set a button code for it.you can use it as a separate .exe if you can't intergrate it ,but the cd eject is going to need to be played with to open/close the right drive automatically.

    TraySetIcon('Shell32.dll', 8)
    Opt('TrayMenuMode', 1)

    Dim $avDrives = DriveGetDrive("cdrom")
    Dim $avOpenClose[$avDrives[0] + 1][2]
    $avOpenClose[0][0] = $avDrives[0]
    $OpenMenu = TrayCreateMenu("CD Drive Open")
    $CloseMenu = TrayCreateMenu("CD Drive Close")
    $Exit = TrayCreateItem("Exit")

    For $d = 1 To $avDrives[0]
    $avOpenClose[$d][0] = TrayCreateItem('Open ' & $avDrives[$d], $OpenMenu)
    $avOpenClose[$d][1] = TrayCreateItem('Close ' & $avDrives[$d], $CloseMenu)
    Next

    While 1
    $TrayMsg = TrayGetMsg()
    Switch $TrayMsg
    Case $Exit
    Exit
    Case Else
    For $d = 1 To $avOpenClose[0][0]
    If $TrayMsg = $avOpenClose[$d][0] Then
    CDTray($avDrives[$d], "Open")
    ElseIf $TrayMsg = $avOpenClose[$d][1] Then
    CDTray($avDrives[$d], "close")
    EndIf
    Next
    EndSwitch
    WEnd
    Attached Files Attached Files

  9. #49
    Variable Bitrate chevyn8's Avatar
    Join Date
    Oct 2006
    Location
    small town nebraska
    Posts
    263
    I'll take a look at that code. The eject I use may not work on a usb CDROM. It doesn't use the RR eject command, it's a very old unmount utility that works pretty good with usb drives.
    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

  10. #50
    THE EXPERIMENTER
    Auto Apps:loading...
    carputer1's Avatar
    Join Date
    Sep 2007
    Location
    UK,Surrey
    Posts
    1,978

    the ejectcd.exe

    worked on the usb rom drive, hav'nt ryed any other drives did'nt have time to pull it all out to insert a disc, but i'm sure it will work, so now all input devices can be ejected now, another mile stone covered.

    done some more thinking today ( oh god ) i hear you cry LOL...
    at the moment you have reloadlist set for when the media is ejected thats fine, but is there or can there be an seperate reloadlist button,
    reason being ,i know when i'm playing a cd i can go into my browser and select a music file from there and play the cd stops and the selected music file plays, which brought me to this idea if we can have a manually reloadlist button, we can go back to the music that we were playing without having to eject evertime, leave the reloadlist on eject there just allow for an override as well if that possiable.

    i this is pos. i'm going to redesign the skin ( i don't like it like that).
    also i managed to add the indicators to the main menu and working i will have the files done later tonight i'll post it in with my earlier post where the skin is

Similar Threads

  1. usb pen drive lost data, how can i recover it?
    By 0okami in forum General Hardware Discussion
    Replies: 4
    Last Post: 10-26-2006, 12:13 PM
  2. Hard drive dilema.... 2.5" or 3.5"?
    By 3Tripnip in forum General Hardware Discussion
    Replies: 2
    Last Post: 01-14-2006, 12:30 AM
  3. Did you know "single" Hard Drive Booted Faster?
    By grandamp3 in forum General Hardware Discussion
    Replies: 17
    Last Post: 09-03-2004, 12:50 PM
  4. carputer hard drive died in 3 days
    By therussman2002 in forum General Hardware Discussion
    Replies: 16
    Last Post: 08-10-2004, 01:49 PM
  5. Best remote DVD drive option
    By lookinco in forum General Hardware Discussion
    Replies: 2
    Last Post: 08-09-2004, 11:28 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
  •