Search code examples
c#c++spy++event-hooking

How to use C# client to get information of clicked GUI element in another app?


Can a C# client record all keyboard and mouse events using hooks and collect information on the clicked GUI element?

Which libary would you use?

Is Spy++ an option or would one need a C++ DLL for that?


Solution

  • It's better to do it in c++, you should register your hook, then you can create a bridge, but in C# may be Code project article is usefull.