Results 1 to 3 of 3

Thread: Problem about skin "IDLE" event

  1. #1
    Constant Bitrate
    Join Date
    Dec 2008
    Posts
    167

    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. #2
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    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."

  3. #3
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    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."

Similar Threads

  1. How To: Get your new skin out to the masses.
    By monkeyracer in forum RR FAQ
    Replies: 10
    Last Post: 07-19-2008, 07:59 AM
  2. Digital FX 2.0 Transparent Released
    By JohnWPB in forum RR Skins No Longer Supported
    Replies: 3759
    Last Post: 03-07-2008, 12:23 PM
  3. Very simple skin
    By lbridges in forum RR Skins
    Replies: 5
    Last Post: 01-25-2008, 09:36 AM
  4. StreetDeck Skin Problem
    By Solixa in forum StreetDeck
    Replies: 9
    Last Post: 06-27-2007, 10:27 AM
  5. RR w/Blue Devil Skin - XM Problem
    By Bump in forum Road Runner
    Replies: 1
    Last Post: 12-20-2006, 09:10 AM

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
  •