1

Possible Duplicate:
How to determine if a screensaver is running in Java?

is there any way you can find out if the screensaver is active with java? I've searched the web but the only things I found was very complicated native code... My program is made for windows only.

Community
  • 1
  • 1
Hassenboy
  • 165
  • 1
  • 7

2 Answers2

2

Java cannot handle system tasks directly. You should use JNI (Java Native Interface) or JNA (Java Native Access) to do it.

Ammar
  • 2,387
  • 1
  • 14
  • 12
0

I haven't tried this code, but they claim to answer your question with JNA as Ammar suggested: Screen Saver State.

Dan W
  • 5,718
  • 4
  • 33
  • 44