title: CEF Simulate Mousedown and Keysend
body: <p>I want to use CEF to control a Flash Application, so I need to simulate MouseDown and KeySend without JavaScript. I am using offscreen rendering. This is what I tried:</p>
  
  <pre><code>managedCefBrowserAdapter.OnMouseButton(
      500, 500, 0, true, 2, CefEventFlags.LeftMouseButton); 
  </code></pre>
  
  <p>or</p>
  
  <pre><code>MouseEvent a = new MouseEvent();
  a.Modifiers = CefEventFlags.LeftMouseButton;
  a.X = 500;
  a.Y = 500;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>managedCefBrowserAdapter.SendKeyEvent(0, 0, 0);
  </code></pre>
  
  <p>But nothing works.</p>