I want to call a function when the user presses the left mouse button down and then call another function when they let go. However I need it to work when the user is not in the application. So for example if the user is playing a game and presses the left mouse button it will call my function etc... I have tried a few pre-made classes with no luck and was wondering if anyone could point me in the right direction. Thanks.
Asked
Active
Viewed 70 times
0
-
Low level mouse hook? – CodesInChaos Jul 22 '15 at 05:43
-
I shall have a google search :) Have any helpful links handy? – user3642449 Jul 22 '15 at 05:47
-
Here's a good example http://blogs.msdn.com/b/toub/archive/2006/05/03/589468.aspx – Steve Lillis Jul 22 '15 at 05:54
-
here is a solution in a similar post http://stackoverflow.com/questions/11607133/global-mouse-event-handler – Mitchel Sellers Jul 22 '15 at 06:48