Send click to coords without moving the cursor

Hi there,
I'm wondering if it's possible to be able to send a click to a window at a selected location but without disturbing or moving the hardware cursor's location or it's current 'button down status'.

So far I've been using the mouse_event() function. My code will capture the mouses location. Move the mouse to the desired location, send a left click and then move it back to the original location. This works ok for a work around to what I'm attempting to do but can cause problems which outweigh it's benefits.

I'm grateful of any feedback.
You can use the send_input winapi function to send just about any keyboard or mouse interface event to a window that handles it.

Beyond that you could make a DLL that can do it for you.
Last edited on
Topic archived. No new replies allowed.