Page 1 of 1

text cuting plugin needed

Posted: May 31st, 2005, 11:22 am
by qiqiji
for example

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

result on display = bc12

Posted: May 31st, 2005, 8:00 pm
by IFR
Download it here

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

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

returns bc12

Posted: June 1st, 2005, 5:52 am
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

Posted: June 2nd, 2005, 5:33 pm
by Klysner
Sorry, but what does this plugin do? :oops:

Posted: June 2nd, 2005, 6:49 pm
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 :)

Posted: June 2nd, 2005, 8:49 pm
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:

Posted: June 2nd, 2005, 10:40 pm
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 ;)

Posted: June 3rd, 2005, 9:11 am
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:

Posted: June 5th, 2005, 10:22 am
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?