Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

Trimming a String

General discussion about LCD Smartie.

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo, Fast351

Post Reply
MrSomeone
Posts: 2
Joined: October 27th, 2005, 2:31 am
Location: Brooklyn, NY
Contact:

Trimming a String

Post by MrSomeone »

Not sure if it's right in front of my face and I'm just missing it, but I can't seem to find any way to trim a string to n characters.

For example, I would like to use palmOrb to emulate a 4x40 LCD, where the screen is split into two rows -- the first one being the first 20 characters, and the second the 20 following characters. In line one I have something like the following:

Code: Select all

$Center($WinampTitle,20)$Fill(20)$dll(winamp,1,4x20,u#9#WFl#150#100)
This works fine if the title doesn't exceed 20 characters in length, but if it does it pushes line 1 of the spectrum analyzer over like this:

Image

On http://lcdsmartie.sourceforge.net/winampplugin.html it looks like maestronz's picture doesn't do this, and I was wondering how this can be done.
smack
Plugin Author
Posts: 21
Joined: July 12th, 2005, 8:42 am

Re: Trimming a String

Post by smack »

MrSomeone wrote:Not sure if it's right in front of my face and I'm just missing it, but I can't seem to find any way to trim a string to n characters.
There are at least these two plugins you can use for this purpose:
cut plugin by IFR
formatting plugin by Jumpin' Jon
MrSomeone
Posts: 2
Joined: October 27th, 2005, 2:31 am
Location: Brooklyn, NY
Contact:

Post by MrSomeone »

Thank you :D

I guess I wasn't searching for the right words.
Post Reply