Java display colors
When screensaver is running, this function will return the color of the screensaver that time. Is there any way to work around this, to get the color under the "screensaver-layer"? Or do I have to disable the screen saver each time my program starts and enable it when exits?
new java.awt.Robot().getPixelColor(x,y); // returns the color of the pixel at (x,y)
If there is no work around, can anyone give me the path to the key in the registry, that holds the data about if the screensaver is enabled or not?
Edit: I found the registry key that holds screensaver status
But would be much more better with a workaround, if it is possible. Changing this key every time the application starts and ends is unsafe (if the process got killed, the screensaver will stay inactive...)