Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 36

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

  1. #21
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    you should receive the "ONSONGSTART" in the plugin extension. Other than that, you'd have to poll it (which is pretty much what RR does with winamp). RR does everything on a 1sec basis, keeps overhead low. 2 times per second should not be too bad either though some things will only update every second, which defeats the purpose.
    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. #22
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    Quote Originally Posted by Iceman_jkh View Post
    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?
    You won't gain anything as far as any of the GPS data goes if you poll it 1/sec or 60/sec, as I woud assume that you know that the GPS data only gets updated 1/sec..anymore is just wasted CPU usage...

    Edit: beaten to the punch...
    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. #23
    Maximum Bitrate
    Join Date
    Nov 2005
    Posts
    597
    opps ... forgot about the GPS being that slow .
    Thanks for the info, I'll poll the data in that case.

  4. #24
    Maximum Bitrate
    Join Date
    Nov 2005
    Posts
    597
    Is ONSONGSTART usable in VB6? If so, how do I get it to trigger other commands?

  5. #25
    Maximum Bitrate
    Join Date
    Nov 2005
    Posts
    597
    What would be the best way to determine if RR is in FMRadio mode?

    I plan to poll for FM Mode, and only extend the power antenna when FM is on.

    Ive looked at Skin commands.txt, but there was nothing definitive. The closest I found was to try and find when the FMRadio line was MUTED and assume that when radio is muted then FM is off.

  6. #26
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    I would create a varible and when you go into radio mode then just change the var between 0-off and 1-on then you would just have to poll the var to see what is current value is.

    button code to go something like this when you go into or start the radio, for the ex I'll use 'radio_status'

    Add a var to rr.ini-----radio_status=0 <--when you start rr it will assign the var to 0 and radio would be off

    then in your exectbl.ini

    "Radio","setvar;radio_status;1||Radio"
    "Audio","setvar;radio_status;0||Audio"

    Then just do the same for the other ways that you listen to music
    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."

  7. #27
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    you can monitor all commands executed in RR via the processcommand sub.. if "RADIO" goes by, you know you went into radio mode, if "AUDIO" goes by you know you went back and so on.. you can also monitor the current screen as it is passed along with the command being executed (frm.tag).
    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."

  8. #28
    Variable Bitrate
    Join Date
    Nov 2006
    Posts
    265

    RoadRunner COM examples in C++

    Anyone have an example of communicating with RR from C++ using the COM option?

    A simple example of creating the object and doing a GetInfo would be fine.

    I must use C++ to get access to some functionality that I can't get to with AutoIt.

    Any and all help appreciated.

    Regards,
    Jim

  9. #29
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    Out of curiousotisy(sp), what can't you get w/ autoit?

    I've attached the C++ examples from the RR source zip.
    Attached Files Attached Files
    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."

  10. #30
    Variable Bitrate
    Join Date
    Nov 2006
    Posts
    265
    Blue ZX3,

    Thanks for the zip file but that uses the Windows SendMessage method.

    What I am looking for is an example of the COM/Activex technique in C++ that is the equivalent of the VB "Set SDK = CreateObject("RoadRunner.SDK")" or the AutoIt "$SDK=ObjCreate("RoadRunner.SDK").

    I must be having a senior moment but for the life of me I can't remember how to do that same thing in C++.

    As to your question about why I need to use C++, I am playing with the Command and Control support of SAPI (voice reco) and several of the calls require wide characters (as in the L"commands.xml" form of a literal) and I can't find a way to either not have to use that form or a way to create such a literal in AutoIt. BTW, I should note that AutoIt and SAPI seem to have some "togetherness issues" (lagging, hanging, crashing) that I don't have with C++.

    My program runs fine in C++ but I need to get data from RR and send RR commands and don't really want to write the windows message processing support for message coming to my program in C++ if I can use the COM/Activex support.

    So, being an equal opportunity person relative to programming languages, I would use either C++ or AutoIt although I would prefer C++ for this one.

    Regards,
    Jim

Page 3 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
  •