I wrote a C # tool that mimics a user interacting with a Windows 7 environment. It works, unless you interact with several online flash applications. Mouse movements and clicks are generated, but Flash applications do not receive them. I think I need to generate mouse events at the lower level, but I cannot confirm this.
I tried several different mechanisms:
[DllImport("user32.dll")]
static extern void mouse_event(int dwFlags, int dx, int dy, int dwData, int dwExtraInfo);
[DllImport("user32.dll", SetLastError = true)]
private static extern uint SendInput(uint nInputs, INPUT[] pInputs, int cbSize);
Has anyone encountered this problem? Any ideas on how I can generate mouse events that will be logged in a Flash application?
Update:
Looks like flash applications get a mouse click. Their click animation is displayed when a C # application is sent with a mouse click. However, nothing happens even if the Flash application's mouse click animation is displayed.
source
share