I\'d like to raise a mouse event (a click, mousedown, or mouseup) by taking a user\'s click anywhere in a WPF window and translating it by a known difference, e.g. click at
Win32 API won't work with WPF, this link might help
// Copied the snippet of code from the link above, just to help future readers
MouseEventArgs e = new MouseEventArgs(Mouse.PrimaryDevice, 0);
e.RoutedEvent = Mouse.MouseEnterEvent;
youUIElement.RaiseEvent(e);
// Or
InputManager.Current.ProcessInput(e);