Results 1 to 10 of 10

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

  1. #1
    Variable Bitrate
    Join Date
    Sep 2007
    Location
    Export, PA
    Posts
    265

    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. #2
    Variable Bitrate
    Join Date
    Sep 2007
    Location
    Export, PA
    Posts
    265
    nobody?
    Planning: [|||||||||-] 90%
    Purchased: [|||||||||/] 99%
    Installation: [|||||||||-] 90% (when is anyone's project ever REALLY done...)

  3. #3
    FLAC
    Auto Apps:loading...
    EL CAMINO's Avatar
    Join Date
    Jul 2005
    Location
    upland california us
    Posts
    1,283
    have you tried, "=ANALOG||=$I2B$$I2P$||=RAW"

  4. #4
    Variable Bitrate
    Join Date
    Sep 2007
    Location
    Export, PA
    Posts
    265
    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...)

  5. #5
    Variable Bitrate
    Join Date
    Sep 2007
    Location
    Export, PA
    Posts
    265
    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...)

  6. #6
    FLAC
    Auto Apps:loading...
    EL CAMINO's Avatar
    Join Date
    Jul 2005
    Location
    upland california us
    Posts
    1,283
    well, testing with this code:

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

    Code:
    RRPATH IS:C:\Program Files\RideRunner\ ..

  7. #7
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,632
    I think what he's doing is trying to make a variable name out of the contents of another variable.

    in which case, it doesn't really work like that.

  8. #8
    Variable Bitrate
    Join Date
    Sep 2007
    Location
    Export, PA
    Posts
    265
    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...)

  9. #9
    Variable Bitrate
    Join Date
    Sep 2007
    Location
    Export, PA
    Posts
    265
    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...)

  10. #10
    Variable Bitrate
    Join Date
    Sep 2012
    Location
    Germany - Munich
    Posts
    406
    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 at 02:31 PM.

Similar Threads

  1. Use of Byvar within byvar
    By lambosprit in forum RR Skins
    Replies: 13
    Last Post: 07-01-2011, 02:15 PM
  2. BYVAR nesting?
    By shaken94 in forum Road Runner
    Replies: 3
    Last Post: 05-05-2011, 09:14 AM
  3. Byvar and LoadIMG problem
    By toxic000 in forum Road Runner
    Replies: 14
    Last Post: 03-08-2009, 04:49 AM
  4. using BYVAR in Indicator
    By turchino in forum Road Runner
    Replies: 4
    Last Post: 11-22-2006, 11:01 AM
  5. Dynamic Labels
    By maiwand in forum Road Runner
    Replies: 2
    Last Post: 08-01-2005, 10:42 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
  •