• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
 
Dupond Marc
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Darryl Burke wrote: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



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.
 
Marshal
Posts: 76888
366
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Marshal
Posts: 76888
366
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Something must be done about this. Let's start by reading this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic