Results 1 to 8 of 8

Thread: Checks events into a RR plugin

  1. #1
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,769

    Red face Checks events into a RR plugin

    I try to check my Sygic's events into RR (vb.net)!
    My sygic's events are:
    on_rrsygicdrive_route_usercancel
    on_rrsygicdrive_waipoint_visited
    on_rrsygicdrive_route_finish
    on_rrsygicdrive_route_computed
    on_rrsygicdrive_off_route
    ...

    So i have written these lines into my plugin:
    Code:
            'check sygic's events if not defined into the exectbl.ini
            If Left(LCase(CMD), 16) = "on_rrsygicdrive_" Then
                If Len(CMD) > 16 And InStr(CMD, ",") Then
                    sArray = Split(CMD, ",")
                    'MsgBox(sArray(0) & ";" & sArray(1), vbOKOnly, "Info")
                    CMD = Chr(34) & sArray(1) & Chr(34)
                    ProcessCommand = 2
                ElseIf Len(CMD) > 16 And Not InStr(CMD, ",") Then
                    ProcessCommand = 0
                End If
            End If
    but into the skintool, if i have no sygic's events defined into my exectbl.ini file , i obtain this :
    Code:
    on_rrsygicdrive_off_route
    -
    Command Not Executed: on_rrsygicdrive_off_route
    The events run very well if i define one into the exectbl.ini file !

    That would be a good idea if i create a empty command for each event like that ?
    Code:
                Case "on_rrsygicdrive_route_usercancel"
                    ProcessCommand = 2
                Case "on_rrsygicdrive_waipoint_visited"
                    ProcessCommand = 2
                Case "on_rrsygicdrive_route_finish"
                    ProcessCommand = 2
                Case "on_rrsygicdrive_route_computed"
                    ProcessCommand = 2
                Case "on_rrsygicdrive_off_route"
                    ProcessCommand = 2
    Thanks for your help !

  2. #2
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,581
    Why are you splitting the command by commas?

    Code:
     If Len(CMD) > 16 And InStr(CMD, ",") Then
                    sArray = Split(CMD, ",")
    Surely it should be underscores

    Code:
     If Len(CMD) > 16 And InStr(CMD, "_") Then
                    sArray = Split(CMD, "_")

  3. #3
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,769
    Heuu,
    Because i check if a line as:
    "on_rrsygicdrive_off_route","EVENTS_TEST","SETVAR; RRSygicDriveInfo;EVENTS TEST !!!!!!||menu;RRSygicDrive_info.skin"
    And if this line exist into my exectbl.ini file, the command is executed !

    I do an error ?

  4. #4
    FLAC
    Auto Apps:loading...
    EL CAMINO's Avatar
    Join Date
    Jul 2005
    Location
    upland california us
    Posts
    1,282
    as far as i remember, if you want to pass events to plugins, you must use * as the first character of the string,

    i.e. "on_rrsygicdrive_off_route" must be "*on_rrsygicdrive_off_route"

    Is somewhere on the documentation.

  5. #5
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,212
    * MEANS all plugins will see this event
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

  6. #6
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,769
    Ok shall try that as soon as possible .
    Thanks for your help !

  7. #7
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,212
    something tells me only your plugin should see these events, my question is whats creating the events...
    are they there for people to use? if its just your plugin, you shouldnt have them...
    but im not sure what your exactly trying to do... just keep that in mind
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

  8. #8
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,769
    Quote Originally Posted by mitchjs View Post
    something tells me only your plugin should see these events, my question is whats creating the events...
    are they there for people to use? if its just your plugin, you shouldnt have them...
    but im not sure what your exactly trying to do... just keep that in mind
    That i should like is to create one RR event for each Sygic's event that each RR's user use or not into his exectbl.ini file .
    I lauch my Sygic events like that:
    Code:
        Private Sub NavHandlerLocal(ByVal nEventID As Integer, ByVal strData As IntPtr)
    
            If INI.ReadString("RRSygicDrive", "eventsactive", "") = "Yes" Then
                Select Case nEventID
                    Case ApplicationEvents.EVENT_ROUTE_USERCANCEL
                        SDK.Execute("on_rrsygicdrive_route_usercancel")
                    Case ApplicationEvents.EVENT_WAIPOINT_VISITED
                        SDK.Execute("on_rrsygicdrive_waipoint_visited")
                    Case ApplicationEvents.EVENT_ROUTE_FINISH
                        SDK.Execute("on_rrsygicdrive_route_finish")
                    Case ApplicationEvents.EVENT_ROUTE_COMPUTED
                        SDK.Execute("on_rrsygicdrive_route_computed")
                    Case ApplicationEvents.EVENT_OFF_ROUTE
                        SDK.Execute("on_rrsygicdrive_off_route")
                        FlashMessage("Warning ... Off Route      ")
                    Case ApplicationEvents.EVENT_APP_EXIT
                        SDK.Execute("on_rrsygicdrive_app_exit")
                    Case ApplicationEvents.EVENT_MAIN_MENU
                        SDK.Execute("on_rrsygicdrive_main_menu")
                    Case ApplicationEvents.EVENT_CONTEXT_MENU
                        SDK.Execute("on_rrsygicdrive_context_menu")
                    Case ApplicationEvents.EVENT_EXIT_MENU
                        SDK.Execute("on_rrsygicdrive_exit_menu")
                    Case ApplicationEvents.EVENT_CUSTOM_MENU
                        SDK.Execute("on_rrsygicdrive_custom_menu")
                    Case ApplicationEvents.EVENT_CHANGE_LANGUAGE
                        SDK.Execute("on_rrsygicdrive_change_language")
                    Case ApplicationEvents.EVENT_CHANGE_ORIENTATION
                        SDK.Execute("on_rrsygicdrive_change_orientation")
                    Case ApplicationEvents.EVENT_RADAR_WARNING
                        SDK.Execute("on_rrsygicdrive_radar_warning")
                        'FlashMessage("Warning ... Radar      ")
                    Case ApplicationEvents.EVENT_POI_WARNING
                        SDK.Execute("on_rrsygicdrive_poi_warning")
                        'FlashMessage("Warning ... Poi Warning      ")
                    Case ApplicationEvents.EVENT_BORDER_CROSSING
                        SDK.Execute("on_rrsygicdrive_border_crossing")
                    Case ApplicationEvents.EVENT_SPEED_EXCEEDING
                        SDK.Execute("on_rrsygicdrive_speed_exeeding")
                        'FlashMessage("Warning ... Speedlimit      ")
                    Case ApplicationEvents.EVENT_BITMAP_CLICK
                        SDK.Execute("on_rrsygicdrive_bitmap_click")
                End Select
    
            Else
    
            End If
            Return
        End Sub
    I don't know if it's the good way, but as these on_rrsygicdrive... events doesn't exist into my 'ProcessCommand' function, RR return an error.

Similar Threads

  1. Replies: 9
    Last Post: 06-21-2011, 12:06 AM
  2. GPS Events [Coming Soon]
    By Blue ZX3 in forum RR Plugins No Longer Supported
    Replies: 66
    Last Post: 01-28-2009, 04:08 AM
  3. Getting Events from the COM SDK
    By _dopehead_ in forum Road Runner
    Replies: 6
    Last Post: 01-28-2007, 11:00 PM
  4. Final Checks For My Carputer Purchase
    By fire in forum General Hardware Discussion
    Replies: 12
    Last Post: 11-01-2005, 04:10 PM
  5. checks to see if the new frodo is out yet..
    By CdRsKuLL in forum FrodoPlayer
    Replies: 17
    Last Post: 08-29-2004, 08:38 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
  •