2

I want to make a simple macro for a game I play but can't figure out how through mac programs. I'm looking to run a macro where when I press x, it outputs as pressing the x key twice in a row very fast (.5milliseconds).

Basically turning x into xx, but having the output very fast

1 Answer 1

1

I suggest you try Karabiner Elements where you can do what you want (but I don't know HOW fast).
You'd have to import a VERY simple "Complex Modification" to press two key presses in a row.
Something like this:

{"title": "Make single letter click twice FAST …",
 "rules": [
        { "description": "Press 'x' twice.",
         "manipulators": [
           "conditions":[{"bundle_identifiers": [ "^com.game.name" ],
                                        "type": "frontmost_application_if" }
                         ],
                 "from": { "key_code": "x",
                          "modifiers": { "optional": ["any"] }
                         },
                   "to": [
                          { "key_code": "x" }, { "key_code": "x" } ],
                 "type": "basic"
} ] } ] }

Karabiner comes with "EventViewer" which will tell you in its tab "frontmost application" what name it expects (keep "^" !).
(HERE is an example which explains the importing into K-Elements.)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .