Results 1 to 10 of 10

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

  1. #1
    Low Bitrate
    Join Date
    Dec 2007
    Posts
    77

    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. #2
    Low Bitrate
    Join Date
    Dec 2007
    Posts
    77
    bump

    No suggestions?

  3. #3
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    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

  4. #4
    Low Bitrate
    Join Date
    Dec 2007
    Posts
    77
    Quote 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".

  5. #5
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    Quote 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

  6. #6
    Low Bitrate
    Join Date
    Dec 2007
    Posts
    77
    awesome, you guys rock

  7. #7
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    What guys?

    It was just me?

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

  8. #8
    Low Bitrate
    Join Date
    Dec 2007
    Posts
    77
    my bad.

  9. #9
    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,585
    Quote Originally Posted by Sal R. View Post
    What guys?

    It was just me?



    He knows about your split personality.

  10. #10
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    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

Similar Threads

  1. Lsx Void 3.0
    By liquid_smoke in forum RR Skins No Longer Supported
    Replies: 3171
    Last Post: 12-11-2013, 03:05 AM
  2. My small hardware to RR
    By mauri in forum Road Runner
    Replies: 42
    Last Post: 11-28-2009, 04:43 PM
  3. Replies: 66
    Last Post: 09-29-2007, 01:28 AM
  4. Pinout Color Codes / Tables
    By gummybear in forum General Hardware Discussion
    Replies: 4
    Last Post: 05-12-2005, 03:05 AM
  5. VOICES Traffic Data
    By stevieg in forum V.O.I.C.E.S
    Replies: 85
    Last Post: 05-31-2004, 08:24 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
  •