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.
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.
test this script, is one way to use "SETVAR" to trigger a function.
if ($rr.getinfo("=$TESTING$") == "NOW") then;RR button, "SETVAR;TESTING;NOW"
$rr.Execute("SETVAR;TESTING;");resets the variable.
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.
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.
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
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.
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.
Dim $avDrives = DriveGetDrive("cdrom")
Dim $avOpenClose[$avDrives + 1]
$avOpenClose = $avDrives
$OpenMenu = TrayCreateMenu("CD Drive Open")
$CloseMenu = TrayCreateMenu("CD Drive Close")
$Exit = TrayCreateItem("Exit")
For $d = 1 To $avDrives
$avOpenClose[$d] = TrayCreateItem('Open ' & $avDrives[$d], $OpenMenu)
$avOpenClose[$d] = TrayCreateItem('Close ' & $avDrives[$d], $CloseMenu)
$TrayMsg = TrayGetMsg()
For $d = 1 To $avOpenClose
If $TrayMsg = $avOpenClose[$d] Then
ElseIf $TrayMsg = $avOpenClose[$d] Then
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.
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