I am writing an application which records whatever user types with the key stroke event.
But it doesnt work if user opens another window (say a notepad file ) and types something on it
What do i do for that
Thanks in advance
Tracy
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
TracyPosted Jan 2, 2008, 11:14 PM
AlanPosted Dec 24, 2007, 7:11 AM
You have to install a global keyboard hook to capture keystrokes in other applications.
Trusting that you've a valid reason for wanting to do so, please see this Code Project article for a C# solution:
http://www.codeproject.com/KB/cs/globalhook.aspx