Results 1 to 6 of 6

Thread: Sending COM Commands to RR with dynamic actions

  1. #1
    JiC
    JiC is offline
    Newbie
    Join Date
    Sep 2008
    Posts
    26

    Sending COM Commands to RR with dynamic actions

    I'm using a Fusion Brain to send commands like Play,Vol-,GPS etc generated by my steering wheel controls to RoadRunner.

    What I would like is Fusion to send generic commands like MODE,MODE_HOLD, TRKDOWN, etc and have RoadRunner take the appropriate action. For example, while on the GPS screen I would like TRKUP to zoom out, but on the main screen it should change tracks.

    Is it possible to do this using /defines as each screen loads?
    In gps_external.skin have /define TRKDOWN "ZOOM+"
    in menu.skin have /define TRKDOWN "NEXT"
    then call #TRKDOWN# from my Fusion code?

    Or should this be handled by an EVAL command and a strcomp() with RRScreen? I need some help as to how this command would look.

    Thanks for any input and for reading,
    Chris

  2. #2
    One Sharp Cheddar ThunderStick's Avatar
    Join Date
    Aug 2006
    Location
    West Allis, WI
    Posts
    1,657
    You could set a variable with each screen change and then use the BYVAR for your command.
    New Age Garmin - Skin for RR
    New Age Slider - RR SKin In Progress
    "It's called CODE because I don't want you to know"

  3. #3
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    You can make a screen specific commands in ExecTBL.ini like so:

    "TRKDOWN","ZOOM+",gps_external.skin
    "TRKDOWN","NEXT",menu.skin
    Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

  4. #4
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    I highly recommend the EXECTBL approach like Sal suggested - it's quite simple and very powerful as it allows you to execute different things not only based on which SCREEN you are in, but also based on WHAT you're using (radio/audio/xm etc) -- plus it will work on ANY skin. You can also combine the ExecTBL approach with a variable as well, or just use a BYVAR in exectbl to execute the specific command based on the activesourceid info. Thunder's suggestion works too, but it's probably a better solution for few changes on different screens of the same skin only.
    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."

  5. #5
    One Sharp Cheddar ThunderStick's Avatar
    Join Date
    Aug 2006
    Location
    West Allis, WI
    Posts
    1,657
    I agree with guino, and wasnt even aware of sal's solution.
    Now that I like...
    New Age Garmin - Skin for RR
    New Age Slider - RR SKin In Progress
    "It's called CODE because I don't want you to know"

  6. #6
    JiC
    JiC is offline
    Newbie
    Join Date
    Sep 2008
    Posts
    26
    Thanks for the help guys!

    ExecTBL.ini was definitely the way to go here. An example: when holding 'mode' fusion will send FUSION_MODE_HOLD and my exectbl looks like this:
    Code:
    "FUSION_MODE_HOLD","LASTSCR",EXTERNAL_GPS.skin
    "FUSION_MODE_HOLD","GPS"
    When I hold mode in any screen it flips to my GPS, when held in GPS it flips back to the previous screen.

Similar Threads

  1. RR doesnt always see my HU commands
    By uhohrobbo in forum Road Runner
    Replies: 9
    Last Post: 06-09-2009, 06:37 AM
  2. Resume command throws RR to 100% - All fixed
    By obrienj in forum RR Bug Tracker
    Replies: 3
    Last Post: 08-25-2008, 08:37 PM
  3. To Guino: sending commands to MPC
    By ildena in forum Road Runner
    Replies: 5
    Last Post: 07-20-2006, 12:38 AM
  4. Sending keypress's to RR ?
    By CdRsKuLL in forum Road Runner
    Replies: 3
    Last Post: 03-17-2005, 07:53 PM
  5. Help with dynamic commands ???
    By tolisn in forum Road Runner
    Replies: 4
    Last Post: 01-29-2005, 02:29 AM

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
  •