Results 1 to 2 of 2
- 11-27-2010, 02: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.
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.
- By sagngh8 in forum Advanced JavaReplies: 0Last Post: 11-24-2010, 12:50 PM
- By crikey in forum New To JavaReplies: 7Last Post: 09-07-2010, 01:59 PM
- By raabie in forum JavaServer Pages (JSP) and JSTLReplies: 3Last Post: 08-27-2010, 02:02 PM
- By krishnaraoveera1294 in forum AWT / SwingReplies: 4Last Post: 03-13-2009, 11:56 PM
- By medosonson in forum Advanced JavaReplies: 0Last Post: 12-08-2007, 08:17 PM