1
Guys, I want to know if there’s any way I can print a program running in the background I currently use the command :
try {
Robot robot = new Robot();
BufferedImage bi=robot.createScreenCapture(new Rectangle(valor3,valor4,189,24));
ImageIO.write(bi, "jpg", new File("C:\\OCR\\test.jpg"));
}
It works well with a program running in the foreground, but I wanted him to take a photo of a program that was running in the background, with this command he takes a picture of what is always on the screen... Someone gives a light here!
You can add a [mcve] of your code by only working with foreground mode?
– user28595