Getting events of another application

前端 未结 1 973
轮回少年
轮回少年 2021-01-16 10:22

In my c# application I need to detect when a user clicks one of two buttons in a different, third party application.

I am able to get the Handle of the application b

相关标签:
1条回答
  • 2021-01-16 10:46

    Global system hooks allow an application to intercept Windows messages intended for other applications. This has always been difficult to implement in C#. This project on Codeplex attempts to implement global system hooks by creating a DLL wrapper in C++ that posts messages to the hooking application's message queue. Put simply, this lets you implement any type of global Windows hook from managed code: http://www.codeproject.com/KB/system/WilsonSystemGlobalHooks.aspx

    0 讨论(0)
提交回复
热议问题