Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Sagar Singh B
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.


Thanks Regards,
Sagar.

 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sagar Singh B wrote: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.

Is there really anything displayed on screen when the computer is locked? or is the screen black?

Oh, and Use Code Tags for posting code!

edit Also, please Be Forthright When Cross Posting To Other Sites.
http://www.java-forums.org/new-java/44395-taking-screenshot-using-java-robot-class-not-woring-when-pc-locked.html
http://forums.devshed.com/java-help-9/taking-screenshot-using-java-robot-class-not-woring-when-pc-817770.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!