开发者

Check if screensaver is active [duplicate]

开发者 https://www.devze.com 2023-03-30 22:04 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: How to determine if a screensaver is runni开发者_Python百科ng in Java?
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

精彩评论

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