Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Display the Status of a Custom Indicator as Text?

  1. #1
    Mod - all of it.
    Join Date
    Jul 2007
    Location
    Buena Park, So Cali
    Posts
    520

    Display the Status of a Custom Indicator as Text?

    I want to create a custom Indicator called !Window, and when I hit a particular button I want it to toggle between setting the indicator ON and OFF. I am using the SWITCHBUTTON in the button code to do that toggle.

    My questions are:
    1) Can I get the status of my custom indicator to show up as text in the LABEL of the button, and what is the syntax for that?

    2) Can I write the status of my custom indicator to an ini file ( or some other better way) so that the correct indicator is showing when I restart RideRunner?

    I am using this button to toggle between 2 states of GPS controlled volume, and in the past I was using SWITCHLABEL and SWITCHBUTTON to toggle between the 2 states. This however does not show the actual status of the setting but reverts to the first state of the SWITCHLABEL when I restart RR.

    Here is the code I was trying to use to display the text as a Label:
    Code:
    L6,516,527,71,50,#DFX1R#,#DFX1G#,#DFX1B#,20,"Nissan:B","!WINDOW","CENTER"
    Here is my button code:
    Code:
    B5,500,526,100,74,"SETVAR;speedatt;$p1speedatt$||
    SETVAR;speedattmute;$p1speedattmute$||
    SETVAR;speedattunit;$p1speedattunit$||
    SETVAR;speedattvola;$p1speedattvola$||
    SETVAR;speedattvolb;$p1speedattvolb$||
    SETVAR;speedattspeeda;0||
    SETVAR;speedattspeedb;$pspeedattspeedb$||
    SETVAR;speedattmode;line||
    SETVAR;speedattmute;$p1speedattmute$||
    SETVAR;speedattmaxstep;15||
    SAVETOINI;speedatt;$p1speedatt$||
    SAVETOINI;speedattmute;$p1speedattmute$||
    SAVETOINI;speedattunit;$p1speedattunit$||
    SAVETOINI;speedattvola;$p1speedattvola$||
    SAVETOINI;speedattvolb;$p1speedattvolb$||
    SAVETOINI;speedattspeeda;0||
    SAVETOINI;speedattspeedb;$p1speedattspeedb$||
    SAVETOINI;speedattmode;line||
    SAVETOINI;speedattmute;$p1speedattmute$||
    SAVETOINI;speedattmaxstep;15||
    "SETIND;!WINDOW;OFF"||
    SWITCHBUTTON;5>>
    "SETVAR;speedatt;$p2speedatt$||
    SETVAR;speedattmute;$p2speedattmute$||
    SETVAR;speedattunit;$p2speedattunit$||
    SETVAR;speedattvola;$p2speedattvola$||
    SETVAR;speedattvolb;$p2speedattvolb$||
    SETVAR;speedattspeeda;0||
    SETVAR;speedattspeedb;$pspeedattspeedb$||
    SETVAR;speedattmode;line||
    SETVAR;speedattmute;$p2speedattmute$||
    SETVAR;speedattmaxstep;15||
    SAVETOINI;speedatt;$p2speedatt$||
    SAVETOINI;speedattmute;$p2speedattmute$||
    SAVETOINI;speedattunit;$p2speedattunit$||
    SAVETOINI;speedattvola;$p2speedattvola$||
    SAVETOINI;speedattvolb;$p2speedattvolb$||
    SAVETOINI;speedattspeeda;||
    SAVETOINI;speedattspeedb;$pspeedattspeedb$||
    SAVETOINI;speedattmode;line||
    SAVETOINI;speedattmute;$p2speedattmute$||
    SAVETOINI;speedattmaxstep;15||
    "SETIND;!WINDOW;ON"||
    SWITCHBUTTON;5",""
    CAR: 2007 G35 Sport Coupe 5AT
    HARDWARE: Dell D630 w/ dock, internal 80G HD, internal 320G HD, Verizon Wireless Card, iBlue GM-2 GPS w/iGuidance, OBDPros w/DashCommand, Visteon HD Radio w/ Home Made Cable, Current Version of RR w/ DFX Skin. My Install.

  2. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    You can do these things using a variable, but not with the custom indicator alone.

    Try this:
    Code:
    L6,516,527,71,50,#DFX1R#,#DFX1G#,#DFX1B#,20,"Nissan:B","BYVAR;VARWINDOW;OFF<<ON","CENTER"
    with this:
    Code:
    B5,500,526,100,74,"SETVAR;speedatt;$p1speedatt$||
    SETVAR;speedattmute;$p1speedattmute$||
    SETVAR;speedattunit;$p1speedattunit$||
    SETVAR;speedattvola;$p1speedattvola$||
    SETVAR;speedattvolb;$p1speedattvolb$||
    SETVAR;speedattspeeda;0||
    SETVAR;speedattspeedb;$pspeedattspeedb$||
    SETVAR;speedattmode;line||
    SETVAR;speedattmute;$p1speedattmute$||
    SETVAR;speedattmaxstep;15||
    SAVETOINI;speedatt;$p1speedatt$||
    SAVETOINI;speedattmute;$p1speedattmute$||
    SAVETOINI;speedattunit;$p1speedattunit$||
    SAVETOINI;speedattvola;$p1speedattvola$||
    SAVETOINI;speedattvolb;$p1speedattvolb$||
    SAVETOINI;speedattspeeda;0||
    SAVETOINI;speedattspeedb;$p1speedattspeedb$||
    SAVETOINI;speedattmode;line||
    SAVETOINI;speedattmute;$p1speedattmute$||
    SAVETOINI;speedattmaxstep;15||
    SETIND;!WINDOW;OFF||
    SETVAR;VARWINDOW;0||
    SAVETOINI;VARWINDOW;$VARWINDOW$||
    SWITCHBUTTON;5>>
    "SETVAR;speedatt;$p2speedatt$||
    SETVAR;speedattmute;$p2speedattmute$||
    SETVAR;speedattunit;$p2speedattunit$||
    SETVAR;speedattvola;$p2speedattvola$||
    SETVAR;speedattvolb;$p2speedattvolb$||
    SETVAR;speedattspeeda;0||
    SETVAR;speedattspeedb;$pspeedattspeedb$||
    SETVAR;speedattmode;line||
    SETVAR;speedattmute;$p2speedattmute$||
    SETVAR;speedattmaxstep;15||
    SAVETOINI;speedatt;$p2speedatt$||
    SAVETOINI;speedattmute;$p2speedattmute$||
    SAVETOINI;speedattunit;$p2speedattunit$||
    SAVETOINI;speedattvola;$p2speedattvola$||
    SAVETOINI;speedattvolb;$p2speedattvolb$||
    SAVETOINI;speedattspeeda;||
    SAVETOINI;speedattspeedb;$pspeedattspeedb$||
    SAVETOINI;speedattmode;line||
    SAVETOINI;speedattmute;$p2speedattmute$||
    SAVETOINI;speedattmaxstep;15||
    SETIND;!WINDOW;ON||
    SETVAR;VARWINDOW;1||
    SAVETOINI;VARWINDOW;$VARWINDOW$||
    SWITCHBUTTON;5",""
    Keep your custom indicator as is, but you should execute this when loading the screen or skin (i.e. using ONSKINSTART) to restore the custom indicator after starting RR:

    Code:
    "BYVAR;VARWINDOW;<<SETIND;!WINDOW;ON"
    NOTE: I assume you DO NOT actually have those line breaks in the .skin file or it certainly would not work as everything has to be in the same line...
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  3. #3
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,689
    Blog Entries
    1
    couldnt you also use byvar to do somehting like this? When you set the save the variable, use savetoini;myvatname;test then when rr loads it will set myvar to "test" as thats whats in the ini. then use ByVar on that variable to determine what to do. You can then display the variable as a label.

    I hope I said that all right, I am in China and going on little sleep for the past few days....
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  4. #4
    THE EXPERIMENTER
    Auto Apps:loading...
    carputer1's Avatar
    Join Date
    Sep 2007
    Location
    UK,Surrey
    Posts
    1,978
    lol you have to go all the way to china just to sleep lol....

  5. #5
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,078
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

  6. #6
    Mod - all of it.
    Join Date
    Jul 2007
    Location
    Buena Park, So Cali
    Posts
    520
    Wow that actually seems to make sense. I will try all that.

    Yes you assume correct. I only have one line in the code. I just thought with such a long command it would be easier to read with the line breaks.
    CAR: 2007 G35 Sport Coupe 5AT
    HARDWARE: Dell D630 w/ dock, internal 80G HD, internal 320G HD, Verizon Wireless Card, iBlue GM-2 GPS w/iGuidance, OBDPros w/DashCommand, Visteon HD Radio w/ Home Made Cable, Current Version of RR w/ DFX Skin. My Install.

  7. #7
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,689
    Blog Entries
    1
    Quote Originally Posted by carputer1 View Post
    lol you have to go all the way to china just to sleep lol....
    Quote Originally Posted by Blue ZX3 View Post
    Yea yea yea.....

    But even on the opposite side of the planet, it does not prevent the on going nagging of "When is the skin going to be released?"

    LOL
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  8. #8
    Mod - all of it.
    Join Date
    Jul 2007
    Location
    Buena Park, So Cali
    Posts
    520
    Quote Originally Posted by guino View Post
    You can do these things using a variable, but not with the custom indicator alone.

    Try this:...
    So I tried this and still have no text displaying in my button.

    Also the purpose of the button is to toggle between 2 different sets of variables of GPS speed controled volume. The windows up (OFF) volume starts at 65% at stop and slowly goes to 100% at 80mph. The Windows down (ON) volume starts at 40% and quickly got to 100% at 50mph.

    With the changes you proposed, the volume goes to 0% at skin start.

    Any further suggestions?
    CAR: 2007 G35 Sport Coupe 5AT
    HARDWARE: Dell D630 w/ dock, internal 80G HD, internal 320G HD, Verizon Wireless Card, iBlue GM-2 GPS w/iGuidance, OBDPros w/DashCommand, Visteon HD Radio w/ Home Made Cable, Current Version of RR w/ DFX Skin. My Install.

  9. #9
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,689
    Blog Entries
    1
    I am out of town for a few more days, so not at my desktop puter to try to test stuff.

    My thought is simple though, when you press the button, make part of that button code to save your variable in the rr.ini, press the button again, save the other value you want. then when rr starts, that variable will be loaded, and avail for use and display. To display a variable you have to use a label, with the code =$YourVariableName$


    Having the volume go to 0 at skin start, means you are not setting the volume to match what the variable is that you saved is my thinking.
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  10. #10
    Mod - all of it.
    Join Date
    Jul 2007
    Location
    Buena Park, So Cali
    Posts
    520
    Well John that wast the solution. The text alternates back and forth between ON and OFF. However all I have really accomplished is a more complex way of what I was already doing with Switchlabel and Switchbutton.

    See the problem now is that if I close RR in the ON position, it takes 2 button pushes to get to the off position the first time. The first half of the code is ON, and the second half obviously OFF. But if I close RR ON, with the first button push being ON, it takes the second button push to be OFF.

    Is there a way to accomplish this so the button is in the right state on RR start.

    Make sense?
    CAR: 2007 G35 Sport Coupe 5AT
    HARDWARE: Dell D630 w/ dock, internal 80G HD, internal 320G HD, Verizon Wireless Card, iBlue GM-2 GPS w/iGuidance, OBDPros w/DashCommand, Visteon HD Radio w/ Home Made Cable, Current Version of RR w/ DFX Skin. My Install.

Page 1 of 2 12 LastLast

Similar Threads

  1. BBcode
    By optikalefx in forum VaultWiki
    Replies: 0
    Last Post: 08-13-2009, 10:43 AM
  2. Custom AM/FM radio display?
    By ShinkunoNamida in forum General Hardware Discussion
    Replies: 24
    Last Post: 02-25-2003, 07:28 PM
  3. Replies: 0
    Last Post: 02-11-2003, 01:15 PM
  4. cd text display?
    By meyer64 in forum General Hardware Discussion
    Replies: 2
    Last Post: 09-23-2002, 10:41 AM
  5. Control things and display status of things
    By All4Norway in forum General Hardware Discussion
    Replies: 10
    Last Post: 07-18-2002, 01:32 PM

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
  •