Definition at line 104 of file Win32.cs.
◆ MouseEventFlags
| Enumerator |
|---|
| LeftDown | |
| LeftUp | |
| MiddleDown | |
| MiddleUp | |
| Move | |
| Absolute | |
| RightDown | |
| RightUp | |
Definition at line 108 of file Win32.cs.
◆ 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 {
134 }
static void MouseEvent(MouseEventFlags value)
◆ LeftDown()
| static void BioImager.MouseOperations.LeftDown |
( |
| ) |
|
|
static |
◆ LeftUp()
| static void BioImager.MouseOperations.LeftUp |
( |
| ) |
|
|
static |
◆ MouseEvent()
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,
196 0,
197 0)
198 ;
199 }
static MousePoint GetCursorPosition()
◆ RightClick()
| static void BioImager.MouseOperations.RightClick |
( |
| ) |
|
|
static |
◆ 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: