Results 1 to 7 of 7

Thread: Easy question regarding a variable in a LABEL

  1. #1
    Constant Bitrate mstaedt's Avatar
    Join Date
    Dec 2007
    Posts
    164

    Question Easy question regarding a variable in a LABEL

    How do I get a label to show a variable just created with SETVARBYCODE?

    I have a button with "SETVARBYCODE;radio_1;FREQUENCE"

    How do I get a label to show $radio_1$ after it is set?

    Thanks...
    Mark
    --------------------------------
    Project completed! (almost)

    My Truck as featured in Custom Classic Trucks magazine.

  2. #2
    MGD
    MGD is offline
    FLAC
    Auto Apps:loading...
    MGD's Avatar
    Join Date
    Feb 2005
    Location
    Los Angeles
    Posts
    1,756
    Lx,x,x,x,x"=$Radio_1$"

  3. #3
    Constant Bitrate mstaedt's Avatar
    Join Date
    Dec 2007
    Posts
    164
    OK - now I feel stupid. That was the most obvious solution, but I gave up on it immediately because when I put that in the label code box in "Skin Editor V0.71" it just showed "$radio_1" on the label. It works when RR is actually running!

    Thanks for the quick reply!
    --------------------------------
    Project completed! (almost)

    My Truck as featured in Custom Classic Trucks magazine.

  4. #4
    MGD
    MGD is offline
    FLAC
    Auto Apps:loading...
    MGD's Avatar
    Join Date
    Feb 2005
    Location
    Los Angeles
    Posts
    1,756
    At least it is working.

  5. #5
    Constant Bitrate mstaedt's Avatar
    Join Date
    Dec 2007
    Posts
    164
    OK, here's my next challenge:

    I want to create a button that works similar to the FMPRESET command, only I want it to remember which HD sub channel I was on. I figure it's a combination of these commands...

    Here's when I hold the button..
    @SETVARBYCODE;radio_1;FREQUENCE||SETVARBYCODE;HDsu b_1;HDSUB@
    If I'm listening to 98.7 HD2 when I hold the button, radio_1 = 98.70 and HDsub_1 = 2.

    Then I want a label over the button to show....
    98.70 HD2
    I figure it should be some combination of...
    "=$radio_1$ and = HD and "=$HDsub_1$"

    Then when I press the button, I want it to set the radio to 98.7 HD2

    Any ideas???

    Thanks...
    Mark
    --------------------------------
    Project completed! (almost)

    My Truck as featured in Custom Classic Trucks magazine.

  6. #6
    Constant Bitrate mstaedt's Avatar
    Join Date
    Dec 2007
    Posts
    164
    I figured out eveything up to the last step...

    How do I set my radio station to a variable?

    Thanks....
    Mark
    --------------------------------
    Project completed! (almost)

    My Truck as featured in Custom Classic Trucks magazine.

  7. #7
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    Bxx,...,"SELPRESET01",@SAVPRESET01@

    ExecTBL.ini
    Code:
    "SELPRESET01","HDSUB;$HDsub_1$||FMPRESET;FMPR01"
    "SAVPRESET01","SETVARBYCODE;radio_1;FREQUENCE||SETVARBYCODE;HDsu b_1;HDSUB||!FMPRESET;FMPR01"
    
    
    .
    Untested, but I think that that'll work...
    Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

Similar Threads

  1. Replies: 0
    Last Post: 10-10-2007, 07:54 PM
  2. Variable Speed Case Fan / Motherboard Question
    By tbird2340 in forum General Hardware Discussion
    Replies: 4
    Last Post: 10-10-2007, 09:25 AM
  3. Easy switch wiring question.
    By tbird2340 in forum General Hardware Discussion
    Replies: 7
    Last Post: 01-08-2005, 03:20 PM
  4. Easy head unit question, and PC to amp question.
    By dudah85 in forum General Hardware Discussion
    Replies: 3
    Last Post: 09-09-2001, 03:57 PM
  5. RAM type conflict, easy question, i just dont know!
    By dudah85 in forum General Hardware Discussion
    Replies: 1
    Last Post: 04-27-2001, 12:19 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
  •