public static void SendMouseUp(int x, int y) { Cursor.Position = GetDpiSafeLocation(x, y); ThreadUtil.WaitFor(1000); NativeUtil.mouse_event(NativeUtil.MOUSEEVENTF_LEFTUP, 0, 0, 0, UIntPtr.Zero); ThreadUtil.WaitFor(150); }
public static void SendMouseRightDoubleClick(int x, int y) { Cursor.Position = GetDpiSafeLocation(x, y); NativeUtil.mouse_event( NativeUtil.MOUSEEVENTF_RIGHTDOWN | NativeUtil.MOUSEEVENTF_RIGHTUP, 0, 0, 0, UIntPtr.Zero); ThreadUtil.WaitFor(150); NativeUtil.mouse_event( NativeUtil.MOUSEEVENTF_RIGHTDOWN | NativeUtil.MOUSEEVENTF_RIGHTUP, 0, 0, 0, UIntPtr.Zero); }
public static void SendMouseLeftClick(int x, int y) { Cursor.Position = GetDpiSafeLocation(x, y); NativeUtil.mouse_event( NativeUtil.MOUSEEVENTF_LEFTDOWN | NativeUtil.MOUSEEVENTF_LEFTUP, 0, 0, 0, UIntPtr.Zero); }