aspose file tools*
The moose likes Java in General and the fly likes How to screen capture a running full screen DirectX program in Java? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to screen capture a running full screen DirectX program in Java? " Watch "How to screen capture a running full screen DirectX program in Java? " New topic
Author

How to screen capture a running full screen DirectX program in Java?

Dupond Marc
Greenhorn

Joined: Sep 04, 2012
Posts: 3
Hello,

I have been trying several ways to capture a full screen DirectX program in java, namely using Robot library. Sadly all worked but not while the game/program was running in full screen.

#i) First, I tried :

Results:
-> It works perfectly in no full screen mode
-> in full screen it returns black picture


#ii) Then I tried to press a key, since the game is providing some screenshot future, typing F6 on the keybord:

Results:
-> No screenshot is saved. BUT when I type "by hand" the key F6, screenshot is taken by the game, as usual.


#iii) I also tried to simulate IMPR SCR key.
Results:
-> Once again, it works perfectly when the game is not in full screen, but as soon as I run it in full screen, nothing is taken.


I don't know what to do any-more...
I have read some stuff about this, which may help me: javacv - Java interface to OpenCV and more - Google Project Hosting but I have no idea on how to approach this. If anybody could provide me some sample code working or if you could help me to find any clue for taking a screenshot of a directx full screen running program, I would be most grateful.
Thank you for reading.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4642
    
    5

Dupond, please BeForthrightWhenCrossPostingToOtherSites
http://www.java-forums.org/advanced-java/62724-how-screen-capture-running-full-screen-directx-program-java.html
http://forums.devshed.com/java-help-9/how-to-screen-capture-a-running-full-screen-directx-program-930127.html


luck, db
There are no new questions, but there may be new answers.
Dupond Marc
Greenhorn

Joined: Sep 04, 2012
Posts: 3


As explained, I don't know anything about Java forum and if they are active or not, so yes, I won't deny it, I tried in 3 forums, hoping someone could help me in one of these. For now, none answered.
I apologize if it seems a bit rude or inconvenient, but it has been 3 days I searched for this problem hardly sleeping, and by resignation I posted like in these forums, hoping for a solution.

I suppose I won't receive any here after this underlining.. I am really sorry.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39436
    
  28
Apologies accepted. I shall move this discussion because it is too difficult for “beginning”

I am sure you will receive an answer … if anybody here knows it at all.
Dupond Marc
Greenhorn

Joined: Sep 04, 2012
Posts: 3
Campbell Ritchie wrote:Apologies accepted. I shall move this discussion because it is too difficult for “beginning”

I am sure you will receive an answer … if anybody here knows it at all.

Thank you very much for your consideration. I will wait for an answer then.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39436
    
  28
Dupond Marc wrote: . . . Thank you very much for your consideration. I will wait for an answer then.
I don’t know the answer myself, I am afraid.
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2524
    
    8

You may want to check your BufferedImage is getting the full screen size. Below link is somewhat different for BufferedImage.
here

The effect may be the same, I'm not sure.


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5 OCPBCD5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to screen capture a running full screen DirectX program in Java?