1
votes

I need to simulate mouse move inside of windows under Win 7. Usually i would use SendInput(). But it can simulate mose moving only at the one window at the time. I need to simulate mouse moving at the multiple windows at the time.

Is this even possible? And how?

1
This has already been answered linkSumsar1812
There is only one mouse cursor. It sounds like you have a solution in mind (which isn't possible to implement); what is your actual problem?Eric Brown
Eric Brown, i'm developing a multi-process program. Each process simulates some user actions inside of it's window. About 15-20 processes working at each moment of time while program runs. Also every process should simulate mouse moving.Alexander
I guess you'll need to define what you mean by "simulate mouse moving". Do you understand that the system has only one cursor?David Heffernan
Well, the process should "think" that the cursor is over it's window, that it changes it's position and never quit it's window region. Window procedure should react in appropriate way. How about PostMessage(hWnd, WM_MOUSEMOVE, ...)?Alexander

1 Answers

0
votes

The SetCursorPos function is the API function that allows you to modify the location of the cursor.