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.
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.