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

text cuting plugin needed

Place your requests for plugins here

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo

Post Reply
qiqiji
Posts: 14
Joined: April 6th, 2005, 5:03 pm

text cuting plugin needed

Post by qiqiji »

for example

$dll(cut,abc123,2,4) can display character form second character, length=4

result on display = bc12
IFR
Plugin Author
Posts: 201
Joined: April 6th, 2005, 12:59 am
Location: Canada
Contact:

Post by IFR »

Download it here

Usage:
$dll(cut.dll,1,[start]#[length],Texthere)
Example:

$dll(cut.dll,1,2#4,abc123)

returns bc12
qiqiji
Posts: 14
Joined: April 6th, 2005, 5:03 pm

Post by qiqiji »

IFR wrote:Download it here

Usage:
$dll(cut.dll,1,[start]#[length],Texthere)
Example:

$dll(cut.dll,1,2#4,abc123)

returns bc12
thanks very much ! :D
Klysner
Posts: 10
Joined: April 13th, 2005, 3:03 pm
Location: Denmark

Post by Klysner »

Sorry, but what does this plugin do? :oops:
whizz
Posts: 28
Joined: March 29th, 2005, 1:51 pm

Post by whizz »

Klysner wrote:Sorry, but what does this plugin do? :oops:
It cuts text from a line, as you can see in the example:
$dll(cut.dll,1,2#4,abc123)

returns bc12
So it takes the line 'abc123' and the only displays the 2nd until 4 letters later (until the 6th letter).

so it does: abc12c (and only shows the bold letters)

Hope you get it :)
Klysner
Posts: 10
Joined: April 13th, 2005, 3:03 pm
Location: Denmark

Post by Klysner »

I get it, but I don?t see the point in the plugin. Can some one give me an example why to use this plugin? :oops:
IFR
Plugin Author
Posts: 201
Joined: April 6th, 2005, 12:59 am
Location: Canada
Contact:

Post by IFR »

It can be used to shorten a long text. Take my cpu name for instance when I use the $CPUType variable it displays on my LCD "AMD Athlon(tm) processor". However all I need is "AMD Athlon" so I would use the plugin to take only the first 10 charracters of the variable. you can use it to integrate in another plugin if you need to cut a part of the returned text like this $dll(cut.dll,1,2#5,$dll(pluing.dll,1,param1,param2))

Use your imagination ;)
Klysner
Posts: 10
Joined: April 13th, 2005, 3:03 pm
Location: Denmark

Post by Klysner »

Ok I can see the point now. I only uses Smartie for Winamp, date and time, so that was why I could not see the point before. :wink:
qiqiji
Posts: 14
Joined: April 6th, 2005, 5:03 pm

Post by qiqiji »

i used to cut the ?HDD Thermometer? 's log file to get HDD TEMP

use with $log() function

log file like this

[05/Jun/2005 14:48:15] Temperature = 33癈 (91癋)

i only want the ?33?
Post Reply