The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

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

Reply
 
Thread Tools Display Modes
Old 06-18-2008, 07:36 AM   #1
Variable Bitrate
Valheru's CarPC Specs
 
Valheru's Avatar
 
Join Date: Jul 2007
Location: Ireland
Vehicle: 2006 Skoda Superb
Posts: 303
My Photos: (0)
Press & Hold Button - Question

I'm trying to have seperate day and night background images stored in my skin file, which can then be called from elsewhere in the skin. It's working to a point but I keep having an issue with the "Press & Hold" function.

On my BG browser I have a button called "Day", which has this code
B15,615,343,170,75,"LOADBG1",@SETBG1@

and in exectbl.ini the following commands are defined

"LOADBG1","SAVETOSKIN;BACKGROUND;$BKGND1$||RELOADS KIN"
"SETBG1","SETVARBYCODE;BKGND;LISTTEXT||SAVETOSKIN; BKGND1;$picspath$\$BKGND$||CNF_BKG1"
"CNF_BKG1","WRITETOFILE;$skinpath$confirm.txt; =/DEFINE CONFIRMTEXT New Background Set||WAIT;0.5||MENU;confirm.skin"


Here's the issue. With the code this way, the background is not saved correctly to my skin file, it misses the actual filename so all that gets stored is "BKGND1=C:\Car\Background\\" ... but if I remove the "||CNF_BKG1" or change the button command to be B15,615,343,170,75,"SETBG1",@LOADBG1@ it works perfectly. I would really like to have the "Load" function on press and "Set" function on the press & hold ...

Any idea's why this ain't working ... ???
__________________
-------------------------------
Check out the TEKNIK skins here
Valheru is offline   Reply With Quote
Sponsored Links
Old 06-18-2008, 08:29 AM   #2
FLAC
Sal R.'s CarPC Specs
 
Sal R.'s Avatar
 
Join Date: Aug 2006
Location: Sun Diego
Vehicle: 2001 A4 1.8TQMS
Posts: 917
My Photos: (36)
i don't see why it shouldn't be working.

Try this:
B15,615,343,170,75,"LOADBG1",@SETBG1||CNF_BKG1@

ExecTBL.ini:
Code:
"LOADBG1","SAVETOSKIN;BACKGROUND;$BKGND1$||RELOADS KIN" "SETBG1","SETVARBYCODE;BKGND;LISTTEXT||SAVETOSKIN; BKGND1;$picspath$\$BKGND$" "CNF_BKG1","WRITETOFILE;$skinpath$confirm.txt; =/DEFINE CONFIRMTEXT New Background Set||WAIT;0.5||MENU;confirm.skin" .

__________________
MicroXP / RR v11/04/2007 / Winamp v5.13 / MMIv2
RR Album Art Browser
Sal R. is offline   Reply With Quote
Old 06-18-2008, 08:47 AM   #3
MGD
FLAC
MGD's CarPC Specs
 
MGD's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Vehicle: 2005 Chrysler 300
Posts: 1,320
My Photos: (0)
Here is my command for that...

Code:
B01,599,506,101,82,"SETVARBYCODE;Background;$NightBackground$||SAVETOSKIN;Background;$NightBackground$||RELOADSKIN||NIGHTGAMMA",@SETVARBYCODE;Background;$DayBackground$||SAVETOSKIN;Background;$DayBackground$||RELOADSKIN||DAYGAMMA@

MGD is offline   Reply With Quote
Old 06-18-2008, 08:56 AM   #4
Variable Bitrate
Valheru's CarPC Specs
 
Valheru's Avatar
 
Join Date: Jul 2007
Location: Ireland
Vehicle: 2006 Skoda Superb
Posts: 303
My Photos: (0)
@Sal-R : tried that ... still the same

@MGD : your code is exactly what I'm trying to do, but it's the step before that code that aint working, where I would set the $NightBackground$ variable etc if it was your skin ...

thanks for the suggestions tho ...
__________________
-------------------------------
Check out the TEKNIK skins here
Valheru is offline   Reply With Quote
Old 06-18-2008, 09:13 AM   #5
MGD
FLAC
MGD's CarPC Specs
 
MGD's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Vehicle: 2005 Chrysler 300
Posts: 1,320
My Photos: (0)
I forgot to mention, I have a background_Browser.skin where you can set the background for Day and Night and then recall the value. I attach the skin with the code so you can take a look. Just copy it to your skin folder and call the background_browser.skin
Attached Files
File Type: zip Background_Browser.zip (813.6 KB, 6 views)
MGD is offline   Reply With Quote
Old 06-18-2008, 09:22 AM   #6
FLAC
Sal R.'s CarPC Specs
 
Sal R.'s Avatar
 
Join Date: Aug 2006
Location: Sun Diego
Vehicle: 2001 A4 1.8TQMS
Posts: 917
My Photos: (36)
Umm...is there supposed to be a space b/w the ";" and the "=" in the CNF_BKG1 command?

Cuz I just tried your code w/o the space in my mock-up background skin and the press and hold worked...
__________________
MicroXP / RR v11/04/2007 / Winamp v5.13 / MMIv2
RR Album Art Browser
Sal R. is offline   Reply With Quote
Old 06-18-2008, 10:27 AM   #7
Road Runner & Mp3car Gatherings Moderator
JohnWPB's CarPC Specs
 
JohnWPB's Avatar
 
Join Date: Sep 2005
Location: West Palm Beach, Florida
Vehicle: 99 Mitsubishi Eclipse
Posts: 2,794
My Photos: (0)
It is a well known forum problem. The forum will break extra long lines with a space. The only way to prevent this from happening is to wrap them in the code/php tags.
__________________
.


CarPuter: 2.8Ghz P4 with 1 Gig Mem, 500 Gig HD, Iguidance 4.0
7" Motorized Touchscreen, XM PCR1000, Visteon HDZ300 HD
Radio, WIFI, Fusion Brain.
Powered By Road Runner & the DigitalFX 4.0 Skin www.johnwpb.com
JohnWPB is offline   Reply With Quote
Old 06-18-2008, 10:52 AM   #8
Variable Bitrate
Valheru's CarPC Specs
 
Valheru's Avatar
 
Join Date: Jul 2007
Location: Ireland
Vehicle: 2006 Skoda Superb
Posts: 303
My Photos: (0)
hey guys ...

I've tried just about everything I can, includeing replicating MGD's code etc and still no joy ... whenever I add the code for the Confirmation popup, the data is not saved correctly. BTW i'm using the beta RR version with fixed weather - if that makes any difference.


back to the drawing board - and more scratching of the head for while
__________________
-------------------------------
Check out the TEKNIK skins here
Valheru is offline   Reply With Quote
Old 06-18-2008, 11:12 AM   #9
MGD
FLAC
MGD's CarPC Specs
 
MGD's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Vehicle: 2005 Chrysler 300
Posts: 1,320
My Photos: (0)
I have no clue on what you're doing, mine works with the newest Beta.
What is not saved? DO you have the path to the backgounds set in the browser?

Last edited by MGD : 06-18-2008 at 11:14 AM.
MGD is offline   Reply With Quote
Old 06-18-2008, 11:26 AM   #10
FLAC
Sal R.'s CarPC Specs
 
Sal R.'s Avatar
 
Join Date: Aug 2006
Location: Sun Diego
Vehicle: 2001 A4 1.8TQMS
Posts: 917
My Photos: (36)
Okay...try this. Put it all in one line:

Tried this in the new beta and it works for me...
Code:
"SETBG1","SETVARBYCODE;BKGND;LISTTEXT||SAVETOSKIN; BKGND1;$picspath$\$BKGND$||WRITETOFILE;$skinpath$confirm.txt; =/DEFINE CONFIRMTEXT New Background Set||WAIT;0.5||MENU;confirm.skin" .

__________________
MicroXP / RR v11/04/2007 / Winamp v5.13 / MMIv2
RR Album Art Browser
Sal R. is offline   Reply With Quote
Sponsored Links
Old 06-18-2008, 11:44 AM   #11
Maximum Bitrate
 
carputer1's Avatar
 
Join Date: Sep 2007
Posts: 582
My Photos: (0)
ooops
__________________
MKIII Skin,RoadRunner,D7 , Gatso Hunter ,MediaLaunch ,Tag Editor ,
carputer1 is offline   Reply With Quote
Old 06-18-2008, 01:35 PM   #12
Variable Bitrate
Valheru's CarPC Specs
 
Valheru's Avatar
 
Join Date: Jul 2007
Location: Ireland
Vehicle: 2006 Skoda Superb
Posts: 303
My Photos: (0)
ok .. got it working, but I had to change the code for the confirmation popup to be this
"CNF_BKG1","SETVAR;CONFIRMTEXT;Day Background Set||MENU;Confirm.skin"

I also changed the confirm skin to use a variable rather than a define code ... not as clean as I'd hoped, but it works.

There was something with the timings between the write to the INI file and the write to the confirm.txt files ... and using WAIT's were causing too much delay in the skin...

thanks for all your help guys ...
__________________
-------------------------------
Check out the TEKNIK skins here
Valheru is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Radio control with iBus ??? jeep642 Car Audio 4 10-02-2007 11:51 AM
Button press tones...? travelguy2k StreetDeck 2 08-14-2007 02:07 PM
Lots of Cool RR functionality, can we enhance button event model? ruairi Road Runner 2 04-04-2005 03:45 PM
having to press buttons twice using touchscreen kuo RR Bug Tracker 13 02-27-2005 07:25 PM
Button question for skinning gambit32 FrodoPlayer 2 09-27-2004 09:04 AM


All times are GMT -5. The time now is 03:19 AM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics