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

Using sandr.dll

Discuss anything to do with plugins

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo

Post Reply
ReverseEngineered
Plugin Author
Posts: 192
Joined: January 18th, 2006, 11:09 pm
Location: Saskatoon, Saskatchewan, Canada

Using sandr.dll

Post by ReverseEngineered »

Hey all (limbo in particular),

I'm having trouble getting Limbo's Search and Replace plugin working. Unfortunately the documentation is quite sparse.

I'm trying to use Chrisss' Winamp Screen, and though I now have splittitle and sandr loading, sandr doesn't actually replace the words "playing" or "stopped". I have tried using the lines exactly as shown in Chrisss' post in omit.ini, and have also tried editing the example that comes with sandr so that those lines are included appropriately. I've tried having omit.ini in the plugins directory and also in the main smartie directory.

Nothing has worked, nor has anything given an error. Without source code, there's little I can do to look at it myself and determine what the proper usage is. Unfortunately I've found this lack of documentation common among almost all parts of LCD Smartie, and it's something I would like to help fix one of these days. Until then, I'd appreciate some helping getting things running. Thanks Limbo (or anyone else who can help with this).
jonny
Posts: 48
Joined: December 18th, 2005, 5:50 am

Post by jonny »

the only way i got search and replace to work is to put the omit.ini file in the root directory (c:), and leaving the last parameter in the dll call blank, like crisss did. I dont know where i saw it, but that is the default location of omit.ini.
limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post by limbo »

ADAPTED FROM INFO.TXT (included in dll package)




----------------------------------------------------------------------------------
Syntax
------
$dll(sandr,1,xxxxxxxxxxxxxxxxxxxxxxxxxxxx,ppppppppppp)
where xxxxxxxxxxxxxxxxxxxxxxxxxxxx is the string or variable containing any text and ppppppppppp is the optional path of the ini file
The search criteria must be located under the [Search1] and replace criteria under the [Replace1].

Note
If no path provided the plugin will use the C:\omit.ini as path which is the default

Examples
$dll(sandr,1,plugin creator: me,)
Use this example with the provided ini file and you will get the following output "Dll author: Limbo"

--------------------------------------------------------------------------------





The default path for the omit.ini is "c:\omit.ini" without the quotes :D
The reason to make a default as c:\ is a simple one: there is no standard LCD Smartie installation kit (except one alpha version, not officialy released but available for download here).
Of course you can specify your own path using the second parameter of the dll calling.
All error messages are deleted (e.g. on ini missing) because I never liked these messages to be displayed on LCD. :oops: (maybe I'm wrong)


Another thing was to make a routine to detect the dll's directory automatically and search there for the ini file. :smt102 well nobody is perfect! :smt118 maybe in next version...

Anyway, suggestions for improvement are admissible just tell me! :P
Thanks.
ReverseEngineered
Plugin Author
Posts: 192
Joined: January 18th, 2006, 11:09 pm
Location: Saskatoon, Saskatchewan, Canada

Post by ReverseEngineered »

LOL, oh man, sorry Limbo. I read that and thought, "You mean there's more in that file?" Looked scrolled down and realized there were several lines of white space before anything else came up. When I opened it up in Notepad I just saw those several blank lines and thought that was the end of the file. :oops:

Thanks for the help. Hopefully I can get the path thing working (doesn't recognize it at the moment, but I'll keep playing).
limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post by limbo »

Hey, Reverse Engineered :D
Maximize your notepad! :smt005 :smt005 :smt005

Don't get straiten
No problem at all :smt005 :smt005 :smt005


BTW for all the the guys out there I recommend Editpad
IFR
Plugin Author
Posts: 201
Joined: April 6th, 2005, 12:59 am
Location: Canada
Contact:

Post by IFR »

Ya editpad is sexy because it supports regular expression :)
though its not free :(
smack
Plugin Author
Posts: 21
Joined: July 12th, 2005, 8:42 am

Post by smack »

limbo wrote:BTW for all the the guys out there I recommend Editpad
PSPad is great, too. And it's freeware!
Post Reply