cg_event_double_click
Send double click event by software.
cg_event_double_click
ensures that the click event occurs at the same location even if the mouse cursor is moving between the first click and the second click.
{
"to": [
{
"software_function": {
"cg_event_double_click": {
"button": 0
}
}
}
]
}
Name | Required | Description |
---|---|---|
button |
Required | An integer of CGMouseButton. 0: Left Click 1: Right Click 2: Middle Click 3,4,5,…,31: Other Buttons |
Low responsiveness
This event will be lagged since it is sent by software implementation. It is better to sendpointing_button::button1
twice instead of cg_event_double_click
to get a better response.
Accessibility
cg_event_double_click
uses the accessibility features.
You have to allow karabiner_console_user_server
in Privacy & Security System Settings.
Examples
Sending right button double click:
{
"to": [
{
"software_function": {
"cg_event_double_click": {
"button": 1
}
}
}
]
}