Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当显示器在 Lion 中休眠时,您不能再通过移动鼠标来唤醒它。我需要一种以编程方式检查显示器是否处于睡眠状态的方法,如果是,则将其唤醒。
有谁知道如何做到这一点?过去我可以只生成鼠标事件并执行此操作,但在 10.7 中这些事件不再唤醒。
不知道你过去的代码是什么样子的,这听起来有点笨拙,但你能“只生成键盘事件”来做到这一点吗?