Jump to content

Taking screenshot using java robot class not woring when pc is locked.

- - - - -

  • Please log in to reply
1 reply to this topic

#1
sagngh8

sagngh8

    Newbie

  • Members
  • Pip
  • 1 posts
Hi Everyone,

I have implemented robot to take the screenshot of the desktop.

Robot objRobot = null;
try
{
objRobot = new Robot();
} catch(Exception ex)
{

}
BufferedImage objBufferedImage = objRobot.createScreenCapture(objRectArea);



The problem with robot is when my computer is locked the image comes as black.That is what is displayed in the desktop is not
captured.I need the screenshot of what is displayed in the desktop even when my computer is locked.Please suggest me any ideas.
It would be better if it is still possible to do it using robot.


Regards,
Sagar.

#2
DonCash

DonCash

    Newbie

  • Members
  • Pip
  • 7 posts
I'm not sure if this is possible using the robot class!

Couldn't you add something to the program to stop the computer from locking?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users