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
This will give you the Alt + Printscreen, showing only front most application.
Alt + Printscreen
SendKeys.Send("%{PRTSC}")
Then continue the normal way:
Dim Screenshot As Image = Clipboard.GetImage() Screenshot.Save("c:\ScreenShot.jpg", System.Drawing.Imaging.ImageFormat.Jpeg)