Announcement

Collapse
No announcement yet.

setvar

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

  • setvar

    in skin commands.txt:

    "SETVAR" - This allows you to set a global variable in RR. Those variables can be used for simple reference in the skin commands
    or be used to toggle between different groups of commands on skins (using BYVAR command).
    Example: "SETVAR;APPPATH;C:\MyApp\Myapp.exe"
    Then you can reference the variable APPPATH like this: "RUN;$APPPATH$"

    Note: SOME (but not all) settings in RR.INI can be changed in runtime.
    Note2: You can use ++ in this command when you'd like to delay reference to || on a command or label:
    [HL]Example1: Label Code: "$MYLABEL$" -- "SETVAR;MYLABEL;DATE++= ++TIME" (Displays DATE and TIME)[/HL]
    Example2: Command Code: "$MYCMD$" -- "SETVAR;MYCMD;AUDIO++PAUSE" (Executes AUDIO and PAUSE)


    The highlighted bit does not work. tried it manyy times in many scenarios. just doesnt work.

  • #2
    there's nothing wrong with it -- you just made me spend time testing it again. It works fine, you probably just don't have a label large enough to fit the information for display.
    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."

    Comment


    • #3
      Originally posted by guino View Post
      there's nothing wrong with it -- you just made me spend time testing it again. It works fine, you probably just don't have a label large enough to fit the information for display.
      sry to upset, i still cant get it to work, and i know my labels large enough. its probably something im doing. ill keep looking at it, sorry to bother

      Comment


      • #4
        maybe you're running an older/buggy version ? post your .skin file and I'll look at it.
        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."

        Comment


        • #5
          Got the same problem that SETVAR is not execute in label code

          Code:
          
          L03,202,369,370,24,#COL3R#,#COL3G#,#COL3B#,16,#FONT1#,"SETVAR;MYVAR;ABC||=$MYVAR$","CENTER"

          The label display nothing with above code

          Comment

          Working...
          X