Announcement

Collapse
No announcement yet.

Problem about skin "IDLE" event

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

  • Problem about skin "IDLE" event

    I make a skin called "climate_popup.skin" which was displayed when the car climiate control was touched. The skin will exit if no touch in 3 seconds. So I use the skin IDLE event

    -- ExecTBL.ini
    "IDLE","EXIT",CLIMATE_POPUP.SKIN

    -- climate_popup.skin
    IDL,003

    -- PLUGIN
    Case "CLIMATE_POPUP"
    If LCase(SDK.GetInfo("RRSCREEN")) = "climate_popup.skin" Then
    ProcessCommand = 2
    Else
    CMD = "LOAD;climate_popup.skin"
    ProcessCommand = 3
    End If


    This works but not perfect since the skin was closed and re-open during continous climate operation. So I changed the code:

    -- ExecTBL.ini
    "IDLE","CLIMATE_EXIT",CLIMATE_POPUP.SKIN

    -- PLUGIN
    Case "CLIMATE_EXIT"
    Dim curTime As Date = Date.Now()
    Dim diff As Long = DateDiff(DateInterval.Second, StatusHolder.climateBean.lastChangedTime, curTime)
    If diff >= 3 And LCase(SDK.GetInfo("RRSCREEN")) = "climate_popup.skin" Then
    CMD = "EXIT"
    ProcessCommand = 3
    Else
    ProcessCommand = 2
    End If

    After code change, it was a much longer time than 3 seconds that the skin was close when no climate operation . I trace the debug.txt, the IDLE event was fired after 30s.

  • #2
    Assuming that this is from the ProcessCommand function....

    -- PLUGIN
    ......
    If LCase(SDK.GetInfo("RRSCREEN")) = "climate_popup.skin" Then
    ......

    Should be:

    -- PLUGIN
    ....
    If frm.Tag = "climate_popup.skin" Then
    .....

    No need to ask for the current screen when its given to you. The frm.Tag is the current screen's skin file name in lower case.

    Hard to tell by the details that you have given us, but there as to be something that your doing either in your plugin or some RRCode that is causing this "IDLE" to not work correct for you.

    Another small note, If the screen is infact a smaller "Popup" then you should change your method of how its being loaded from "LOAD;climate_popup.skin" to "MENU;climate_popup.skin"
    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."

    Comment


    • #3
      You should look at the debug log and see what commands/events could possibly be resetting the idle timer, and perhaps replace it with a standard timer..
      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