Hello,
I want to create a program that, any time it is running, will track all user left mouse clicks anywhere on the user's screen.
The program will then detect if the mouse click was inside a window (can be any application - IE window, AIM window, etc.).
If it was, I will check to see if the mouse click was between the rectangle defined by points P1, P2 in the aforementioned window. If it is, I will grab the window handle and move the window to location X, Y. That is all.
I know how to move/resize the window if I have the handle (using WinAPI).
What I am having problems coding is, how to return the coordinates of all mouse left-clicks outside of the application? And how do I check if a window is located at those coordinates?
Thanks!