Simulates mouse input in Windows.
More...
#include <windows.h>
Simulates mouse input in Windows.
- Note
- Do not include this file directly. Use simulate.hpp instead.
◆ WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN |
◆ doubleClick()
◆ leftClick()
Simulate a left click.
- Note
- Repeated calls to this function may result in a double click. Use singleClick() if you want to avoid this.
- See also
- singleClick()
◆ middleClick()
◆ moveMouseByOffset()
void moveMouseByOffset |
( |
int | x, |
|
|
int | y ) |
Move the mouse by the specified offset.
- Parameters
-
x | from 0 to screen width |
y | from 0 to screen height |
◆ moveMouseToPosition()
void moveMouseToPosition |
( |
int | x, |
|
|
int | y ) |
Move the mouse to the specified coordinates.
- Parameters
-
x | from 0 to screen width |
y | from 0 to screen height |
◆ rightClick()
◆ scrollDown()
◆ scrollUp()
◆ singleClick()
Simulate a single left click.
- Note
- This function will sleep for the double click time.