awt - Is there a way to get screenshot of the windows when it is locked using java? -


i'm using below code take screenshot of window, returns blank image when computer locked (alt + ctrl + del & lock)

is there anyway can take screenshot on locked computer using java.. appreciated

 public void takeascreenshot() throws awtexception, ioexception   {               dimension screendimn = toolkit.getdefaulttoolkit().getscreensize();         rectangle screenboundary = new rectangle(0, 0, screendimn.width, screendimn.height);          robot robot = new robot();         bufferedimage image =  robot.createscreencapture(screenboundary);          file printscreenfile = new file("image" + system.currenttimemillis() + ".png");         imageio.write(image, "png", printscreenfile);     } 

there no way capture using java (at least not know of). reason being when computer locked nothing being rendered robot capture.

there might way using c / c++ same glitchy.

what did use caffeine keep screen locking when executing long runs on remote machine.


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -