* Don't depend on the PID for anything other than this, as a new, different one is given out each time the process is run.
* ProcessName is the name of the "process", not the "Window". Process names are generally the name of the .exe without the ".exe", but some internal processes that are run by dll files can be found in taskmanager or Process Explorer.
* PerfMonDifference=0 is critical to this. The PID never changes while the process is running so PerfMonDifference=1 (the default) will always return "0"
Wow i was just playing with making a .exe file in c# last night which would do this and then i was going to make a button on my desktop link to that exe! Saved me a lot of hassle trying to get mine to work!
Know if there is a way to restore a window if it is in the system tray? As that is the main issue which was eluding me!
True, but given that one of Rainmeter's primary focuses is the aesthetic, it may not be desirable to have a command prompt window popping up all the time.