ACAT.Lib.Core.Utility.User32Interop.mouse_event C# (CSharp) Метод

mouse_event() приватный Метод

private mouse_event ( int dwFlags, int dx, int dy, int cButtons, int dwExtraInfo ) : void
dwFlags int
dx int
dy int
cButtons int
dwExtraInfo int
Результат void
        public static extern void mouse_event(int dwFlags, int dx, int dy, int cButtons, int dwExtraInfo);

Usage Example

Пример #1
0
        /// Simulates a right button double click at the current
        /// cursor position
        public static void SimulateRightMouseDoubleClick()
        {
            int mouseX = Cursor.Position.X;
            int mouseY = Cursor.Position.Y;

            User32Interop.mouse_event(User32Interop.MOUSEEVENTF_RIGHTDOWN |
                                      User32Interop.MOUSEEVENTF_RIGHTUP, mouseX, mouseY, 0, 0);
            User32Interop.mouse_event(User32Interop.MOUSEEVENTF_RIGHTDOWN |
                                      User32Interop.MOUSEEVENTF_RIGHTUP, mouseX, mouseY, 0, 0);
        }
All Usage Examples Of ACAT.Lib.Core.Utility.User32Interop::mouse_event