c# - Sending keystrokes to a Flash/Silverlight app embedded in a webbrowser control (mostly done) -


note: doesn't seem apply silverlight only, i've read people have same problems flash, keep in mind.

i'm trying write program control netflix through own buttons (for now, extended mobile remote control app), sending hotkeys directly using windows api.

  • i able retrieve actual window handle used netflix silverlight player.
  • i able send keystrokes specified window handles (using translatemessage function in win api)
  • but cannot, reason, netflix player recognize keystroke send.
  • i have tried using setfocus function in win api before attempting send keypresses , doesn't help.

what need figure out, why it's differentiating keys sent via api calls, physical keyboard key presses.

here's how have things set (window class names reference):

form1 (windowsforms10.window.8.app.0.33c0d9d)

webbrowser control (shell docobject view)

html page (internet explorer_server)

embedded silverlight player (microsoftsilverlight)

i wondering if might able offer suggestions. in advance.. can me through this.

i tried send keyevents flash application in c# (i wanted 'hack' griefing game called "clop").

i noticed didn't work. can send keyevents browser flash plugin seems ignore these after acquiring focus.

i suspect isn't possible because of security measures.

i found following thread here on stackoverflow explained bit more (this 1 flash well) send keyboard , mouse events flash movie


Comments