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?
Posted on 2002-04-22 17:15:24 by Ronin Magus
Check out SetWindowsHookEx with the WH_JOURNALPLAYBACK type
of hook, it can be used for something like this.
Posted on 2002-04-22 17:46:41 by f0dder