简体   繁体   English

读取另一个过程击键的最佳方法是什么?

[英]What's the best way to read another process keystrokes?

I've managed to send to another process window keystrokes using Windows API (user32.dll, SendMessage, PostMessage). 我设法使用Windows API(user32.dll,SendMessage,PostMessage)发送到另一个进程窗口击键。 Now, I'd like to read keystrokes, should I use win API again? 现在,我想阅读击键,是否应该再次使用Win API? I've found GetMessage method but I've also read, that it can't be used to read other's process messages. 我找到了GetMessage方法,但我也读过,它不能用于读取其他人的过程消息。

SetWindowsHookExWH_KEYBOARD_LL一起使用,可以创建系统范围的钩子,可以捕获键盘输入消息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Web服务器上部署可执行进程的最佳方法是什么? - What's the best way to deploy an executable process on a web server? 监视套接字以获取新数据然后处理该数据的最佳方法是什么? - What's the best way to monitor a socket for new data and then process that data? 在Windows和Web App中处理数据库升级的最佳方法是什么? - What's the best way to process database upgrades in Windows and Web App? 从另一个线程更新ObservableCollection的最佳方法是什么? - What's the best way to update an ObservableCollection from another thread? 通知ui的最佳方法是在wpf中另一个线程上发生了什么? - Best way to notify ui what's happening on another thread in wpf? 在另一个列表中添加列表副本的最佳方法是什么? - What's the best way to add a copy of a list in another list? 通过挂钩直接向另一个进程发送击键 - Directly sending keystrokes to another process via hooking 什么是多线程的最佳方式? - What's the best way to multithread? 在ASP.Net应用程序中处理长时间运行的最佳方法是什么? - What's the best way to handle long running process in an ASP.Net application? 用C#对象查找进程的内存分配的最佳方法是什么 - What is the best way to find a process's memory allocations in terms of C# objects
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM