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

Examples

Sending right button double click:

{
    "to": [
        {
            "software_function": {
                "cg_event_double_click": {
                    "button": 1
                }
            }
        }
    ]
}