Announcement

Collapse
No announcement yet.

Need help with sending RR SDK commands from AutoIt

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

  • Need help with sending RR SDK commands from AutoIt

    Like the title said, I'm trying to send SDK commands from my AutoIt scripts. This is what I got so far. (I'll include 2 scripts here.)

    receiver.au3 - This app can receive any WM_COPYDATA message. It stays in the Task Tray. The window name to send the message to is "Receiver". Run this app. Then do an exec.exe command like this.
    Code:
    C:\Program Files\Road Runner>exec.exe REQUEST;Receiver;TRACKNAME
    You should see a MsgBox pop up with the track name.


    send.au3 - This is where I have problems. I can use it to SendMessage to receiver.au3 listed above (Open send.au3. On line 5, change "RoadRunner" to "Receiver" then execute it). However, it cannot SendMessage to RoadRunner. RR doesn't seem to response.

    Note: You need AutoIt 3.1.1 (latest) to run these scripts. You can download it here.
    http://www.autoitscript.com/autoit3/downloads.php
    (Install AutoIt and double-click directly on the scripts).

    I'd appreciate any help.
    Attached Files
    iGMon - Integration between iGuidance and Road Runner
    CFX - Skin for Road Runner

  • #2
    wow, you actually got it to receive data from RR in your script (I'm impressed) .. interesting that you were unable to send ..

    Anyway, keep in mind that I don't much at all about autoit scripts. Still, looking at your code, you're doing +1 to the string length which is probably adding an extra "garbage" character to your command being sent.. this could prevent RR from interpreting the command from what it's supposed to be. A quick test would be to send a multi-command like PLAY||NEXT chances are that if the garbage is the problem, the first command would work and the second would not.

    In any case, I hope you realize that the SendCommand function you made would have the same effect as using exec.exe (perhaps just better for commands with: >> || and ; ) -- something you can overcome with exectbl.ini.

    I also hope that you're aware of the SENDMSG command in RR that would allow you to send data to your autoit script directly from RR's skin (pressing buttons etc) -- this is just a tip

    PS: If you get the SEND script to work, I'd like to include those scripts to RR's SDK examples with your permission.
    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
      Anyway, keep in mind that I don't much at all about autoit scripts. Still, looking at your code, you're doing +1 to the string length which is probably adding an extra "garbage" character to your command being sent.. this could prevent RR from interpreting the command from what it's supposed to be. A quick test would be to send a multi-command like PLAY||NEXT chances are that if the garbage is the problem, the first command would work and the second would not.
      Woah, great tips, guino. That solved it. Weird because on line 10, I have to leave the "+1" in for it to work.

      Of course, please post it in the SDK examples for others to use.

      New files included here.
      Attached Files
      iGMon - Integration between iGuidance and Road Runner
      CFX - Skin for Road Runner

      Comment


      • #4
        Cool, thanks! I've also just posted a FAQ on using the BasePlugin sources for those who read this interested in interfacing different things into RR.
        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