I found that code somewhere and I find it quite useful but I would like to find a way to make it work so it capture only the given window target. Maybe with a processID or W
Look at this Capture screenshot of active window?
Instead of this.Handle (current window) you may insert a handle of any other window (using WinAPI functions like FindWindow)