开发者

Check if screensaver is active [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

How to determine if a screensaver is runni开发者_Python百科ng 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.


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜