ODeck icon indicating copy to clipboard operation
ODeck copied to clipboard

Macro plugin

Open TheCodeingPadawan opened this issue 11 months ago • 0 comments

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.

TheCodeingPadawan avatar Mar 23 '24 13:03 TheCodeingPadawan