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.