从另一个Windows应用程序捕获用户的事件(按钮点击等) [英] Capturing user events (button clicks etc) from another Windows application

查看:131
本文介绍了从另一个Windows应用程序捕获用户的事件(按钮点击等)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我期待编写.NET Windows应用程序,将捕获用户如何使用另一个运行的应用程序。

I'm looking to write a .Net Windows application that will capture how a user uses another running application.

的这个最简单的形式将是哪个按钮被点击或被打开菜单项记录。捕获按钮文本或菜单上的文字就足够了。

The simplest form of this would be recording which buttons were clicked or menu items were opened. Capturing the button text or menu text would be enough.

我知道这可以通过侦听事件来完成,但不能确定这到底捉襟见肘。在Windows中,你能够听另一个应用程序事件或者他们从其他应用程序隐藏?

I know this can be done by listening for events but was unsure how far this stretched. In Windows are you able to listen to another applications events or are they hidden from other applications?

如果是这样,是否有任何.NET库,我可以使用或开源项目捕获这些事件?有鉴于此进一步,把这些变成一般事件(IM思考很多的应用程序可能触发特定于它们的事件,所以提取的一般信息键)

If so, are there any .Net libraries I can use or open source projects to catch these events? Taking this further, turn these into generic events (im thinking lots of applications might fire events specific to them, so extracting general information is key)

如果不是,是唯一解决我的代码集成到应用程序来访问的应用程序事件?

If not, is the only solution to integrate my code with the application to gain access to the that applications events?

非常感谢

推荐答案

如果我理解正确你的帖子,你需要类似的间谍++ 可以挂钩Windows消息,并告诉你什么时候该消息被炒鱿鱼。

If I understand your post correctly, you need something similar to Spy++ that can hook the Windows messages and tell you when that message gets fired.

看一看这些链接:


  1. 传递动力的谍++ Windows窗体

  2. 刺探窗口从里面

  3. 信息
  4. 我怎么能在我的C#应用​​程序得到类似间谍++功能?

  1. Deliver The Power Of Spy++ To Windows Forms
  2. Spying Window Messages from the Inside
  3. How can I get functionality similar to Spy++ in my C# app?

这篇关于从另一个Windows应用程序捕获用户的事件(按钮点击等)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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