Key Press , Key Release Macro

Anyone know the script command to make a key press / key release macro?

Example

v— Key press DOWN —v
/cast Thunder Clap
or
/castsequence Thunder Clap, Revenge

^— Key release UP—^
/cast Revenge
or
reset castsequence

I was talking to someone and they said it was “possible” to a point. I’m trying to figure out the in game /script command for Key press / Key release macros, and how you could combine it into a cast sequence or if you could make the “RELEASE” trigger the “RESET” of the macro.

Gello might have a solution. Think they posted some code to that effect ages ago.

This is possible but perhaps not easily with a macro you can drag to your bars since regular actionbuttons don’t do an action on both down and up unless you button:RegisterForClicks(“AnyDown”,“AnyUp”). This creates a dependency on your action bar.

This post has a small addon that makes SHIFT-C run two different macros, one on key down (to start heroic leap reticle) and another on key up (to cast heroic leap @cursor)

You can modify it to cast thunderclap on key down and revenge on key up.

/castsequence would never progress beyond the first spell if you had a reset on the key up. So I’m not sure what you’re after with that. Unless you think keys would repeat while down? That doesn’t happen.