• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic