So I am trying to make a script to move my mouse to navigate the menus in game faster. I've made it so the 'to' has multiple items, which it works fine until I add the second click then the mouse no longer moves when executed (I assume because the second mouse click happens too fast and overrides it). I have added a 'delay' line, code here, which JSON seems to accept but karabiner does not and an error appears in the log so won't run the complex modification at all, error here. Please could someone help or suggest a better way to do this, thank you.
Asked
Active
Viewed 99 times
1 Answers
1
I am amazed that nobody answered your straigbtforward question ...
here is a simplified example how-to:
"from": {
"key_code": "your_keys" },
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 1000 },
"to": [ {
"key_code": "your_1st_action" }
],
"to_delayed_action": {
"to_if_invoked": [ {
"key_code": "further_actions_after_DELAY_of_1000ms" } ] }
If you plan several "breaks" you better use (e.g.) an osascript with AppleScript and "delay 0.5" ...

clemsam lang
- 440
- 3
- 11