是否可以恢复Mac OS启动时完成的键盘输入? [英] Is it possible to recover keyboard input that was done while Mac OS was starting up?

查看:79
本文介绍了是否可以恢复Mac OS启动时完成的键盘输入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有可能弄清楚用户在Mac OS启动时按下了哪些键?

任何方法都可以.据我了解,没有简单的方法可以简单地挂接一个应用程序/脚本以开始工作并与操作系统同时捕获击键.但是也许有某种方法可以进行反向工程吗?也许正在查看特定的日志文件或类似的文件?

任何结果都可以.基本上,我感兴趣的是找出操作系统启动过程中用户按下/按住的键.可能是字符串,字符代码或十六进制都没关系.

更新:在Pekka的建议的指导下,我发现了应该完成此工作的内核扩展.并希望在后续问题-为什么此键盘拦截内核扩展无法正常工作?回答. :)

解决方案

我不是OS专家,但我认为非常非常非常.我不认为这样的东西会自动记录在任何地方.

我猜您将不得不查看系统中处理> .

想到的第二件事是让您编写某种自定义设备驱动程序或启动脚本,这些驱动程序或启动脚本在启动时加载,并侦听按键事件.

I wonder if it is possible to figure out what keys user was pressing while his Mac OS was starting up?

Any way will do. As far as I understand it there is no easy way to simply hook an app/script to start working and capturing keystrokes simultaneously along with the OS. But maybe there is a way to some kind of reverse engineer this? Maybe looking into a specific log file or something like that?

Any results will do. Basically what I'm interested in is in finding out, which key the user pressed/held during the OS startup. It may be string, a character code or a hex, doesn't really matter.

UPDATE: guided by Pekka's advice I've found a kernel extension that should do the job. And it, hopefully, will do it, after this follow-up question - Why this keyboard intercepting kernel extension doesn’t work? is answered. :)

解决方案

I'm no OS guru, but I think very, very, very hardly. I don't suppose stuff like this is automatically recorded anywhere.

I guess you would have to look whether the part of the system that handles the startup keys is somehow accessible, and can be extended to invoke a command defined by you.

The second best thing that comes to mind is for you to write some sort of custom device driver or startup script that gets loaded at startup, and listens to keypress events.

这篇关于是否可以恢复Mac OS启动时完成的键盘输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆