Hello,
I'm trying to control a some content presented over Adobe Flash Player in a browser.
This manipulation works well when I'm performing myself on keyboard the keys UP, DOWN, LEFT, RIGHT.
But when I try to issue these commands through System.Windows.Forms.SendKeys it doesn't work over Flash content. If I run my program over any other content or program to test it I can see that it is working, I mean it sends the input correctly!
Does anyone have a suggestion why it doesn't work over Adobe Flash Player?
I had already tried:
Send
System.Windows.Forms.SendKeys.Send("{RIGHT}");
Send and wait
System.Windows.Forms.SendKeys.SendWait("{RIGHT}");
Perform a click over the content before issuing the commands, like:
//Mouse left down mouse_event(0x00000002, 0, 0, 0, 0); //Release mouse left button mouse_event(0x00000004, 0, 0, 0, 0); System.Windows.Forms.SendKeys.Send("{RIGHT}");
Or even instead of using RIGHT arrow, perform a similar operation with the mouse (pressing left button, move and release left button)
//Mouse left down mouse_event(0x00000002, 0, 0, 0, 0); //Move right mouse_event(0x00000001, 40, 0, 0, 0); //Release mouse left button mouse_event(0x00000004, 0, 0, 0, 0);
But still no results.
Just to reaffirm all of these tries works well over other programs or content and also if I reproduce them with a mouse or keyboard over Flash content it also works. How can I make my program be able to also do it?
Thanks for your attention.
Diogo