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 / Languages / Managed C++ / August 2007

Tip: Looking for answers? Try searching our database.

Capturing Global Mouse and Keyboard Events

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
wbyeats - 13 Aug 2007 05:42 GMT
Hi,

I would like to enable my VC++ application to capture general mouse
and keyboard events (click, double-click, key press) that occur
outside of my application's frame (eg. clicking inside the frame of
another application).  I'm quite sure this is possible, but I don't
know how to do it.  Anyone have experience with this?

Thanks in advance for your help.
Dinesh Venugopalan - 13 Aug 2007 07:14 GMT
Hi,

Set hooks using SetWindowsHookEx().

Hope this helps.

Dinesh Venugopalan
> Hi,
>
[quoted text clipped - 5 lines]
>
> Thanks in advance for your help.
wbyeats - 16 Aug 2007 00:23 GMT
Thanks, Dinesh.

That put me on the right track.  Now I'm just trying to figure out
DLLs.
David Wilkinson - 16 Aug 2007 01:11 GMT
> Thanks, Dinesh.
>
> That put me on the right track.  Now I'm just trying to figure out
> DLLs.

wbyeats:

You might find this article useful.

<http://www.codeproject.com/dll/hooks.asp>

There are some other hook articles on Codeproject also.

Signature

David Wilkinson
Visual C++ MVP


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.