|
| enum | MouseEventFlags {
LeftDown = 0x00000002
, LeftUp = 0x00000004
, MiddleDown = 0x00000020
, MiddleUp = 0x00000040
,
Move = 0x00000001
, Absolute = 0x00008000
, RightDown = 0x00000008
, RightUp = 0x00000010
} |
| |
Definition at line 104 of file Win32.cs.
◆ MouseEventFlags
| enum BioImager.MouseOperations.MouseEventFlags |
Definition at line 108 of file Win32.cs.
109 {
110 LeftDown = 0x00000002,
111 LeftUp = 0x00000004,
112 MiddleDown = 0x00000020,
113 MiddleUp = 0x00000040,
114 Move = 0x00000001,
115 Absolute = 0x00008000,
116 RightDown = 0x00000008,
117 RightUp = 0x00000010
118 }
◆ GetCursorPosition()
| static MousePoint BioImager.MouseOperations.GetCursorPosition |
( |
| ) |
|
|
static |
GetCursorPosition() returns a MousePoint object that contains the current position of the mouse cursor
- Returns
- A MousePoint object.
Definition at line 177 of file Win32.cs.
178 {
179 MousePoint currentMousePoint;
180 var gotPoint = GetCursorPos(out currentMousePoint);
181 if (!gotPoint) { currentMousePoint = new MousePoint(0, 0); }
182 return currentMousePoint;
183 }
◆ LeftClick()
| static void BioImager.MouseOperations.LeftClick |
( |
| ) |
|
|
static |
Definition at line 131 of file Win32.cs.
132 {
133 MouseEvent(MouseEventFlags.LeftDown | MouseEventFlags.LeftUp);
134 }
static void MouseEvent(MouseEventFlags value)
◆ LeftDown()
| static void BioImager.MouseOperations.LeftDown |
( |
| ) |
|
|
static |
◆ LeftUp()
| static void BioImager.MouseOperations.LeftUp |
( |
| ) |
|
|
static |
◆ MouseEvent()
| static void BioImager.MouseOperations.MouseEvent |
( |
MouseEventFlags | value | ) |
|
|
static |
It simulates a mouse click at the current cursor position
- Parameters
-
| MouseEventFlags | This is the type of mouse event you want to simulate. |
Definition at line 188 of file Win32.cs.
189 {
191
192 mouse_event
193 ((int)value,
194 position.X,
195 position.Y,
196 0,
197 0)
198 ;
199 }
static MousePoint GetCursorPosition()
◆ RightClick()
| static void BioImager.MouseOperations.RightClick |
( |
| ) |
|
|
static |
Definition at line 135 of file Win32.cs.
136 {
137 MouseEvent(MouseEventFlags.RightDown | MouseEventFlags.RightUp);
138 }
◆ RightDown()
| static void BioImager.MouseOperations.RightDown |
( |
| ) |
|
|
static |
◆ RightUp()
| static void BioImager.MouseOperations.RightUp |
( |
| ) |
|
|
static |
◆ SetCursorPosition() [1/2]
| static void BioImager.MouseOperations.SetCursorPosition |
( |
int | x, |
|
|
int | y ) |
|
static |
It sets the cursor position to the specified coordinates
- Parameters
-
| x | The x coordinate of the cursor. |
| y | The y coordinate of the cursor. |
Definition at line 159 of file Win32.cs.
160 {
161 SetCursorPos(x, y);
162 }
◆ SetCursorPosition() [2/2]
| static void BioImager.MouseOperations.SetCursorPosition |
( |
MousePoint | point | ) |
|
|
static |
It takes a MousePoint object and sets the cursor position to the X and Y coordinates of the MousePoint object
- Parameters
-
| MousePoint | A struct that contains the X and Y coordinates of the mouse. |
Definition at line 168 of file Win32.cs.
169 {
170 SetCursorPos(point.X, point.Y);
171 }
The documentation for this class was generated from the following file: