在按下某个键之前使 Macintosh 显示屏空白的最简单方法是什么?
使 Macintosh 屏幕消隐(全黑)并仅通过击键(而不是鼠标移动)取消消隐的最简单方法是什么?我很乐意追求这些实现中的任何一个:
- 创建一个完全自定义的程序,使屏幕空白(或关闭显示器)并等待击键。 (一个简短的 gcc/g++ 程序会很棒......)
- 创建(或定位)一个忽略鼠标事件的标准“系统偏好设置”屏幕保护程序
- 一些使现有屏幕保护程序系统忽略鼠标事件的配置技巧
- 第三方应用程序,免费或商业广告
不需要精美的屏幕保护程序图形 - 只需一个空白屏幕。
我是一位经验丰富的开发人员(Linux、Windows),但从未为 Mac 编写过代码。非常感谢。
What is the simplest way to blank a Macintosh screen (completely black) and unblank it only on keystroke (not mouse movement)? I'm happy to pursue any of these implementations:
- Create a completely custom program that blanks the screen (or turns off the display) and awaits a keystroke. (A short gcc/g++ program would be great....)
- Create (or locate) a standard "System Preferences" screensaver that ignores mouse events
- Some configuration trick that makes the existing screensaver system ignore mouse events
- A third-party app, free or commercial
No fancy screensaver graphics wanted - just a blank screen.
I'm an experienced developer (Linux, Windows) but have never written for the Mac. Thank you very much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据您对 CajunLuke 答案的评论,为什么不在不使用时完全关闭屏幕亮度呢?据我所知,所有Mac键盘都有屏幕亮度按钮,因此您可以在需要时使用它们快速打开/关闭屏幕亮度。
Based on your comments on CajunLuke's answer, why not just turn off screen brightness completely when not in use? As far as I know, all Mac keyboards have screen brightness buttons, so you could use them to quickly turn on/off screen brightness when you want to.
Control-Shift-Eject 应该可以完成你想要的操作。如果您设置了屏幕保护程序密码,它也会要求输入该密码。
Control-Shift-Eject should do what you want. If you have a screensaver password set up, it'll ask for that, too.