Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > Road Runner


Reply
 
Share Thread Tools Display Modes
Old 06-19-2009, 11:18 PM   #1
Constant Bitrate
 
Join Date: Dec 2008
Posts: 162
efun is an unknown quantity at this point
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.
efun is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 06-20-2009, 12:55 AM   #2
The Curator
 
Blue ZX3's Avatar
 
Join Date: Aug 2004
Location: Chicago area,IL
Posts: 3,577
Blue ZX3 will become famous soon enoughBlue ZX3 will become famous soon enough
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.

RR Media >>HERE <<

RRExtended Plugin
Updated RR Config (Current Ver 1.0.2.0)
Old RR Versions
Complete CFX PSD Set
RRSkinEditor v.76c
DFX Btn Editor
Blue ZX3 is offline   Reply With Quote
Old 06-20-2009, 12:04 PM   #3
RoadRunner Mastermind
 
guino's Avatar
 
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Posts: 9,064
guino will become famous soon enoughguino will become famous soon enough
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."
guino is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


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



All times are GMT -5. The time now is 09:01 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics