1

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:

  1. Press / (which opens the console and prefills a /)
  2. Press Enter to send it
  3. Press / again
  4. Type "home"
  5. 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).

2
  1. Install and open Keyboard Maestro
  2. Create a new macro (+ button at the bottom of the Macros collum)
  3. Call it what you like
  4. Click 'New Trigger' (next to green +), then select 'Hot Key Trigger'
  5. Press + H
  6. Click 'New Action', then select the 'Control Flow' category
  7. Double-click 'If Then Else' to add it
  8. Within the new action added to the macro, click 'New Condition', then select 'Application Condition'
  9. Select Minecraft (the one with the console icon, not the one with the Minecraft icon, you may have to select 'More...' or 'Other...')
  10. Click inside the first 'No Action'
  11. Select the 'Text' category on the left, then add 'Type a Keystroke'
  12. Click where it says 'Return' and change it to '/' by pressing /
  13. 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)
  14. Add another 'Type a Keystroke' action (step 10), don't change 'Return' (you can also use + D to duplicate actions)
  15. Add another 'Pause' action
  16. Add another / Keystroke and Pause (steps 11-12)
  17. Select the 'Text' category again, add 'Insert Text by Typing', and type "home"
  18. Add another Return Keystroke

Your macro should look like this when you're done: finished macro

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.