Announcement

Collapse
No announcement yet.

ComSend not working in first screen

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

  • ComSend not working in first screen

    Hi Guino,

    I'm trying to send commands to Road Runner using COMSend "RoadRunner", Command from a extension plugin. This is working but only after I have once switched to another screen. So, when I start Road Runner it will not accept commands (even when I pressed buttons) but Road Runner starts to accept commands after I have switched to another screen. It will then work on my menu.skin as well.

    Thanks
    My car: 2009 MAZDA CX-9 3.7L V6 runnin on LPG (Liquid Petrol Gas)
    Hardware: None at the moment
    Software: None at the moment
    See: Velleman K8055 Plugin for Road Runner

    Progress: [XXXXXXXXXX] 0 % DONE

  • #2
    You should not use Comsend from an extension plugin -- it will basically make a recursive call to your own extension plugin. Instead, you should return processcommand = 3 with the new command to execute in CMD. There's a note about that in the header of the extension plugin sources.
    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
      I'm not executing a comsend based on a command button in the extension plugin. The plugin (timer) checks the state of hardware buttons of my k8055 usb io board. I have assigned RR commands to these hardware buttons that will need to be executed from the extension plugin in RR. I'm using comsend for this. So this not be recursive. The problem I have occurs only when I start RR and have not switched to another screen. After switching to another screen everything is working correctly. If have been debuggin my code but it is working and the Comsend does not return an error but RR never executes the command.
      My car: 2009 MAZDA CX-9 3.7L V6 runnin on LPG (Liquid Petrol Gas)
      Hardware: None at the moment
      Software: None at the moment
      See: Velleman K8055 Plugin for Road Runner

      Progress: [XXXXXXXXXX] 0 % DONE

      Comment


      • #4
        If it works on one screen, it should work on all of them.. that's weird, unless there are other windows opened with the same name (thus the messages could be going to the wrong window).

        Have you tried the COM method ?

        Dim SDK as Object
        Set SDK = CreateObject("RoadRunner.SDK")
        then
        SDK.Execute "COMMAND"

        You'd do away with a bunch of code and it's a lot cleaner too -- check below for details.
        http://www.mp3car.com/vbulletin/rr-f...cation-rr.html
        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
          OK, I'll try switching to your SDK example.
          My car: 2009 MAZDA CX-9 3.7L V6 runnin on LPG (Liquid Petrol Gas)
          Hardware: None at the moment
          Software: None at the moment
          See: Velleman K8055 Plugin for Road Runner

          Progress: [XXXXXXXXXX] 0 % DONE

          Comment

          Working...
          X