public void TouchAt(int x, int y) { var normalized = Normalize(x, y); NativeMouseMethods.mouse_event((uint)(NativeMouseMethods.MouseEvent.Move | NativeMouseMethods.MouseEvent.Absolute), normalized.X, normalized.Y, 0, 0); NativeMouseMethods.mouse_event((uint)(NativeMouseMethods.MouseEvent.LeftDown | NativeMouseMethods.MouseEvent.Absolute), normalized.X, normalized.Y, 0, 0); NativeMouseMethods.mouse_event((uint)(NativeMouseMethods.MouseEvent.LeftUp | NativeMouseMethods.MouseEvent.Absolute), normalized.X, normalized.Y, 0, 0); }
public void Click() { NativeMouseMethods.mouse_event((uint)NativeMouseMethods.MouseEvent.LeftDown, 0, 0, 0, 0); NativeMouseMethods.mouse_event((uint)NativeMouseMethods.MouseEvent.LeftUp, 0, 0, 0, 0); }
public void Move(int dx, int dy) { NativeMouseMethods.mouse_event((uint)NativeMouseMethods.MouseEvent.Move, dx, dy, 0, 0); }