Results 1 to 2 of 2
  1. #1
    leke's Avatar
    leke is offline Member
    Join Date
    Jun 2010
    Tampere, Finland
    Rep Power

    Default Automated screen capture app possible in Java?

    I'm trying to code an automated screen capture app and was wondering if it was possible to do it in Java. It would run like a background process and listen for the PrintScreen key (in MS Windows) -- capturing the OS screen and saving it automatically. The app doesn't even need a GUI. I could just run it on the command line, send it to the background and continue recording screen-shots.

    I was doing a little research on it and found: How to Write a Key Listener (The Java™ Tutorials > Creating a GUI With JFC/Swing > Writing Event Listeners) I ran the example noticed it didn't even recognise the Print screen key for some reason.

    I'm also reading about awt.robots and figuring out how that works.

    Does anyone have any experience with this kind of thing and could offer advice? Possibly there is already a working example of source code I could study.


  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power


    This would require that Java function as a key logger -- capture key strokes when it isn't the application of focus, and it can't do that. It's still possible though as long as the key capture code is written in another program and then integrated with Java through the usual mechanisms -- JNI, JNA, or sockets.

Similar Threads

  1. Screen Capture with WebSpec(Watij).
    By sagngh8 in forum Advanced Java
    Replies: 0
    Last Post: 11-24-2010, 11:50 AM
  2. How to create off screen BufferedImage capture
    By crikey in forum New To Java
    Replies: 7
    Last Post: 09-07-2010, 12:59 PM
  3. How to do a screen capture of content on web page/join 2 images
    By raabie in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 08-27-2010, 01:02 PM
  4. Need Help on Remote Host Screen Capture
    By krishnaraoveera1294 in forum AWT / Swing
    Replies: 4
    Last Post: 03-13-2009, 10:56 PM
  5. Automated Predicate Swiching Implementation
    By medosonson in forum Advanced Java
    Replies: 0
    Last Post: 12-08-2007, 07:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts