Repository navigation
Expand file tree
/
Copy pathIMouse.cs
More file actions
74 lines (62 loc) · 2.43 KB
/
Copy pathIMouse.cs
File metadata and controls
74 lines (62 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
namespace Process.NET.Windows.Mouse
{
public interface IMouse
{
/// <summary>
/// Clicks the left button of the mouse at the current cursor position.
/// </summary>
void ClickLeft();
/// <summary>
/// Clicks the middle button of the mouse at the current cursor position.
/// </summary>
void ClickMiddle();
/// <summary>
/// Clicks the right button of the mouse at the current cursor position.
/// </summary>
void ClickRight();
/// <summary>
/// Double clicks the left button of the mouse at the current cursor position.
/// </summary>
void DoubleClickLeft();
/// <summary>
/// Moves the cursor at the specified coordinate from the position of the window.
/// </summary>
/// <param name="x">The x-coordinate.</param>
/// <param name="y">The y-coordinate.</param>
void MoveTo(int x, int y);
/// <summary>
/// Presses the left button of the mouse at the current cursor position.
/// </summary>
void PressLeft();
/// <summary>
/// Presses the middle button of the mouse at the current cursor position.
/// </summary>
void PressMiddle();
/// <summary>
/// Presses the right button of the mouse at the current cursor position.
/// </summary>
void PressRight();
/// <summary>
/// Releases the left button of the mouse at the current cursor position.
/// </summary>
void ReleaseLeft();
/// <summary>
/// Releases the middle button of the mouse at the current cursor position.
/// </summary>
void ReleaseMiddle();
/// <summary>
/// Releases the right button of the mouse at the current cursor position.
/// </summary>
void ReleaseRight();
/// <summary>
/// Scrolls horizontally using the wheel of the mouse at the current cursor position.
/// </summary>
/// <param name="delta">The amount of wheel movement.</param>
void ScrollHorizontally(int delta = 120);
/// <summary>
/// Scrolls vertically using the wheel of the mouse at the current cursor position.
/// </summary>
/// <param name="delta">The amount of wheel movement.</param>
void ScrollVertically(int delta = 120);
}
}