Announcement

Collapse
No announcement yet.

BYVAR and labels...need a little help...

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • BYVAR and labels...need a little help...

    Ok, on one of my screens, I have a lot of this...need to figure out how to make it actually display the variable value instead of the variable name.

    Code:
    L,210,75,50,30,255,255,255,14,"Verdana","BYVAR;ANALOG$I1B$$I1P$DISPLAY;=ANALOG$I1B$$I1P$RAW<<=ANALOG$I1B$$I1P$OPT<<=ANALOG$I1B$$I1P$VAL",
    L,210,110,50,30,255,255,255,14,"Verdana","BYVAR;ANALOG$I2B$$I2P$DISPLAY;=ANALOG$I2B$$I2P$RAW<<=ANALOG$I2B$$I2P$OPT<<=ANALOG$I2B$$I2P$VAL",
    yes, there's purposely variables inside a variable name.
    Planning: [|||||||||-] 90%
    Purchased: [|||||||||/] 99%
    Installation: [|||||||||-] 90% (when is anyone's project ever REALLY done...)

  • #2
    nobody?
    Planning: [|||||||||-] 90%
    Purchased: [|||||||||/] 99%
    Installation: [|||||||||-] 90% (when is anyone's project ever REALLY done...)

    Comment


    • #3
      have you tried, "=ANALOG||=$I2B$$I2P$||=RAW"
      BASSRR ==> [Audio Player/MusicDB/Cd Player/Ripper/Rate/Internet Radio/Audio Capture/Youtube Video]
      RRTube ==> [View/Download Youtube Videos]
      WifiMan ==> [Wifi Manager]
      RRec ==> [Audio Capture]

      If You Want To Be Given Everything, Give Everything Up ...
      Bird York -- In The Deep --

      Comment


      • #4
        that would still display the ending var name "Analog14RAW" for example...i need it to display whatever that variable's value is
        Planning: [|||||||||-] 90%
        Purchased: [|||||||||/] 99%
        Installation: [|||||||||-] 90% (when is anyone's project ever REALLY done...)

        Comment


        • #5
          if label codes allowed parenthesis i wouldn't have this issue

          $(ANALOG$I1B$$I1P$RAW) would be awesome
          Planning: [|||||||||-] 90%
          Purchased: [|||||||||/] 99%
          Installation: [|||||||||-] 90% (when is anyone's project ever REALLY done...)

          Comment


          • #6
            well, testing with this code:

            Code:
            "=RRPATH IS:||=$RRPATH$||= .."
            i get this.

            Code:
            RRPATH IS:C:\Program Files\RideRunner\ ..
            BASSRR ==> [Audio Player/MusicDB/Cd Player/Ripper/Rate/Internet Radio/Audio Capture/Youtube Video]
            RRTube ==> [View/Download Youtube Videos]
            WifiMan ==> [Wifi Manager]
            RRec ==> [Audio Capture]

            If You Want To Be Given Everything, Give Everything Up ...
            Bird York -- In The Deep --

            Comment


            • #8
              i'll just use more memory and processor time and make some timers that constantly read inputs and assign them to variables...such a waste, but it seems that's my only option...
              Planning: [|||||||||-] 90%
              Purchased: [|||||||||/] 99%
              Installation: [|||||||||-] 90% (when is anyone's project ever REALLY done...)

              Comment


              • #9
                my solution...

                ExecTbl:
                Code:
                "AIVTimerStart","GblTmr_Add;AITimer;.05;SETINPUTVARS;REPEAT"
                "SETINPUTVARS","SETRAW1||SETOPT1||SETVAL1||SETRAW2||SETOPT2||SETVAL2"
                
                "SETRAW1","SETVARBYCODE;O1RAW;RRFUSION_ANALOGINPUT;$I1B$;$I1P;RAW||SETVARBYCODE;O2RAW;RRFUSION_ANALOGINPUT;$I2B$;$I2P;RAW||SETVARBYCODE;O3RAW;RRFUSION_ANALOGINPUT;$I3B$;$I3P;RAW||SETVARBYCODE;O4RAW;RRFUSION_ANALOGINPUT;$I4B$;$I4P;RAW||SETVARBYCODE;O5RAW;RRFUSION_ANALOGINPUT;$I5B$;$I5P;RAW||SETVARBYCODE;O6RAW;RRFUSION_ANALOGINPUT;$I6B$;$I6P;RAW||SETVARBYCODE;O7RAW;RRFUSION_ANALOGINPUT;$I7B$;$I7P;RAW||SETVARBYCODE;O8RAW;RRFUSION_ANALOGINPUT;$I8B$;$I8P;RAW||SETVARBYCODE;O9RAW;RRFUSION_ANALOGINPUT;$I9B$;$I9P;RAW||SETVARBYCODE;O10RAW;RRFUSION_ANALOGINPUT;$I10B$;$I10P;RAW||SETVARBYCODE;O11RAW;RRFUSION_ANALOGINPUT;$I11B$;$I11P;RAW||SETVARBYCODE;O12RAW;RRFUSION_ANALOGINPUT;$I12B$;$I12P;RAW||SETVARBYCODE;O13RAW;RRFUSION_ANALOGINPUT;$I13B$;$I13P;RAW||SETVARBYCODE;O14RAW;RRFUSION_ANALOGINPUT;$I14B$;$I14P;RAW||SETVARBYCODE;O15RAW;RRFUSION_ANALOGINPUT;$I15B$;$I15P;RAW||SETVARBYCODE;O16RAW;RRFUSION_ANALOGINPUT;$I16B$;$I16P;RAW||SETVARBYCODE;O17RAW;RRFUSION_ANALOGINPUT;$I17B$;$I17P;RAW"
                "SETRAW2","SETVARBYCODE;O18RAW;RRFUSION_ANALOGINPUT;$I18B$;$I18P;RAW||SETVARBYCODE;O19RAW;RRFUSION_ANALOGINPUT;$I19B$;$I19P;RAW||SETVARBYCODE;O20RAW;RRFUSION_ANALOGINPUT;$I20B$;$I20P;RAW||SETVARBYCODE;O21RAW;RRFUSION_ANALOGINPUT;$I21B$;$I21P;RAW||SETVARBYCODE;O22RAW;RRFUSION_ANALOGINPUT;$I22B$;$I22P;RAW||SETVARBYCODE;O23RAW;RRFUSION_ANALOGINPUT;$I23B$;$I23P;RAW||SETVARBYCODE;O24RAW;RRFUSION_ANALOGINPUT;$I24B$;$I24P;RAW||SETVARBYCODE;O25RAW;RRFUSION_ANALOGINPUT;$I25B$;$I25P;RAW"
                "SETOPT1","SETVARBYCODE;O1OPT;RRFUSION_ANALOGINPUT;$I1B$;$I1P;OPT||SETVARBYCODE;O2OPT;RRFUSION_ANALOGINPUT;$I2B$;$I2P;OPT||SETVARBYCODE;O3OPT;RRFUSION_ANALOGINPUT;$I3B$;$I3P;OPT||SETVARBYCODE;O4OPT;RRFUSION_ANALOGINPUT;$I4B$;$I4P;OPT||SETVARBYCODE;O5OPT;RRFUSION_ANALOGINPUT;$I5B$;$I5P;OPT||SETVARBYCODE;O6OPT;RRFUSION_ANALOGINPUT;$I6B$;$I6P;OPT||SETVARBYCODE;O7OPT;RRFUSION_ANALOGINPUT;$I7B$;$I7P;OPT||SETVARBYCODE;O8OPT;RRFUSION_ANALOGINPUT;$I8B$;$I8P;OPT||SETVARBYCODE;O9OPT;RRFUSION_ANALOGINPUT;$I9B$;$I9P;OPT||SETVARBYCODE;O10OPT;RRFUSION_ANALOGINPUT;$I10B$;$I10P;OPT||SETVARBYCODE;O11OPT;RRFUSION_ANALOGINPUT;$I11B$;$I11P;OPT||SETVARBYCODE;O12OPT;RRFUSION_ANALOGINPUT;$I12B$;$I12P;OPT||SETVARBYCODE;O13OPT;RRFUSION_ANALOGINPUT;$I13B$;$I13P;OPT||SETVARBYCODE;O14OPT;RRFUSION_ANALOGINPUT;$I14B$;$I14P;OPT||SETVARBYCODE;O15OPT;RRFUSION_ANALOGINPUT;$I15B$;$I15P;OPT||SETVARBYCODE;O16OPT;RRFUSION_ANALOGINPUT;$I16B$;$I16P;OPT||SETVARBYCODE;O17OPT;RRFUSION_ANALOGINPUT;$I17B$;$I17P;OPT"
                "SETOPT2","SETVARBYCODE;O18OPT;RRFUSION_ANALOGINPUT;$I18B$;$I18P;OPT||SETVARBYCODE;O19OPT;RRFUSION_ANALOGINPUT;$I19B$;$I19P;OPT||SETVARBYCODE;O20OPT;RRFUSION_ANALOGINPUT;$I20B$;$I20P;OPT||SETVARBYCODE;O21OPT;RRFUSION_ANALOGINPUT;$I21B$;$I21P;OPT||SETVARBYCODE;O22OPT;RRFUSION_ANALOGINPUT;$I22B$;$I22P;OPT||SETVARBYCODE;O23OPT;RRFUSION_ANALOGINPUT;$I23B$;$I23P;OPT||SETVARBYCODE;O24OPT;RRFUSION_ANALOGINPUT;$I24B$;$I24P;OPT||SETVARBYCODE;O25OPT;RRFUSION_ANALOGINPUT;$I25B$;$I25P;OPT"
                "SETVAL1","SETVARBYCODE;O1VAL;RRFUSION_ANALOGINPUT;$I1B$;$I1P;VAL||SETVARBYCODE;O2VAL;RRFUSION_ANALOGINPUT;$I2B$;$I2P;VAL||SETVARBYCODE;O3VAL;RRFUSION_ANALOGINPUT;$I3B$;$I3P;VAL||SETVARBYCODE;O4VAL;RRFUSION_ANALOGINPUT;$I4B$;$I4P;VAL||SETVARBYCODE;O5VAL;RRFUSION_ANALOGINPUT;$I5B$;$I5P;VAL||SETVARBYCODE;O6VAL;RRFUSION_ANALOGINPUT;$I6B$;$I6P;VAL||SETVARBYCODE;O7VAL;RRFUSION_ANALOGINPUT;$I7B$;$I7P;VAL||SETVARBYCODE;O8VAL;RRFUSION_ANALOGINPUT;$I8B$;$I8P;VAL||SETVARBYCODE;O9VAL;RRFUSION_ANALOGINPUT;$I9B$;$I9P;VAL||SETVARBYCODE;O10VAL;RRFUSION_ANALOGINPUT;$I10B$;$I10P;VAL||SETVARBYCODE;O11VAL;RRFUSION_ANALOGINPUT;$I11B$;$I11P;VAL||SETVARBYCODE;O12VAL;RRFUSION_ANALOGINPUT;$I12B$;$I12P;VAL||SETVARBYCODE;O13VAL;RRFUSION_ANALOGINPUT;$I13B$;$I13P;VAL||SETVARBYCODE;O14VAL;RRFUSION_ANALOGINPUT;$I14B$;$I14P;VAL||SETVARBYCODE;O15VAL;RRFUSION_ANALOGINPUT;$I15B$;$I15P;VAL||SETVARBYCODE;O16VAL;RRFUSION_ANALOGINPUT;$I16B$;$I16P;VAL||SETVARBYCODE;O17VAL;RRFUSION_ANALOGINPUT;$I17B$;$I17P;VAL"
                "SETVAL2","SETVARBYCODE;O18VAL;RRFUSION_ANALOGINPUT;$I18B$;$I18P;VAL||SETVARBYCODE;O19VAL;RRFUSION_ANALOGINPUT;$I19B$;$I19P;VAL||SETVARBYCODE;O20VAL;RRFUSION_ANALOGINPUT;$I20B$;$I20P;VAL||SETVARBYCODE;O21VAL;RRFUSION_ANALOGINPUT;$I21B$;$I21P;VAL||SETVARBYCODE;O22VAL;RRFUSION_ANALOGINPUT;$I22B$;$I22P;VAL||SETVARBYCODE;O23VAL;RRFUSION_ANALOGINPUT;$I23B$;$I23P;VAL||SETVARBYCODE;O24VAL;RRFUSION_ANALOGINPUT;$I24B$;$I24P;VAL||SETVARBYCODE;O25VAL;RRFUSION_ANALOGINPUT;$I25B$;$I25P;VAL"
                Skin:
                Code:
                L,210,75,50,30,255,255,255,14,"Verdana","BYVAR;ANALOG$I1B$$I1P$DISPLAY;=$O1RAW$<<=$O1OPT$<<=$01VAL$",
                L,210,110,50,30,255,255,255,14,"Verdana","BYVAR;ANALOG$I2B$$I2P$DISPLAY;=$O2RAW$<<=$O2OPT$<<=$02VAL$",
                L,210,145,50,30,255,255,255,14,"Verdana","BYVAR;ANALOG$I3B$$I3P$DISPLAY;=$O3RAW$<<=$O3OPT$<<=$03VAL$",
                L,210,180,50,30,255,255,255,14,"Verdana","BYVAR;ANALOG$I4B$$I4P$DISPLAY;=$O4RAW$<<=$O4OPT$<<=$04VAL$",
                L,210,215,50,30,255,255,255,14,"Verdana","BYVAR;ANALOG$I5B$$I5P$DISPLAY;=$O5RAW$<<=$O5OPT$<<=$05VAL$",
                L,210,250,50,30,255,255,255,14,"Verdana","BYVAR;ANALOG$I6B$$I6P$DISPLAY;=$O6RAW$<<=$O6OPT$<<=$06VAL$",
                L,210,285,50,30,255,255,255,14,"Verdana","BYVAR;ANALOG$I7B$$I7P$DISPLAY;=$O7RAW$<<=$O7OPT$<<=$07VAL$",
                L,210,320,50,30,255,255,255,14,"Verdana","BYVAR;ANALOG$I8B$$I8P$DISPLAY;=$O8RAW$<<=$O8OPT$<<=$08VAL$",
                L,210,355,50,30,255,255,255,14,"Verdana","BYVAR;ANALOG$I9B$$I9P$DISPLAY;=$O9RAW$<<=$O9OPT$<<=$09VAL$",
                L,210,390,50,30,255,255,255,14,"Verdana","BYVAR;ANALOG$I10B$$I10P$DISPLAY;=$O10RAW$<<=$O10OPT$<<=$010VAL$",
                L,210,425,50,30,255,255,255,14,"Verdana","BYVAR;ANALOG$I11B$$I11P$DISPLAY;=$O11RAW$<<=$O11OPT$<<=$011VAL$",
                L,210,460,50,30,255,255,255,14,"Verdana","BYVAR;ANALOG$I12B$$I12P$DISPLAY;=$O12RAW$<<=$O12OPT$<<=$012VAL$",
                not very efficient having a timer running like that...but whatever, at least that means i can use those variables anywhere I want in the skin without issue... I already switched all of my files over that use the same 2 variables on pretty much every screen, so this is minorly beneficial i suppose...
                Planning: [|||||||||-] 90%
                Purchased: [|||||||||/] 99%
                Installation: [|||||||||-] 90% (when is anyone's project ever REALLY done...)

                Comment


                • #10
                  do you know the command BYVARX?

                  Code:
                  "BYVARX;var;(cmd0<<cmd1<<cmd3<<...)"
                  	With this extended byvar, syntax requires a opening and closeing Parentheses ( ).
                  	Now multiple commands for each case are allow, no need for any exectbl.ini coding
                  	example #1:
                  	"BYVARX;myvar;(load;pictures.skin||playsound;$SKINPATH$Sounds\boing.wav<<load;drawings.skin||playsound;$SKINPATH$Sounds\bong.wav)"
                  		if myvar = 0, pictures.skin will load, and playsound will play boing.wav
                  		if myvar = 1, drawings.skin will load, and playsound will play bong.wav
                  	example #2:
                  	"BYVARX;myvar;(load;newskin0.skin<<load;newskin1.skin||setvar;blabla;1)||playsound;$SKINPATH$Sounds\ping.wav)"
                  	  if myvar = 0, newskin0.skin will load, and playsound will play ping.wav
                  	  if myvar = 1, newskin1.skin will load, variable "blabla" will be set to 1, and playsound will play ping.wav
                  Last edited by harryberlin; 12-23-2012, 02:31 PM.
                  RR-Skin: BMW OpenBM Skin for E39 [never ending progress :-(]
                  RR-Plugin: IBusCommunicatoRR new Updates

                  Comment

                  Working...
                  X