Windows programming

Moderators: None (Apply to moderate this forum)
Number of threads: 3670
Number of posts: 9122

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How to Use Win32 API to Hook to Windows and Detect Mouse Clicks? Posted by msafi on 5 Apr 2010 at 11:59 AM
Can you please give me sample code of a Win32 console application that will hook to Windows through the API and listen for mouse clicks (all mouse clicks in the OS; not just the clicks on the app's window)?

I looked high and low for this, but couldn't find it or learn how to do it.

I'd take your code, compile it in Visual C++ Express, and learn a lot from it. I hope that it'll be my door to finally wrapping my head around Win32 API because I'll have started with a little proggy that I'm really interested in, for a change.
Report
Re: How to Use Win32 API to Hook to Windows and Detect Mouse Clicks? Posted by eran_tenenboim on 5 Apr 2010 at 12:42 PM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.