Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 36

Thread: How to communicate with RR via COM/ActiveX?

  1. #11
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    if you place the "GPSXXX" labels directly in RR's skin do they show the correct info with the same settings ?

    The RREarth plugin uses that exact same interface, so I know for a fact the information from the interface is working fine (as long as your GPS is propperly setup). If anything try setting RR to read the GPS port directly and see if it works, then work your way around with XPort3 to share the GPS. RR CAN poll the GPS info from both FD and MM, but you must set them up propperly for it to work. There's a FAQ on that and FD has very clear instructions on that as well.
    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."

  2. #12
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    Ok, I have a question???

    I am working on an app and I pull several bits of data from RR. Instead of polling rr for each piece of data, I have tried sending multiple commands and it works great, but it just smashes all of the requested data into one long string.

    Basically what I'm looking/asking for is a way to use a delimiter with it so that I can try and save some cpu's. As one call to get all the data should be more efficeint than calling rr for each and every piece of data seperatly??

    EX...

    $rr = ObjCreate("RoadRunner.SDK")

    $MY = $rr.GetInfo("VOLUME||GPSLAT||GPSLON||STATUS")

    Returns - "80%0.0000000.000000PAUS"

    Thanks.
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

  3. #13
    Mo' Programming Mo' Problems
    Auto Apps:loading...
    Sonicxtacy02's Avatar
    Join Date
    Sep 2004
    Location
    Woodbridge, VA
    Posts
    8,173
    Blog Entries
    53
    Quote Originally Posted by Blue ZX3 View Post
    Ok, I have a question???

    I am working on an app and I pull several bits of data from RR. Instead of polling rr for each piece of data, I have tried sending multiple commands and it works great, but it just smashes all of the requested data into one long string.

    Basically what I'm looking/asking for is a way to use a delimiter with it so that I can try and save some cpu's. As one call to get all the data should be more efficeint than calling rr for each and every piece of data seperatly??

    EX...

    $rr = ObjCreate("RoadRunner.SDK")

    $MY = $rr.GetInfo("VOLUME||GPSLAT||GPSLON||STATUS")

    Returns - "80%0.0000000.000000PAUS"

    Thanks.
    hey blue, are you coding in vb or autoit? i'm still using the request method in all my autoit scripts and i was wondering if i could see an example of this in autoit.
    mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
    Find my plugins on the MP3Car App Store!
    Follow Me on Twitter or Facebook
    Live mp3Car Facebook Chat

  4. #14
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    Quote Originally Posted by Sonicxtacy02 View Post
    hey blue, are you coding in vb or autoit? i'm still using the request method in all my autoit scripts and i was wondering if i could see an example of this in autoit.
    Hahahahah...It's right there...Just LOL

    I have just started to mess with the whole SDK send/rec autoit scrips and decieded to look at the vb.net to see how it was done b/c I use the autoit com at work to enter data in to excel and figured I'd just give it a try...

    So, in a nut shell.....YES....much,much,much easier to do the same things and doesn't require messing with those other scripts.

    PS...one drawback, is that I believe that the RR ver can be no older than 10-8 release...otherwise it doesn't work...

    Happy Code updating..

    I guess that all you need to do is try and create the obj and if you can't then just fall back to using the old method, to cover all users!


    Something along this line...

    $oRR = ObjCreate("RoadRunner.SDK")
    If @error Then .....
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

  5. #15
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    I have another quest...how would we do the same, but in reverse. Be able to send commands to an autoit script using com/objects?

    I'm guessing that we'd have to use the objectEvent to somehow catch an incomming message...I can talk to other app but I'd like to know how to talk to my own app...

    Thanks!
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

  6. #16
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    for all I know, it would not be any better to poll the info all together as you posted (using ||) as you'd be wasting performance by simply parsing the data afterwards anyway. But you can always just make up a separator and split the data if you want .. something like: GPSLON||=*||GPSLAT .. would result in something like XX.XXXX*XX.XXXX .. but as I said, you should most likely just get each piece of data separetely -- as long as you get the data once and store it in a variable (instead of using getinfo for each time you use it), you should be ok.
    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."

  7. #17
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    Well, when running on an epia board, I try to maximize effiency! I will have to test and see...

    Thanks,
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

  8. #18
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    Quote Originally Posted by Blue ZX3 View Post
    I have another quest...how would we do the same, but in reverse. Be able to send commands to an autoit script using com/objects?
    I'm guessing that we'd have to use the objectEvent to somehow catch an incomming message...I can talk to other app but I'd like to know how to talk to my own app...
    Thanks!
    Either you'd have to make a COM object in autoit, or keep monitoring data from another application... in RR you could monitor a variable for instance that could be something for your autoit script to execute..

    <Do every 1s>
    CMD = RR.GetInfo("=$CMDVAR$")
    IF CMD="Command1" then <do whatever>
    IF CMD=... then <etc>
    <loop above>

    Then in RR you'd just use SETVAR;CMDVAR;Command1 or whatever you wished to execute.
    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."

  9. #19
    Mo' Programming Mo' Problems
    Auto Apps:loading...
    Sonicxtacy02's Avatar
    Join Date
    Sep 2004
    Location
    Woodbridge, VA
    Posts
    8,173
    Blog Entries
    53
    gonna try to convert a few scripts and see what i get here today. i take it this method is less cpu intensive than the request method
    mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
    Find my plugins on the MP3Car App Store!
    Follow Me on Twitter or Facebook
    Live mp3Car Facebook Chat

  10. #20
    Maximum Bitrate
    Join Date
    Nov 2005
    Posts
    597
    Is there any way to know when the track changes in RR so that the app can update the current trackname as well? Does RR trigger any sort of event, or must this be done via polling?

    I'm looking at grabbing Trackname, GPS Latitude/Logitude/heading and a few things like that. In this case, I'll likely be polling 1-2 times a second. Is this bad programming practise and with too much overhead? Is there a smarter way to do it?

Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. REQUEST: Run Multiple RR instances
    By Jarrod in forum Road Runner
    Replies: 33
    Last Post: 12-21-2008, 08:54 AM
  2. Replies: 0
    Last Post: 09-23-2006, 09:38 PM
  3. Replies: 0
    Last Post: 06-11-2006, 06:49 PM
  4. RR doesn't start Phoco on initial load..
    By DutchBurner in forum Road Runner
    Replies: 16
    Last Post: 11-04-2005, 02:17 PM
  5. status update....
    By 0l33l in forum PowerVoice
    Replies: 17
    Last Post: 05-05-2005, 01:22 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
  •