Page 2 of 2 FirstFirst 12
Results 11 to 11 of 11

Thread: ACTIVESOURCEIDs

  1. #11
    The Last Good Gremlin GizmoQ's Avatar
    Join Date
    Nov 2004
    Location
    St Louis
    Posts
    2,344
    Quote Originally Posted by rtgree01 View Post
    So.... how does a skin get the GUID?
    How can the skinners do the various things based on the active source? I'd like to see something with a unique ID (guid) for each source that we can byvar or byvarx.

    But.... there are probably only a few uses for something like this...

    Just my 2 cents
    Ryan
    Back in my radical days, I tried to get the "ACTIVESOURCEID" to be ordered more to what most users would use most, but I was overruled so I said screw it and came up with my own:" CURRENTSOURCE".

    I use it in several ways:

    1) it saves the currentsource # to the RR.ini in a variable called LASTAUDIO so when I reboot, RR resumes using the Audiosource I last had on:

    Code:
    "AUDIO","YT_STOP||SETVAR;TRACKNAME; ||SETVAR;lastaudio;0||SAVETOINI;lastaudio;$lastaudio$||SETVAR;CURRENTSOURCE;0||LOAD;AUDIO_PLAYER.SKIN"
    "RADIO","YT_STOP||SETVAR;TRACKNAME;$TAGTITLE$||SETVAR;lastaudio;1||SAVETOINI;lastaudio;$lastaudio$||SETVAR;CURRENTSOURCE;1||LOAD;RADIO_PLAYER.SKIN"
    "XM","YT_STOP||SETVAR;TRACKNAME;$TAGTITLE$||SETVAR;lastaudio;2||SAVETOINI;lastaudio;$lastaudio$||SETVAR;CURRENTSOURCE;2||LOAD;XM.SKIN"
    "SIRIUS","YT_STOP||SETVAR;TRACKNAME;$TAGTITLE$||SETVAR;lastaudio;3||SAVETOINI;lastaudio;$lastaudio$||SETVAR;CURRENTSOURCE;3||LOAD;SRADIO.SKIN"
    "VIDEO","YT_STOP||SETVAR;TRACKNAME;$TAGTITLE$||SETVAR;lastaudio;4||SAVETOINI;lastaudio;$lastaudio$||SETVAR;CURRENTSOURCE;4||LOAD;VIDEO_PLAYER.SKIN"
    "DVD2","YT_STOP||SETVAR;TRACKNAME;$TAGTITLE$||SETVAR;lastaudio;5||SAVETOINI;lastaudio;$lastaudio$||SETVAR;CURRENTSOURCE;5||DVD"
    "TV","YT_STOP||SETVAR;TRACKNAME;$TAGTITLE$||SETVAR;lastaudio;6||SAVETOINI;lastaudio;$lastaudio$||SETVAR;CURRENTSOURCE;6||LOAD;TV.SKIN"
    "YT_LOAD","SETVAR;lastaudio;0||SAVETOINI;lastaudio;$lastaudio$||SETVAR;CURRENTSOURCE;7||YOUTUBE"
    "RRSHOUT","CHECKNETRADIO||BYVAR;AUTOREFRESH;<<INET1||YT_STOP||SETVAR;TRACKNAME; ||SETVAR;lastaudio;0||SAVETOINI;lastaudio;$lastaudio$||SETVAR;CURRENTSOURCE;0||RRSHOUTCAST"

    2) it overwrites my ALBUMART for those items not currently supported in the MediaArt plugin, i.e., YouTube and Internet radio:

    Code:
    "CHECKNETRADIO","SETVARBYCODE;shoutcheck;ACTIVESOURCE||EVAL;YESTRACK0000;strcomp("$shoutcheck$";"RRShoutcast")||BATTERY0||BYVAR;YESTRACK0000;<<INET1"
    
    "INET1","RELOADLIST||INETMENU||INETMENU2||INETMENU3||INETMENU4"
    "INETMENU","LOADIMG;630;100;160;135;InetRadio.JPG;ON",MENU.SKIN
    "INETMENU2","LOADIMG;630;100;160;135;InetRadio.JPG;ON",MENU_2.SKIN
    "INETMENU3","LOADIMG;630;100;160;135;InetRadio.JPG;ON",MENU_3.SKIN
    "INETMENU4","LOADIMG;257;158;279;226;InetRadio.JPG;ON",MENU4.SKIN
    /, "INETAUDIO","LOADIMG;606;110;172;159;InetRadio.JPG;ON",AUDIO_PLAYER.SKIN
    
    "YTSWAP","YTSWAP1||YTSWAP2||YTSWAP3"
    "YTSWAP1","LDIMG;630;100;160;135;$PluginsPath$YouTube\art.jpg;ON",MENU.SKIN
    "YTSWAP2","LDIMG;630;100;160;135;$PluginsPath$YouTube\art.jpg;ON",MENU_2.SKIN
    "YTSWAP3","LDIMG;630;100;160;135;$PluginsPath$YouTube\art.jpg;ON",MENU_3.SKIN

    3) its used to set the two lines of data on my main menus to show specific song title/artist/album or Frequence/HDTrackname/RDSName or Youtube/YT_Movie or XMChannel/XMStation

    Code:
    "BYVAR;CURRENTSOURCE;TRACKNUMBER||= - ||TRACKNAME<<TRACKNUMBER||= - ||Frequence||= - ||HDTRACKNAME<<TRACKNUMBER||= - ||TRACKNAME<<TRACKNUMBER||= - ||TRACKNAME<<TRACKNUMBER||= - ||TRACKNAME<<TRACKNUMBER||= - ||TRACKNAME<<TRACKNUMBER||= - ||TRACKNAME<<=YOUTUBE - ||YT_MOVIE","SCROLL-CENTER"
    "BYVAR;CURRENTSOURCE;tagAlbum<<rdsname<<TRACKNUMBER||= - ||xmstation<<TRACKNUMBER||= - ||srstation<<TRACKpath<<Tagalbum<<Tagalbum<<= ","SCROLL-CENTER"

    4) its used to determine what command to use for "PAUSE/RESUME" when I shut off my engine and my tablet goes from ACC power to internal battery power and vice versa (after losing external power my Tablet is set to turn the screen off in 1 minute, standby in 20 minutes, hibernate in 4 hours; but if I come back within the 20 minutes, the screen immediately comes back on and the audio is resumed)

    Code:
    "TIMER","SETVAR;PSTATE1;$PSTATE$||SETVARBYCODE;pstate;powermon_powersrc||SETVAR;ONBATTERY;$PSTATE1$+$PSTATE$||BYVAR;CURRENTSOURCE;BATTERY0<<BATTERY1<<BATTERY2<<BATTERY3<<BATTERY4<<BATTERY5<<BATTERY6<<YTSWAP"
    
    /, ************************MUTE/PAUSE/SILENCE ON BATTERY
    "BATTERY0","BYSTR;$ONBATTERY$;External+Battery<PAUSE><<Battery+External<RESUME>"
    "BATTERY1","BYSTR;$ONBATTERY$;External+Battery<PAUSE><<Battery+External<RESUME>"
    "BATTERY2","BYSTR;$ONBATTERY$;External+Battery<XMMUTE><<Battery+External<XMMUTE>"
    "BATTERY3","BYSTR;$ONBATTERY$;External+Battery<SRMUTE><<Battery+External<SRMUTE>"
    "BATTERY4","BYSTR;$ONBATTERY$;External+Battery<PLAY><<Battery+External<PLAY>"
    "BATTERY5","BYSTR;$ONBATTERY$;External+Battery<PLAY><<Battery+External<PLAY>"
    "BATTERY6","BYSTR;$ONBATTERY$;External+Battery<MUTE><<Battery+External<MUTE>"
    "BATTERY7","BYSTR;$ONBATTERY$;External+Battery<YT_PLAY><<Battery+External<YT_PLAY>"

    5) its also used to setup my external audio recorder's volume levels, recording source, and what to use as the filename:
    Code:
    "ONARTCLICKED","BYVAR;CURRENTSOURCE;AUDIOREC<<FMREC<<XMREC<<AUDIOREC<<AUDIOREC<<AUDIOREC<<TVREC<<YTREC<<YTREC<<YTREC"
    
    "STARTREC","BYVAR;CURRENTSOURCE;AUDIOREC<<FMREC<<XMREC<<AUDIOREC<<AUDIOREC<<AUDIOREC<<TVREC<<YTREC<<YTREC<<YTREC"
    
    "AUDIOREC","SETVARBYCODE;curtrack;trackname||RUN;C:\Program Files\Rec\Rec.exe|-v:1-100 -q:s:44100 -s -f:"C:\My Documents\My Music\New\Active Quarter\Last Month\This Month\$curtrack$.mp3" -c:05:00"
    "FMREC","SETVARBYCODE;curtrack;FREQUENCE||SETVARBYCODE;srds;rdstext||RUN;C:\Program Files\Rec\Rec.exe|-v:1-100 -q:s:44100 -s -f:"C:\My Documents\My Music\New\Active Quarter\Last Month\This Month\$curtrack$ - $srds$ %n.mp3" -c:05:00"
    "XMREC","SETVARBYCODE;curtrack;trackname||RUN;C:\Program Files\Rec\Rec.exe|-v:2-58 -q:m:8000 -s -f:"C:\My Documents\My Music\New\Active Quarter\Last Month\This Month\$curtrack$.mp3" -c:05:00"
    "TVREC","SETVARBYCODE;curtrack;trackname||RUN;C:\Program Files\Rec\Rec.exe|-v:1-100 -q:s:22050 -s -f:"C:\My Documents\My Music\New\Active Quarter\Last Month\This Month\$curtrack$ %Y %O %D %n.mp3" -c:05:00"
    "YTREC","SETVARBYCODE;curtrack;YT_MOVIE||RUN;C:\Program Files\Rec\Rec.exe|-v:1-100 -q:s:44100 -s -f:"C:\My Documents\My Music\New\Active Quarter\Last Month\This Month\$curtrack$.mp3" -c:05:00"

    It could easily be used for numerous other activities, but I just ran out of effort/desire to rewrite all my skins that I use. The above were my primary concerns when I joined the ACTIVESOURCEID bandwagon, but as usual, when it finally came time to add it into the RRCode - it didn't fit my needs so I abandoned it.
    Last edited by GizmoQ; 07-18-2012 at 05:32 PM.
    HARDWARE: Fujitsu Stylistic ST5111w/WiFi and dock, internal Hitachi 500G HD, external 1TB HD, Sierra Wireless Aircard 550, DVD-RW, BoomzBox HD radio, XM Commander, Delorme GPS, Saitek X-52 Pro joystick, BluSoleil Bluetooth, TPMS, FB, Elm327

Page 2 of 2 FirstFirst 12

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
  •