Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / March 2006

Tip: Looking for answers? Try searching our database.

Key Press Event

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Charles A. Lackman - 09 Mar 2006 23:59 GMT
Hello,

I am trying to create an application that captures the KeyPress Events that
are happening anywhere on the OS (In any window that has focus).  I have a
windows form that is maximized and set to transparent.  I have written code
to allow the mouse to click through the form and also to type through the
form.  But the form does not capture the keypress events.  I am using win32
API to accomplish this so far.

Actually I am simply asking where you might suggest I look to find a way to
capture every key press event regardless of what window it is taking place
in.  Please, I am not looking for something that has already been made I am
looking to make my own (Key Capture Software).

Any suggestions will be greatly appreciated.

Thanks,

Chuck
Mehdi - 10 Mar 2006 11:51 GMT
> Actually I am simply asking where you might suggest I look to find a way to
> capture every key press event regardless of what window it is taking place
> in.  Please, I am not looking for something that has already been made I am
> looking to make my own (Key Capture Software).

You'll need to set up a global keyboard hook. This involves a fair bit of
Win32 interop:
http://www.codeproject.com/csharp/globalhook.asp
http://www.codeproject.com/csharp/GlobalSystemHook.asp

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.