title: Simulating multiple mouse events
body: <p>I'm attempting to create a UI where I interact with normal WPF controls without the mouse. I want to support multiple cursors so using any regular input simulation (such as <code>SendInput</code>) doesn't work. I also tried interlacing <code>SendInput</code> messages to simulate to mouse cursors but that didn't work either (only got one mouse input). I also have the constraint that I do not want to use Windows <code>MultiPoint</code>.
  I've tried sending events to the controls (testing it on Button) through mouse events when I detect my cursor position is above the controls using: <code>MouseEnterEvent</code>, <code>MouseLeaveEvent</code>, <code>MouseMove</code>, <code>MouseDownEvent</code> and <code>MouseUpEvent</code>. But except for the <code>MouseDownEvent</code>, none of it seems to work.
  Here is an example of how I send the <code>MouseEnterEvent</code>:</p>
  
  <pre><code>System.Windows.Input.MouseEventArgs e =
      new System.Windows.Input.MouseEventArgs(System.Windows.Input.Mouse.PrimaryDevice, DateTime.Now.Millisecond);
  e.RoutedEvent = System.Windows.Input.Mouse.MouseEnterEvent;
  elementUnderCursor.RaiseEvent(e);
  </code></pre>
  
  <p>Where <code>elementUnderCursor</code> is a <code>UIElement</code>.</p>