Definition at line 119 of file Win32.cs.
◆ MouseEventFlags
| Enumerator |
|---|
| LeftDown | |
| LeftUp | |
| MiddleDown | |
| MiddleUp | |
| Move | |
| Absolute | |
| RightDown | |
| RightUp | |
Definition at line 123 of file Win32.cs.
124 {
133 }
static void RightDown()
It sends a message to the operating system that the right mouse button has been pressed.
static void LeftDown()
The function takes the mouse event flag and calls the mouse event function.
◆ GetCursorPosition()
| static MousePoint BioCore.MouseOperations.GetCursorPosition |
( |
| ) |
|
|
static |
Get the current mouse position, if it fails, return a point of 0,0
- Returns
- A MousePoint object.
Definition at line 223 of file Win32.cs.
224 {
225 MousePoint currentMousePoint;
226 var gotPoint = GetCursorPos(out currentMousePoint);
227 if (!gotPoint) { currentMousePoint = new MousePoint(0, 0); }
228 return currentMousePoint;
229 }
◆ LeftClick()
| static void BioCore.MouseOperations.LeftClick |
( |
| ) |
|
|
static |
It sends a message to the operating system that the left mouse button has been pressed and released
Definition at line 170 of file Win32.cs.
171 {
173 }
static void MouseEvent(MouseEventFlags value)
◆ LeftDown()
| static void BioCore.MouseOperations.LeftDown |
( |
| ) |
|
|
static |
The function takes the mouse event flag and calls the mouse event function.
Definition at line 181 of file Win32.cs.
◆ LeftUp()
| static void BioCore.MouseOperations.LeftUp |
( |
| ) |
|
|
static |
◆ MouseEvent()
It takes a MouseEventFlags enum value and calls the mouse_event function with the current cursor position
- Parameters
-
| MouseEventFlags | This is the type of mouse event you want to simulate. |
Definition at line 235 of file Win32.cs.
236 {
238
239 mouse_event
240 ((int)value,
241 position.X,
242 position.Y,
243 0,
244 0)
245 ;
246 }
static MousePoint GetCursorPosition()
◆ RightClick()
| static void BioCore.MouseOperations.RightClick |
( |
| ) |
|
|
static |
◆ RightDown()
| static void BioCore.MouseOperations.RightDown |
( |
| ) |
|
|
static |
It sends a message to the operating system that the right mouse button has been pressed.
Definition at line 186 of file Win32.cs.
◆ RightUp()
| static void BioCore.MouseOperations.RightUp |
( |
| ) |
|
|
static |
◆ SetCursorPosition() [1/2]
| static void BioCore.MouseOperations.SetCursorPosition |
( |
int | x, |
|
|
int | y ) |
|
static |
SetCursorPos(x, y);
- Parameters
-
| x | The x coordinate of the cursor. |
| y | The y coordinate of the cursor. |
Definition at line 206 of file Win32.cs.
207 {
208 SetCursorPos(x, y);
209 }
◆ SetCursorPosition() [2/2]
| static void BioCore.MouseOperations.SetCursorPosition |
( |
MousePoint | point | ) |
|
|
static |
It takes a MousePoint object, which contains an X and Y coordinate, and sets the cursor position to that point
- Parameters
-
| MousePoint | A struct that contains the X and Y coordinates of the mouse. |
Definition at line 215 of file Win32.cs.
216 {
217 SetCursorPos(point.X, point.Y);
218 }
The documentation for this class was generated from the following file: