For instance, if you are playing a game, you can configure this to return the name of the game (ie, "Playing Outrun 2006 Coast to Coast"). When you finish playing the game and browse these forums, the display would read "Browsing LCD Smartie Forum".
The installer asks you where your Plugins folder is and also installs a config program. The config program is used to configure and test this plugin but should work with any .NET plugin. If the plugin's LCDSmartie class contains a void Configure() method, then the Configure button is enabled in the test / configure utility. This allows you to fiddle without loading LCD Smartie.
I use " $dll(FriendlyProcessName.dll,2,,) " on my LCD Smartie screen.
Download Friendly Process Name - requires .NET 2
LCD Smartie Configuration:
There are two functions and both do much the same thing:
- Function 1: this returns the friendly process name as specified in the config file (I'll detail this in a mo) or, if the process is not listed there, the string "[unknown]".
- Function 2: this returns the friendly process name as specified in the config file or, if the process is not listed there, the contents of param1. If param1 is empty, the window title of the process is returned. In param1, {0} can be used as a placeholder for the window title. For example, the following are identical:
Code: Select all
$dll(FriendlyProcessName.dll,2,,)
Example: This will show "The PC is currently here: LCD Smartie" when the LCD Smartie window is active.Code: Select all
$dll(FriendlyProcessName.dll,2,{0},)
Code: Select all
The PC is currently here: $dll(FriendlyProcessName.dll,2,,)
Install the plugin and use the configuration tool to configure. Then unload / reload LCD Smartie.
Note: While you can configure the plugin while LCD Smartie and my plugin is loaded, it isn't recommended because the plugin will update the configuration file with the name of any unknown process with a default format (of Process Name={0}). If you do edit the plugin configuration while LCD Smartie and my plugin is running, copy the contents of the text window to the clipboard as a backup before clicking OK.
The format is this:
Process Name=Friendly Name[- String to remove]
Notes:
{0} is a place holder for the window title
Example:
Code: Select all
<string>thunde~1.exe=Viewing {0} emails- - Thunderbird</string>
The friendly name is "Viewing {0} emails". The {0} would be replaced with the name of the Thunderbird window which contains the folder you are in and the text " - Thunderbird", for example, "Inbox - Thunderbird".
Everything after the first hypen is removed from the result, ie, " -Thunderbird" is removed from the result leaving "Viewing Inbox emails".
The hypen is optional but is always interpreted as the remove text signal so you cannot use a hyphen in your friendly process name.
Finally:
Ideas, suggestions and bugs are welcome.