Results 1 to 5 of 5

Thread: Remote controlling RoadRunner

  1. #1
    Phone Control Moderator zorro's Avatar
    Join Date
    Mar 2004
    Location
    Munich, Germany
    Posts
    1,902

    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 Attached Files
    Skinning to go... VisualDesigner2!

  2. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    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."

  3. #3
    Phone Control Moderator zorro's Avatar
    Join Date
    Mar 2004
    Location
    Munich, Germany
    Posts
    1,902
    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 Attached Files
    Skinning to go... VisualDesigner2!

  4. #4
    Phone Control Moderator zorro's Avatar
    Join Date
    Mar 2004
    Location
    Munich, Germany
    Posts
    1,902
    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!

  5. #5
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    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."

Similar Threads

  1. Roadrunner Skinning Tutorial
    By Meelobee in forum RR Skins
    Replies: 14
    Last Post: 12-30-2005, 08:28 PM
  2. remote controlling PC over Bluetooth?
    By whoracle in forum Wireless Communications
    Replies: 1
    Last Post: 12-30-2004, 08:02 PM
  3. Automotive Security
    By Maeveth in forum General MP3Car Discussion
    Replies: 18
    Last Post: 04-07-2004, 02:33 AM
  4. ME 2.0 Official Bug Reports
    By phat_bastard in forum ME Archive
    Replies: 67
    Last Post: 01-31-2004, 07:27 PM
  5. ps2 pelican remote w/ creative reciever & girder
    By ShinkunoNamida in forum Input Devices
    Replies: 0
    Last Post: 04-26-2003, 03:00 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
  •