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

Friendly Process Name .NET plugin

Announcements of new plugins or updates.

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo

Post Reply
MrSlimm
Posts: 2
Joined: April 9th, 2005, 1:13 am
Location: Coventry, England, UK

Friendly Process Name .NET plugin

Post by MrSlimm »

This plugin shows you the window title or any user-defined string (which can include LCD Smartie tags such as $Flash, $WinAmpTitle etc) for the process whose window is currently active.

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:
  1. 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]".
  2. 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,,)

    Code: Select all

    $dll(FriendlyProcessName.dll,2,{0},)
    Example: This will show "The PC is currently here: LCD Smartie" when the LCD Smartie window is active.

    Code: Select all

    The PC is currently here: $dll(FriendlyProcessName.dll,2,,)
Plugin Configuration:
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 name of the process is thunder~1.exe. You can get this from Task Manager (Ctrl-Alt-Del).
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.

MrSlimm
Posts: 2
Joined: April 9th, 2005, 1:13 am
Location: Coventry, England, UK

My configuration

Post by MrSlimm »

This is my configuration for Friendly Process Name which may give you a clearer idea of how the config is formatted.

A lot of the entries are automatically created by the plugin so you can edit them as necessary without having to scan Task Manager for the process names.

Remember {0} is the window title and you can include LCD Smartie tags. For example, this shows the status of Winamp and the media title when WinAmp is the foremost application:

Code: Select all

winamp.exe=$WinampStat $WinampTitle
Full config file as of November 2006:

Code: Select all

ConfigureLcdSmartiePlugin.exe=Testing LCD Smartie .NET plugin {0}- for LCD Smartie
CTSysVol.exe=Setting system volume
CTWave32.exe=Editing wave file {0}-Creative WaveStudio - 
devastation.exe=Playing Devastation
explorer.exe=Exploring {0}
fd.exe=Fresh Download
fdgo.exe=Downloading {0}-FDGO - 
firefox.exe=Browsing {0}- - Mozilla Firefox
flatout2.exe=Playing FlatOut 2
gbpvr.exe=GBPVR
grandia2.exe=Playing Grandia 2
GTL.exe=Playing GT Legends
iedit.exe=Editing {0} with Photoimpact
iexplore.exe=Browsing {0}- - Windows Internet Explorer
LegoStarWarsII.exe=Playing Lego Star Wars II
mplayerc.exe=Watching or listening to {0}- - Media Player Classic
msaccess.exe={0}
nisedit.exe=Editing NSIS installation script {0}-HM NIS Edit - 
opera.exe=Browsing {0}- - Opera
OR2006C2C.EXE=Playing Outrun 2006 Coast to Coast
powerdvd.exe=Watching {0}
psiops.exe=Playing Psi Ops: The Mindgate Conspiracy
SlimmGBPVR.exe=Slimm GBPVR
taskmgr.exe={0}
thunde~1.exe=Viewing {0} emails- - Thunderbird
VCSExpress.exe=Programming {0} in C#- - Microsoft Visual C# 2005 Express Edition
dexplore.exe=Getting help on {0}- - Microsoft Document Explorer
lcdsmartie.exe={0} 
winamp.exe=$WinampStat $WinampTitle
mm.exe={0}what 
tweakui.exe=tweaking{0} 
rundll32.exe=RunDll32 {0} 
xmltvgui.exe={0} 
is-sfasc.tmp={0} 
is-02l9l.tmp={0} 
csrss.exe={0} 
avgw.exe={0} 
cojdemo.exe=Playing Call of Juarez demo
_iu14d2n.tmp={0} 
is-ibos4.tmp={0}temp 
config.exe={0} 
race demo.exe=Playing WTCC: Race demo
foxitr~1.exe=Reading {0}
setpoint.exe=Adjusting Logitech keyboard and mouse
lrfwiz.exe={0} 
game.exe={0} 
swat4.exe=Playing SWAT 4
sndvol32.exe=Adjusting sound and volume properties
notepad.exe=Editing {0} 
screen.exe={0} 
configurelcdsmartieplugin.vshost.exe=Debugging TestLcdSmartiePlugin
pcsx2t.exe=PlayStation 2 emulator 
notepad++.exe={0} 
cmd.exe={0} 
ccsetup134.exe={0} 
ccleaner.exe={0} 
gbpvrtray.exe={0} 
slimmimageviewer.vshost.exe={0} 
dw20.exe={0} 
slimmimageviewer.exe={0} 
dfsvc.exe={0} 
vwdexpress.exe={0} 
setup[1].exe={0} 
iconpackager.exe={0} 
idriver.exe={0} 
mediarack.exe={0} 
wmplayer.exe={0} 
acrord32.exe={0} 
winrar.exe={0} 
eden.exe={0} 
copy of eden.exe={0} 
bitcomet.exe={0} 
wab.exe={0} 
avginet.exe={0} 
gameshadow.exe={0} 
gsdownload.exe={0} 
is-5dolo.tmp={0} 
audacity.exe={0} 
iedit_.exe={0} 
sdcentral.exe={0} 
winamp531_full_emusic-7plus.exe={0} 
rfactorsetup.exe={0} 
rf config.exe={0} 
rfactor.exe={0} 
winword.exe={0} 
restoration.exe={0} 
wbconfig.exe={0} 
rfwipeout.exe={0} 
nvcplui.exe={0} 
remselec22.exe={0} 
130a103.exe={0} 
mmc.exe={0} 
shareaza.exe={0} 
hh.exe={0} 
dxdiag.exe={0} 
helpctr.exe={0} 
cleanmgr.exe={0} 
unwise.exe={0} 
msiexec.exe={0} 
ikernel.exe={0} 
musicconverter.exe={0} 
perfectdisk.exe={0} 
excel.exe={0} 
project1.exe={0} 
regsvr32.exe={0} 
regedit.exe={0} 
muxchecker.exe={0} 
set604.tmp={0} 
dwwin.exe={0} 
_is661.tmp={0} 
sndrec32.exe={0} 
setup.exe={0} 
erc.exe={0} 
pcsx2.exe={0} 
set660.tmp={0} 
cdgrab.exe={0} 
torpark.exe={0} 
spybotsd.exe={0} 
au_.exe={0} 
combined-community-codec-pack-2006-07-28.exe={0} 

Post Reply