willianrod / ODeck

A free and open-source alternative to StreamDeck
https://odeck.app
MIT License
399 stars 25 forks source link

Macro plugin #60

Open TheCodeingPadawan opened 8 months ago

TheCodeingPadawan commented 8 months ago

Hot keys are one thing, but something that would really be useful would be macros.

It could look something like this.

"keys": [
    {
        "label": "inv1",
        "backgroundColor": "#ffae00",
        "color": "#fff",
        "id": "2024-03-23T10:46:13.703Z",
        "type": "macro",
        "pageId": "c2283202-64d9-4e31-856a-ea0dda4b629b",
        "position": 0,
        "backgroundUrl": "",
        "hideLabel": "",
        "actionConfig": {
            "key-hold": "q",
            "wait-ms": "1000",
            "key-press": "1",
            "wait-ms": "250",
            "key-press": "Enter",
            "key-hold-end": "q"
        }
    }
]

The UI can consist of an add action button. The add action button then moves down one slot, and a drop down or popup appears to select the action type, and a text/dropdown/record field or button, to enter the relevant variable. You can then click add action again and it all stacks downwards.