I need to invoke a 'PrtSc' command of keyboard from a Java program. So that it can capture the entire screen-contents as an image. The Java-code should be such that while running in a loop and it will capture the screen as image at every 2 seconds .
I will be very grateful if someone, on this intelligent forum, can suggest me the solution in JAVA.
Or, you could look in the java.awt.event.KeyEvent class for KeyEvent.VK_PRINTSCREEN. If you needed to automate something, you could use that with Selenium to simulate a keypress of the Print Screen key.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com