Hi All,
In Move window between desktops? - #16 by timvisher I want to trigger a macro with 12 different hotkey triggers and then type a keystroke that corresponds to which of the 12 different triggers was typed.
I found
- Type a keystroke randomly (which implies that doing something like that would require AppleScript)
- Create a variable to store which keystroke you want to type - #8 by Yu_Cai (which implies that it may require AppleScript as well as some interpolation of the keys I want to press into hardware keycodes)
Both of those options seem like more trouble than they're worth at the moment.
Is there any way currently to dynamically set what key I want to press based on the trigger input that's better than the the Switch structure in my macro or the options outlined in the posts I linked?
In pseudocode I want to
- Get the non-modifier key that was pressed
- Press that key with the option modifier
Thanks in advance!