键盘输入QT后台进程嗅探 [英] QT background process for keyboard input sniffing
本文介绍了键盘输入QT后台进程嗅探的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我工作在一个简单的应用程序,它会在后台捕获键盘输入从用户的身份运行(如键盘记录器,但对于LAN)
am working on a simple application which would run in the background and capture keyboard input from the user (like a keylogger , but for the LAN )
我转移按键发送的UDP数据包
但是从后台进程捕捉键盘输入的问题似乎仍然无法访问。
因此,帮助需要的。
I am sending UDP packets for transferring keystrokes But the problem of capturing keyboard input from a background process still seems unreachable . So help needed .
推荐答案
如果你想这样做的Windows,你将不得不使用WinAPI的:和SetWindowsHookEx
。我不知道Linux或MacOS的
If you want to do it for Windows you will have to use the WinAPI : SetWindowsHookEx
. I don't know for Linux or MacOS
编辑:
下面是文档: SetWindowsHookEx函数一>结果
王氏个例这里。
这篇关于键盘输入QT后台进程嗅探的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文