From: Singtaa on
Hi,

I know I can achieve the same thing with sendmessage() and
postmessage() in most cases. But, I'm dealing with a graphical
simulation program that seems to be reading mouse inputs directly on
the hardware level.

How can I go about simulating mouse movements/clicks in that app/
window? (the graphical program is mostly in the background and does
not have focus. I can't simple use setcursorposition() neither).

I've actually seen this done by someone before (simulating mouse
movements simultaneously in multiple windows on a single and normal
desktop)

Thanks,
From: Doron Holan [MSFT] on
you cannot target a specific window in a driver, you can only post data to
the RIT and the RIT sends it to the appropriate window. if you want to send
data to the app directly, you have to have the app read the data from the
mouse driver directly w/out going through the RIT

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Singtaa" <st0724(a)gmail.com> wrote in message
news:0e700f14-ba60-488e-87f9-322d209855ec(a)a23g2000hsc.googlegroups.com...
> Hi,
>
> I know I can achieve the same thing with sendmessage() and
> postmessage() in most cases. But, I'm dealing with a graphical
> simulation program that seems to be reading mouse inputs directly on
> the hardware level.
>
> How can I go about simulating mouse movements/clicks in that app/
> window? (the graphical program is mostly in the background and does
> not have focus. I can't simple use setcursorposition() neither).
>
> I've actually seen this done by someone before (simulating mouse
> movements simultaneously in multiple windows on a single and normal
> desktop)
>
> Thanks,

From: Singtaa on
Thanks a lot for your advise. I'll look more into it.