Sponsored links

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


Reply
 
Share Thread Tools Display Modes
Old 05-11-2009, 04:54 PM   #1
Variable Bitrate
 
lambosprit's Avatar
 
Join Date: Sep 2006
Location: UK
Posts: 447
lambosprit is on a distinguished road
Custom List creation

I'm looking for some help creating a custom list in RideRunner.

I have a list of values in a plugin that I want Riderunner to be able to show in a skin but I dont want to create a text file just to load the values in.

I tried just using CLADD but that seemed to fail unsurprisingly.

So is there anyway to initialise a custom list without using a text file?

thanks in advance
lambosprit is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 05-11-2009, 04:57 PM   #2
Terminal flasher
 
Sonicxtacy02's Avatar
 
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,307
Sonicxtacy02 has a spectacular aura aboutSonicxtacy02 has a spectacular aura about
whats your syntax for CLADD? it will work without a text file you just have no way of saving the data without using a text file


rrsdk.execute("CLADD;555-555-5555;XXX-XXX-XXXX") works fine for me.

If you're using CLADD in a loop you may want to add some sleep() value to prevent freezing up RR, but this is only a problem when dealing with large amounts of commands (RRShoutcast sends up to 1000 CLADDs with maybe a 5 second delay)
__________________
03 Acura RSX Coupe
Developer of: RRFusion, MovieTimes.NET, (new)RRMail, RRShoutcast, & RRVehicle Maintenance
Currently working on: RRVehicle Maintenance

Last edited by Sonicxtacy02; 05-11-2009 at 05:00 PM.
Sonicxtacy02 is offline   Reply With Quote
Old 05-11-2009, 05:48 PM   #3
Variable Bitrate
 
lambosprit's Avatar
 
Join Date: Sep 2006
Location: UK
Posts: 447
lambosprit is on a distinguished road
thanks for that sonic. Checked my format and found an extra ; hidden in the text.
lambosprit is offline   Reply With Quote
Old 05-11-2009, 05:50 PM   #4
FLAC
 
Sal R.'s Avatar
 
Join Date: Aug 2006
Location: Sun Diego
Posts: 1,407
Sal R. is an unknown quantity at this point
You can also store your data in an array and only add what is displayed in the CL.

You can use RR labels "CLTOP" and "CLLINES" to develop a loop to add items to a custom list based on list position instead of loading all you data all at once.
__________________
Pico-ITX / nLite'd XP Pro with EWF-HORM / RR v9/22/2009 / Winamp v5.13 / RRMedia v1.2.2
Sal R. is offline   Reply With Quote
Old 05-11-2009, 09:53 PM   #5
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
Lightbulb

You silly, silly people.... if you have data inside an ext plugin that you want displayed in a custom list without saving to a file only to load back into RR Daaaa...ie directly load into the list...

Here is an example of how to do this:
(sorry for the poor layout, tried to keep it narrow as possible for the posting)

BTW...You welcome...

Code:
Public Function ProcessCommand(CMD As String, frm As Object) As Integer Select Case LCase(CMD) Case "scn_memberlist" If frm.ShowCL Then '<-- Check if current screen has a custom list LoadRecords '<-- Function that retrieves data/info and stores it in the Names array frm.CL.Clear (-1) '<-- Clears the custom list of all items ( Same as "CLCLEAR;ALL" ) If UBound(Names) > 0 Then '<-- Check if array was filled with data Dim x As Integer For x = 0 To UBound(Names) DoEvents '<-- allows for outside application events to be processed, 'basically acts as a sleep in your loop frm.CL.AddItem Names(x) + Chr(10) + Names(x) 'above line adds items to list, 'Chr(10) is the seperator for the Text & Desc item parts '( Same As "CLADD;TEXT;DESC" ) Next Else frm.CL.AddItem "Reload List" End If frm.CL.CenterList '<-- This repaints/updats the control and centers it if needed '( is a MUST USE to show properly ) End If ProcessCommand = 2 End Select End Function

__________________
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 05-11-2009, 11:16 PM   #6
FLAC
 
Sal R.'s Avatar
 
Join Date: Aug 2006
Location: Sun Diego
Posts: 1,407
Sal R. is an unknown quantity at this point
pfft! Where were you when I posted this?

:P

Good stuff...gonna go back and try it out.
__________________
Pico-ITX / nLite'd XP Pro with EWF-HORM / RR v9/22/2009 / Winamp v5.13 / RRMedia v1.2.2
Sal R. is offline   Reply With Quote
Old 05-12-2009, 05:26 AM   #7
Variable Bitrate
 
lambosprit's Avatar
 
Join Date: Sep 2006
Location: UK
Posts: 447
lambosprit is on a distinguished road
thanks blue. had most of that already.

Question though. Your using frm rather than rr's execute. Any reason? I thought using frm was frowned upon. quote "* frm is the form object which generated the current command. Be VERY VERY careful when using it."
lambosprit is offline   Reply With Quote
Old 05-12-2009, 08:37 AM   #8
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
It's not "frowned" upon -- you just have to be VERY VERY careful when using it. Using it to reference simple functions from lists should be just fine. What you have to be careful is to avoid changing/modifying variables and/or properties of the form as it could potentially cause many problems even lock ups.. other than that, the object is there exactly so extension plugins can use it.
__________________
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
Old 05-12-2009, 09:51 AM   #9
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
What....do you think that I don't know what I'm doing....

I usually only use that to load a list if, and only if i'm NOT dealing with a ton of data. That example actually came from a custom plugin that I was asked to access a mysql database online, worked out really well!
__________________
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 05-12-2009, 02:06 PM   #10
Variable Bitrate
 
lambosprit's Avatar
 
Join Date: Sep 2006
Location: UK
Posts: 447
lambosprit is on a distinguished road
I wasn't questioning whether you knew what you where doing. I was just trying to learn.

So is using frm better than execute or vice versa or no different? Whats best practice?

It would seem from Guino's comments that if there's no performance gain etc then I should stick to execute to be on the safe side.
lambosprit is offline   Reply With Quote
Old 05-12-2009, 08:42 PM   #11
FLAC
 
Sal R.'s Avatar
 
Join Date: Aug 2006
Location: Sun Diego
Posts: 1,407
Sal R. is an unknown quantity at this point
Well just worked out beautifully. Thanks Blue!
__________________
Pico-ITX / nLite'd XP Pro with EWF-HORM / RR v9/22/2009 / Winamp v5.13 / RRMedia v1.2.2
Sal R. is offline   Reply With Quote
Old 05-12-2009, 08:46 PM   #12
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
performance wise it should be better, you just have to be a bit more careful, that's all.
__________________
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
NEC 8.4" Transflective Solution - Custom Kit thermoptic LCD/Display 112 04-11-2009 12:57 AM
2003 BMW M3 Custom Dash / Overhead Console gork Show off your project 373 01-01-2008 08:52 PM
Hardware Compatibility List - 800x480 Video Cards alfabob LCD/Display 13 10-10-2006 09:54 PM
thumbnail view for folder and list view for file? civic5zigen Road Runner 9 11-01-2005 01:55 AM
"state of the art" parts list? kbyrd Newbie 13 04-29-2005 12:35 PM



All times are GMT -5. The time now is 08:33 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