I have a need to prevent screenshots made by Print Screen button. And by third party software.
I decided to use fullscreen so they can't use their third party software to make a screenshot.
But I still have no clue how to prevent screenshot.
PS. This app is related to fighting piracy. I don't want my massive ebooks to be shared for free. I thought of videos etc instead but writing is more how I do it.
This way their only method to copy it will be making photos with a HD camera.
Does anyone know if it's possible? I haven't found anything about this.
You can not prevent it, but you can try, to a certain extent, overwrite it.
The idea is detect that a print screen was pressed, hide what you want to hide, and invoke another print screen, overwriting the previous one.
This is not robust, and of course has limitations and can be by-passed, but can give you basic control.
This
swingbasic demonstration was tested on my windows machine:The purpose of this quick-code is to demonstrate the idea.