I want to write a Windows program that runs in the background and prints out the exact time (accurate to the millisecond) of when the next mouse double click event occurs. Specifically, I want the exact time at which I double click on a certain .exe file on my desktop. Is there a way of doing this, and if so, could you provide some simple sample code?
Share
Probably making a Windows hook is the best solution.
Check out the documentation on hooks.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms632589%28v=vs.85%29.aspx
And check out this demo:
http://code.msdn.microsoft.com/windowsdesktop/CppWindowsHook-06957865