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