File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes GUI capture Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "GUI capture" Watch "GUI capture" New topic

GUI capture

Jerry Yu

Joined: Sep 02, 2003
Posts: 6
hi everyone,
Is there a way to capture GUIs as images, even when the windows are not topmost (hidden or minimized)?
I only know how to grab GUIs when they are the topmost. But I don't know how to acces the display buffer when they are hidden or minimized. Any suggestions?
Thank you.
John Winstanley

Joined: Apr 08, 2003
Posts: 14
Are you talking about pressing the print screen button, or do you want to do this from inside an application?

Jerry Yu

Joined: Sep 02, 2003
Posts: 6
I want to get other applications' guis from my application. I can do this when the other application is the topmost. How can do this when the application is minimized or hidden?
Thank you,
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

So you want to capture screen prints of applications that are minimized or mearly offscreen? All I can say is not with pure JAVA. I wouldn't even know how to begin doing that in any other language. You probably talking about invading some Windows Protected Memory space to get those buffers. If GUI's are actually kept in some off screen buffer.

GenRocket - Experts at Building Test Data
Jerry Yu

Joined: Sep 02, 2003
Posts: 6
If the other app is written in java, could I get access to its graphics requrests without having to touch protected memory in window or linux?
I agree. Here's the link:
subject: GUI capture
It's not a secret anymore!