The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > Road Runner

Reply
 
Thread Tools Display Modes
Old 04-24-2006, 01:30 PM   #1
FLAC
 
Join Date: May 2005
Location: Vienna, VA
Posts: 1,382
My Photos: (0)
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
File Type: zip rrsdk.zip (1.1 KB, 61 views)
b8bboi is offline   Reply With Quote
Sponsored Links
Old 04-24-2006, 02:08 PM   #2
RoadRunner Mastermind
guino's CarPC Specs
 
guino's Avatar
 
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Vehicle: 04/Mazda/RX-8
Posts: 8,028
My Photos: (5)
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.
__________________
Road 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."
guino is offline   Reply With Quote
Old 04-24-2006, 03:12 PM   #3
FLAC
 
Join Date: May 2005
Location: Vienna, VA
Posts: 1,382
My Photos: (0)
Quote:
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
File Type: zip rrsdk.zip (1.0 KB, 72 views)

Last edited by b8bboi : 04-24-2006 at 03:15 PM.
b8bboi is offline   Reply With Quote
Old 04-24-2006, 03:53 PM   #4
RoadRunner Mastermind
guino's CarPC Specs
 
guino's Avatar
 
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Vehicle: 04/Mazda/RX-8
Posts: 8,028
My Photos: (5)
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.
__________________
Road 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."
guino is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can this be done ashgrovered Coders Corner 19 04-04-2006 11:50 PM
Parallel port relay control in RR using Autoit? momanz Road Runner 4 02-28-2006 02:20 PM
Sending RR commands to RR inside FD....... Spaghetti FreeDrive 0 12-24-2005 06:49 AM
SDK commands over the serial port ???? tolisn Road Runner 4 12-14-2005 12:03 PM
status update.... 0l33l PowerVoice 17 05-05-2005 12:22 PM


All times are GMT -5. The time now is 09:28 PM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics