Is there a way to send mouse events to another window in Window 7 ?
I used to do this :
[DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]
public static extern void mouse_event(long dwFlags, long dx, long dy, long cButtons, long dwExtraInfo);
But this does not seem to work anymore in Win7.
Any ideas ?
Thanks.
Not work how?
One thing that might be relevant (it’s hard because you’ve given so little detail) is that non-elevated (under UAC) apps are not allowed to communicate with elevated ones. So if one app is elevated and one not, you would say it “doesn’t seem to work”. But you can’t fix that by changing the API you use.