开发者

Detect and wake display in OS X Lion

开发者 https://www.devze.com 2023-03-22 20:42 出处:网络
When the display is sleeping in Lion you can no longer wake it by moving the mouse. I need a way to programatically check if the display is sleeping, and if so wake it.

When the display is sleeping in Lion you can no longer wake it by moving the mouse. I need a way to programatically check if the display is sleeping, and if so wake it.

Does anyone know how to do this? In开发者_如何学JAVA the past I could just generate mouse events and do it, but those don't woke any more with 10.7.


Not sure what your past code looked like, and it sounds a little hacky, but can you "just generate keyboard events" to do it?

0

精彩评论

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