set_mouse_cursor_position
Move the mouse cursor to the specified point.
{
"to": [
{
"software_function": {
"set_mouse_cursor_position": {
"x": 0,
"y": 0,
"screen": 0
}
}
}
]
}
Name | Required | Description |
---|---|---|
x |
Required | The new mouse cursor position |
y |
Required | The new mouse cursor position |
screen |
Optional | The screen index of the new mouse cursor origin |
Position format
There are two styles to specify the position.
Type | Format | Example |
---|---|---|
Point | integer | { "x": 100 } |
Percent | “xx%” | { "x": "50%" } |
Examples
Set the mouse cursor position to (0,0) of the second screen.
{
"to": [
{
"software_function": {
"set_mouse_cursor_position": {
"x": 0,
"y": 0,
"screen": 1
}
}
}
]
}
Set the mouse cursor position to center of the first screen.
{
"to": [
{
"software_function": {
"set_mouse_cursor_position": {
"x": "50%",
"y": "50%",
"screen": 0
}
}
}
]
}