Page 1 of 1

Search And Replace (Version 2.0)

Posted: January 21st, 2006, 7:46 pm
by limbo
When I listen an internet radio station the song title it comes with some station info e.g.:
U2 - With Or Without You [1987] (S K Y. F M - BEST OF THE 80S - Hear Your Classic Favorites And Relive Those Retro 80s!)

I had to make it shorter! Removing the part of the radio info.

Searching the available dlls I found the replace.dll but with no help cause this dll replaces only characters.

So I builded a new one (not to supplant the replace plugin just to make some functions available to any user)

This plugin using an ini file to have predefined search strings and replace strings. So calling the dll is simple using less parameters and having global strings...




Download it here http://www.eserver.gr/

bug report

Posted: March 8th, 2006, 11:20 pm
by mattcro
Bug report - sandr.dll (is this the right place?)

I'm using sandr.dll to produce custom-character playing/paused/stopped symbols for Winamp, which works fine using the examples in other posts.

However, if Winamp is not running, sandr.dll causes an access violation in mscorlib.ni.dll

Of course, the screen that shows Winamp status is not usually displayed unless Winamp is actually running - I only noticed this error when manually selecting the screen in the Smartie setup window.

It seems that if you pass a null (zero length?) string to sandr, it causes a violation, like so:

Code: Select all

$dll(sandr.dll,1,,)
It works fine if you specify some text:

Code: Select all

$dll(sandr.dll,1,testing,)
Function 20 works fine with a null string:

Code: Select all

$dll(sandr.dll,20,,)

sandr.dll version is 1.0.0.0 on LCD Smartie 5.3

Matt

NEW VERSION (2.0)

Posted: October 25th, 2007, 7:42 pm
by limbo
This plugin was unexpectedly :smt026 popular
A recent request from kostassite was triggered the coding of a new version . :smt024
Now the plugin can support up to 40 lines in the ini file. :smt043


The download is available from my site (http://www.eserver.gr)

Posted: September 13th, 2008, 10:36 pm
by wolf_
how could i use this dll in order to replace the error message of a bar when $dll(volume,3,,) is 0
so the bar returns: "[[Bar: ' ' is not a valid floating point value]]" when func is 2 or just empty bar if func is 3

I could change it with warnif.dll but not the bar just shown the number and instead of nothing, a "MUTE"..my idea is showing the bar when volume is over 0% and show "mute" when its exactly 0%.

how could i make this possible?

However, if anyone can tell me where are the dll which shows the bar.dll error when value=0,i could edit that message and just display "MUTE" instead of "[[Bar: ' ' is not a valid floating point value]]" or a bar empty

Posted: September 14th, 2008, 6:25 pm
by mattcro
This could be done with the IF plugin... unfortunately the SWAP/SCROLL/IF plugin set corrupts extended ASCII characters, and this causes the custom characters generated by the Bar function to be corrupted.

It could probably be done with two nested Warnif plugins or with RegExp, but those are both awkward. I'm not sure how else you could do this.