Announcement

Collapse
No announcement yet.

Getting Events from the COM SDK

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

  • Getting Events from the COM SDK

    Hi Guino

    I am trying to get info from RR about what screens are active in RR using the SDK. I can send commands just fine with the COMSend function. But how do i get RR to tell my application that someone just pressed AUDIO, GPS, whatever.....button and/or command has been executed ?
    Not doing carpc anymore

  • #2
    I tried adding something like this to my menu.skin which in theory should make COMReceive fire and send AUDIO to my application, which is called RR_Joystick :
    B01,11,73,339,106,"AUDIO||SENDMSG;RR_Joystick;AUDI O","Audio player" But i get no firing of COMReceive
    Not doing carpc anymore

    Comment


    • #3
      in modSDK.bas i did this :

      Public Sub COMReceive(Data As String)
      Text1.Text = "Event" & " " & ":" & Data
      End Sub

      Just to show the data as it is received, but i get nothing
      Not doing carpc anymore

      Comment


      • #4
        Nobody knows? or has sample code ?
        Not doing carpc anymore

        Comment


        • #5
          You can simply use "SENDMSG" to send messages from the skin to your plugin.. just look up the command in skin commands.txt .. You'll need to hook a window of your plugin before receiving any messages.. check the SDK example application -- it has plenty of examples... You can actually monitor all the commands being executed in RR if you make an extension plugin.
          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


          • #6
            Ah, ok i see know. It seems i was trying to do this from the compiler....only works when the application has been compiled as far as i can tell.
            Not doing carpc anymore

            Comment


            • #7
              You have to run the compiled version as the window hooks can sometimes crash VB.. If you're coding a plugin in VB6, I would strongly recommend using the Extension plugin interface, but that's still up to you.
              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