Пример #1
0
 public static void SetCursorPos(int x, int y)
 {
     WinAPI.SetCursorPos(x, y);
 }
Пример #2
0
        public static bool IsKeyPressedAsync(VK key)
        {
            int state = WinAPI.GetAsyncKeyState((int)key);

            return(state == -32767);
        }
Пример #3
0
 public static void KeyDown(VK key)
 {
     WinAPI.keybd_event((byte)key, 0, 0, IntPtr.Zero);
 }
Пример #4
0
        public static bool IsKeyPressed(VK key)
        {
            int state = WinAPI.GetKeyState((int)key);

            return(state < 0);
        }