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.