开发者

Detect and wake display in OS X Lion

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜