Announcement

Collapse
No announcement yet.

Passing data outside of RR - can you weight in guino?

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

  • Passing data outside of RR - can you weight in guino?

    For those who have not seen my project, I'm working on a skin that pulls data in from vag-com

    I have gotten everything working, but one of the things I need to incorporate is the ability to establish an offset for the average MPG. I have the .exe pulling the offset from a config file, but I want to offer the ability for it to be set within road runner since it will have to be set every tank. What I currently am able to do is have my program both get the value from a label, but I need to be able to allow the user to dynamically change the label...preferably with the osk, and I also need to be able to set the initial value with my external .exe, which stores the latest value in the config file and loads it when the program starts up.

    What is the best way to achieve these objectives?

    Any help is appreciated, thanks all.

  • #2
    bump

    No suggestions?

    Comment


    • #3
      Instead of grabbing your information from a label, why not set a variable instead? A variable can be displayed as a label using "=$variable$" code.

      That way, you can use "OSKTOVAR;variable" to prompte the user to define the input in RR. Once the variable is set, allow your external .exe to pull the variable via "getinfo" and you can store that value in your config that can be loaded on startup.

      Make sense?
      Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

      Comment


      • #4
        Originally posted by Sal R. View Post
        Instead of grabbing your information from a label, why not set a variable instead? A variable can be displayed as a label using "=$variable$" code.

        That way, you can use "OSKTOVAR;variable" to prompte the user to define the input in RR. Once the variable is set, allow your external .exe to pull the variable via "getinfo" and you can store that value in your config that can be loaded on startup.

        Make sense?

        that's exactly what I was looking for.

        I was having a hard time finding an example of the osk that did not just call "OSK".

        Comment


        • #5
          Originally posted by puter View Post
          that's exactly what I was looking for.

          I was having a hard time finding an example of the osk that did not just call "OSK".
          Here you go:

          OSK Prompt to all user to set a label:
          Button code:
          Code:
          BXX,...,"OSKTOVAR;tankoffsetvariable"
          
          
          .
          Label Code:
          Code:
          LXX,...,"=$tankoffsetvariable$",...
          
          
          .
          To pass variable info to AI:
          Code:
          $rr = ObjCreate("RoadRunner.sdk")
          
          $tankoffset = $rr.getinfo("=$tankoffsetvariable$")
          Pass info from AI to RR:
          Code:
          $rr.execute("SETVAR;tankoffsetvariable;<value>")
          
          
          .
          Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

          Comment


          • #6
            awesome, you guys rock

            Comment


            • #7
              What guys?

              It was just me?

              Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

              Comment


              • #8
                my bad.

                Comment


                • #10
                  oh noes!

                  I've been out'ed!

                  Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

                  Comment

                  Working...
                  X