I want to create some macros for a server on Minecraft. One example would be /home. The server doesn't allow two of the same strings in a row to be sent, so if the last command I used was /home and I wanted to use it again, I'd usually do this:
- Press / (which opens the console and prefills a /)
- Press Enter to send it
- Press / again
- Type "home"
- Press Enter again to send the command
I'd like to make a macro that did all when I pressed ⌘ + H, but only if I was in Minecraft (and if possible, only on that particular server).
21 Answer
- Install and open Keyboard Maestro
- Create a new macro (+ button at the bottom of the Macros collum)
- Call it what you like
- Click 'New Trigger' (next to green +), then select 'Hot Key Trigger'
- Press ⌘ + H
- Click 'New Action', then select the 'Control Flow' category
- Double-click 'If Then Else' to add it
- Within the new action added to the macro, click 'New Condition', then select 'Application Condition'
- Select Minecraft (the one with the console icon, not the one with the Minecraft icon, you may have to select 'More...' or 'Other...')
- Click inside the first 'No Action'
- Select the 'Text' category on the left, then add 'Type a Keystroke'
- Click where it says 'Return' and change it to '/' by pressing /
- Select the 'Control Flow' category on the left, add 'Pause', and change it to .1 seconds (it doesn't seem to work without these delays, I used .1 just to make it as short as possible)
- Add another 'Type a Keystroke' action (step 10), don't change 'Return' (you can also use ⌘ + D to duplicate actions)
- Add another 'Pause' action
- Add another / Keystroke and Pause (steps 11-12)
- Select the 'Text' category again, add 'Insert Text by Typing', and type "home"
- Add another Return Keystroke