UltimateHackingKeyboard / agent

Ultimate Hacking Keyboard configurator
https://ultimatehackingkeyboard.github.io/agent/
Other
692 stars 77 forks source link

Feature Request: Variables in Macros #2174

Closed seanparkross closed 4 months ago

seanparkross commented 4 months ago

Would be great to have access to a few key variables in Macros... eg: today's date.

seanparkross commented 4 months ago

A stretch goal would also be basic scripting in Macros 🤤

kareltucek commented 4 months ago

You have noticed the command macro action, its "smart macro" documentation in the right pane, and a link at its end that leads to yet another documentation that contains an additional bunch of more advanced commands, right? Because UHK does support what I would call basic scripting as well as variables.

As to todays date, UHK does not know todays date, so wanting it to print it is futile. (You want an editor with a snippet engine for that, like vim with ultisnips. Keyboard cant do that job very well as it does not have acces to the text buffer and so does not know a lot of context information that any advanced snippet engine just needs access to.)

mondalaci commented 4 months ago

I think, given the capabilities of the hardware, this is a non-issue, so I'm closing this one. Feel free to follow up, nevertheless.