Gags
Gags

Reputation: 903

Capture mouse clicks and keyboard key strokes using C#

I have a use case to capture mouse clicks and keyboard key strokes on a browser like IE using a C# program.

How can we do this ?

Thanks, Gagan

Upvotes: 1

Views: 411

Answers (1)

Prateek Shrivastava
Prateek Shrivastava

Reputation: 1937

Answer lies in What you are actually trying to achieve?

If this is a KeyLogger - that should works across on applications - Read about SetWindowsHookEx.

If you are trying to automate some testing of a browser based app/website - then there are better frameworks like Selenium etc. which should be considered.

Upvotes: 2

Related Questions