Hi,
Could anyone tell me how to generate a mouseclick directed to the point where the mouse currently is on the screen? I've tried using
invoke SendMessage, HWND_BROADCAST, WM_LBUTTONDOWN, NULL, NULL
invoke SendMessage, HWND_BROADCAST, WM_LBUTTONUP, NULL, NULL
But no dice, it only sends a click to the top window, and even then it doesn't know the X and the Y of the mouse.
Any ideas?
Could anyone tell me how to generate a mouseclick directed to the point where the mouse currently is on the screen? I've tried using
invoke SendMessage, HWND_BROADCAST, WM_LBUTTONDOWN, NULL, NULL
invoke SendMessage, HWND_BROADCAST, WM_LBUTTONUP, NULL, NULL
But no dice, it only sends a click to the top window, and even then it doesn't know the X and the Y of the mouse.
Any ideas?
Check out SetWindowsHookEx with the WH_JOURNALPLAYBACK type
of hook, it can be used for something like this.
of hook, it can be used for something like this.