public bool IsMouseLeftDown() { return(Convert.ToBoolean(MousePInvoke.GetKeyState(VirtualKey.LeftButton) & (int)KeyState.KeyPressed)); }
public void ScrollVertically(int units) { MousePInvoke.mouse_event((uint)MouseEventFlags.MOUSEEVENTF_WHEEL, 0, 0, (uint)units, 0); }
public void MouseLeftDown() { MousePInvoke.mouse_event((uint)MouseEventFlags.LEFTDOWN, 0, 0, 0, 0); }
public void MouseLeftUp() { MousePInvoke.mouse_event((uint)MouseEventFlags.LEFTUP, 0, 0, 0, 0); }
public void MouseMiddleClick() { MousePInvoke.mouse_event((uint)MouseEventFlags.MIDDLEDOWN, 0, 0, 0, 0); MousePInvoke.mouse_event((uint)MouseEventFlags.MIDDLEUP, 0, 0, 0, 0); }
public void MouseRightClick() { MousePInvoke.mouse_event((uint)MouseEventFlags.RIGHTDOWN, 0, 0, 0, 0); MousePInvoke.mouse_event((uint)MouseEventFlags.RIGHTUP, 0, 0, 0, 0); }
public void MouseLeftClick() { MousePInvoke.mouse_event((uint)MouseEventFlags.LEFTDOWN, 0, 0, 0, 0); MousePInvoke.mouse_event((uint)MouseEventFlags.LEFTUP, 0, 0, 0, 0); }
public void SetCursorPosition(Point p) { MousePInvoke.SetCursorPos(p.X, p.Y); }
public void SetCursorPosition(int left, int top) { MousePInvoke.SetCursorPos(left, top); }