Is there a function similar to Robot.getScreenCapture() that can return an image from a running program for the display it shows on the monitor? For example I've been trying to take a screenshot of a fullscreen game, but it returns black. I need something with that does the same thing as OBS recorder's gameCapture option, to get an image of a specific window.
edit: To clarify I want to take a screenshot of windows that are not part of this application
If you knw the coordinates you can get it - what did yu try?
I just did one of a video running and I was able to capture it