Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 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);
 }