Announcement

Collapse
No announcement yet.

How to check the RR message (Command Not Executed: MYCOMMAND) into a VB6 plugin

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

  • How to check the RR message (Command Not Executed: MYCOMMAND) into a VB6 plugin

    Hello all,
    I try in a VB6 plugin to check if a RR command return or not an RR error into skintool as : (Command Not Executed: MYCOMMAND)

    I have tried these lines but without success !
    Code:
    Public Sub Test(text As String)
        On Error GoTo ErrorHandler
        RRSDK.Execute ("MYCOMMAND")
    ErrorHandler:
        RRSDK.ErrScrn "RR plugin Error !!!", "The 'MYCOMMAND' command isn't found into your ExecTBL.ini file !", "ex : ''MYCOMMAND'',''MENU;MYSCREEN.SKIN''", 15
    End Sub
    Thanks for your help

  • #2
    No guy can help me ?

    Comment


    • #3
      How do you compare the command in exectbl.ini?
      Why do you need this?
      RR-Skin: BMW OpenBM Skin for E39 [never ending progress :-(]
      RR-Plugin: IBusCommunicatoRR new Updates

      Comment


      • #4
        My goal was to have RR EVENTS into VB6 as i can to have in VB.NET

        Comment


        • #5
          insert to RRExtension.cls

          Code:
          Public Function ProcessCommand(CMD As String, frm As Object) As Integer
          
              Select Case LCase(CMD)
                  Case "mycommand"
                      yourfunction()
                      ProcessCommand = 2
              End Select
                  
          End Function
          Don't understand why do you want compare the exectbl.ini with working commands in riderunner.

          edit:
          did a test. becauseof the LCase use small letters to catch the command.
          Last edited by harryberlin; 11-20-2013, 02:22 PM.
          RR-Skin: BMW OpenBM Skin for E39 [never ending progress :-(]
          RR-Plugin: IBusCommunicatoRR new Updates

          Comment


          • #6
            Originally posted by harryberlin View Post
            insert to RRExtension.cls

            Code:
            Public Function ProcessCommand(CMD As String, frm As Object) As Integer
            
                Select Case LCase(CMD)
                    Case "mycommand"
                        yourfunction()
                        ProcessCommand = 2
                End Select
                    
            End Function
            Don't understand why do you want compare the exectbl.ini with working commands in riderunner.

            edit:
            did a test. becauseof the LCase use small letters to catch the command.
            I know already know that ! I work with each day ! It's the base of the RR plugin !
            The RaiseEvent function don't exist in VB6 and it's a problem

            Comment


            • #7
              Sorry, don't wanted to disabuse you.
              Why is there a probleme?
              RR-Skin: BMW OpenBM Skin for E39 [never ending progress :-(]
              RR-Plugin: IBusCommunicatoRR new Updates

              Comment


              • #8
                Create your specific RR event into your exectbl.ini file as:
                "ONMYSPECIALEVENTTHATILOVE","MYSPECIALCOMMAND"

                The goal would be to send a RR command from the plugin that RR can see an run the MYSPECIALCOMMAND defined into your exctbl.ini file

                Comment


                • #9
                  don't know why you have problems. in my case, it is working.
                  RR-Skin: BMW OpenBM Skin for E39 [never ending progress :-(]
                  RR-Plugin: IBusCommunicatoRR new Updates

                  Comment


                  • #10
                    Code:
                    Public Function ProcessCommand(CMD As String, frm As Object) As Integer
                    
                        Select Case LCase(CMD)
                            Case "mycommand"
                                yourfunction()
                                ProcessCommand = 2
                        End Select
                            
                    End Function
                    With this code example, if you add nothing into your exectbl.ini, the skintool return that the command mycommand isn't found

                    Comment


                    • #11
                      not correct.
                      the cmd mycommand runs the function in the plugin. has nothing to do with exectbl.

                      if you send from plugin and set in exectbl, you just see the following command in skintool. the command from plugin is hidden, but working.
                      if you don't set in exectbl, you get the error.
                      RR-Skin: BMW OpenBM Skin for E39 [never ending progress :-(]
                      RR-Plugin: IBusCommunicatoRR new Updates

                      Comment


                      • #12
                        Originally posted by harryberlin View Post
                        not correct.
                        the cmd mycommand runs the function in the plugin. has nothing to do with exectbl.

                        if you send from plugin and set in exectbl, you just see the following command in skintool. the command from plugin is hidden, but working.
                        if you don't set in exectbl, you get the error.
                        Exact , but with VB.NET , if you don't set the RR event into the exctbl.ini that don't give an error into the skintool !!!

                        Comment


                        • #13
                          oh,now i think to understand.

                          Does it mean you want get this error with vb .net?

                          or

                          You want cancel the error with vb6? But why?
                          RR-Skin: BMW OpenBM Skin for E39 [never ending progress :-(]
                          RR-Plugin: IBusCommunicatoRR new Updates

                          Comment


                          • #14
                            I want cancel the error with vb6 ! My goal was to create RR EVENT as that already exist into RR .BY example ONEXIT etc...

                            Comment


                            • #15
                              ok. i have an idea. will try it today evening.
                              RR-Skin: BMW OpenBM Skin for E39 [never ending progress :-(]
                              RR-Plugin: IBusCommunicatoRR new Updates

                              Comment

                              Working...
                              X