Sunday, November 21, 2010

I would like to know how the system stores the info of your mouseclick and how to call it in VB.NET?

I want to record every click my mouse does into an integer, like i can call a ';form1.click'; event and increment it into a variable eg, count +=1. but this only works if i click in the form, i want the program to run in the background and record all clicks done while the computer is on, and not just the clicks i do on the form.I would like to know how the system stores the info of your mouseclick and how to call it in VB.NET?
You need to hook into system events to capture those. Read up on Platform Invoke (consuming Win32 API functions in .NET) and then read up on SetWindowsHookEx.



Here are a couple of links to show you how to code this up.





http://www.eggheadcafe.com/conversation.鈥?/a>

http://www.codeproject.com/KB/system/glo鈥?/a>

No comments:

Post a Comment