Getting External Mouse Events
I need help with detecting mouse coordinates and clicks beyond my application. I´m using SetWindowsHookEx(WH_MOUSE... but it only detects mouse events in my program. As soon as the cursor leaves my application it stops getting mouse data.
It would be great to have a sample of source
Re: Getting External Mouse Events
Read MSDN for SetWindowsHookEx(), LL or not
Re: Getting External Mouse Events
Couple of words for clarification.
You are not getting Getting External Mouse Events.
Mouse movement and button clicks events are processed by a mouse driver. Windows generates messages that are sent to an application. What you are looking for is receiving mouse messages that are sent to windows other that your application window.
Follow discussion in this, this or this thread.
Re: Getting External Mouse Events
Many thanks for the clarification JohnCz... is it possible to have a sample of source code? i´m a little bit n00b
Re: Getting External Mouse Events
You are welcome.
Did you follow links I gave you? I think you did not, since you would find sample code already.
Re: Getting External Mouse Events
many thx .. i didn´t see it.