Announcement

Collapse
No announcement yet.

Remote controlling RoadRunner

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

  • Remote controlling RoadRunner

    Hi Guino,

    I was trying to remote control RR using WM_COPYDATA and there's something I simply don't get. I was using the attached VB app to test.

    If I got that right, I'm supposed to copy the string I'm about to send into the COPYDATASTRUCT and send it. So far, I figured you're using ASCII (8-Bit code). The command I'm sending is one from the Skin Commands.txt.

    This is what I found out:
    If I'm sending "NEXT" (w/o the ") to jump to the next song: no response.
    But if I send a "SEEKTO;1:10" RR does what I want to. Also with "SETVOL;Wave;30".
    First, I was thinking this is because there are numbers at the end of the string, but then I've tried to load a skin and that worked too.

    Would you be so nice and tell me what I'm doing wrong?
    Attached Files
    Skinning to go... VisualDesigner2!

  • #2
    if your complex commands work, then the other commands should work too... the most common problems are when you're sending commands with missing characters... say for instance if you set the size of the string wrong by 1 char for instance.. cause the two complex commands above would work if missing the last character, but not the first one...

    EDIT: I'd be more than glad to look at any sources you have..
    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
      Here's the source code for you.
      It's a sample from www.vbactive.de, I've only replaced the window caption on FindWindow (and translated some texts).
      Since my original source in C# wasn't doin what I expected, I've downloaded this one to be on the "same language level". This is where I figured that VB is using single byte wereas C# (.NET) is using double byte characters by default.
      As you see there, the length should be right (5 on NEXT).
      Attached Files
      Skinning to go... VisualDesigner2!

      Comment


      • #4
        Never mind, found it.
        I've used the sample as it was and it adds +1 to the length but RR is expecting the string length without any trailing NULL character.

        If anyone is going to use the sample above, don't forget to remove the +1 from CD.cbData = Len(Data) + 1


        Now MWI supports RoadRunner as well
        Skinning to go... VisualDesigner2!

        Comment


        • #5
          cool beans.. it's pretty straight forward I mean, I knew it had to be something simple like that...
          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

          Working...
          X