Exemplo n.º 1
0
 /// <summary>
 /// Checks globally whether a key is down or not.
 /// </summary>
 /// <param name="key"></param>
 /// <returns></returns>
 public static bool IsKeyDown(Keys key)
 {
     return((Win32API.GetAsyncKeyState(key) & 0x8000) != 0);
 }
Exemplo n.º 2
0
 public static void SetCursorPosition(Point p)
 {
     Win32API.SetCursorPos(p.X, p.Y);
 }