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


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks