In Windows, when you press prtscn it captures the whole screen, alt+prtscrn captures just the focused application. Is this strictly controlled by the OS? I'm trying to determine if it's possible to override the part of the app that's captured to the clipboard. I'm using an undecorated scene and thus supply my own dropshadow to the window. Screenshotting the app also captures the shadow and that's what I'd like to avoid.
Asked
Active
Viewed 97 times
1
-
1There is method [snapshot()](https://docs.oracle.com/javase/8/javafx/api/javafx/scene/Node.html#snapshot-javafx.scene.SnapshotParameters-javafx.scene.image.WritableImage-) in class `javafx.scene.Node`. I found similar questions on _Stack Overflow_, including [how snapshot the entire scene in javafx?](https://stackoverflow.com/questions/32708250/how-snapshot-the-entire-scene-in-javafx). Simply search for **javafx snapshot**. – Abra May 23 '19 at 16:25
-
@Abra The question is not about creating an image from a node, but about modifying the behaviour of `Alt + Printscreen`. – fabian May 23 '19 at 17:31
-
I'm wondering if I simply listen for that key combination in my app and copy my own image into the clipboard, if that might overwrite what windows would normally capture. I'll give that a shot and report back if it works. – Phaelax z May 24 '19 at 01:53