在系统应用程序上设置动作监听器 [英] Setting action listener on system applications
问题描述
如何在系统应用程序上设置动作监听器
?
How can I set the action listener
on system applications?
我想要的是:启动时在记事本上书写时,我的动作侦听器应该可以检测到它,并且我应该能够查看输入的内容。在键盘记录器
中发生的情况也是如此。
What I want is: when I start writing on the notepad, my action listener should detect it and I should be able to view what I had typed. The same that happens in a keylogger
.
这只是记事本的情况,但我每次都想这样做
This was just the case of notepad but I want that every time I type something my program should be able to view it.
示例:打开Chrome后,我在命令行中输入了 java
搜索栏。现在,我程序的动作侦听器应该可以检测到我键入的内容。
Example: after opening Chrome, I typed java
in the search bar. Now my program's action listener should be able to detect what I typed.
推荐答案
您不能仅在Java中执行此操作。期。您可以尝试JNI,但绝对不能仅使用Java。
You can't do this in Java alone. Period. You may try JNI, but definitely not in Java alone.
这篇关于在系统应用程序上设置动作监听器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!