Thank you. That is exactly what I needed.
There is one issue though. It returns HWND...how do I get PID from HWND or vise versa?
P.S.
I'm very new to this and not sure how to use classes...
I found this:
http://msdn.microsoft.com/en-us/library/system.di...etprocessbyid.aspx
It seems to be what I needed, bu how do I use it within MPL scripts?