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.
opps ... forgot about the GPS being that slow .
Thanks for the info, I'll poll the data in that case.
Is ONSONGSTART usable in VB6? If so, how do I get it to trigger other commands?
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.
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
Then just do the same for the other ways that you listen to music
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).
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.
Out of curiousotisy(sp), what can't you get w/ autoit?
I've attached the C++ examples from the RR source zip.
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.