Click a key when away from the Keyboard

Hi all,
I’ve recently downloaded this app and I got to say, I am loving it.

Lately I have been testing out how to repeatedly trigger the return key, without being near the keyboard, an infinite number of times.

This is to help me be able to play Injustice 2 (clicking the return key would continue the game)

Anyone have any ideas that can help me?
Much appreciated :slight_smile:

Hi Josh,

Welcome to Keyboard Maestro! Here's one idea of how you might go about this:

Idle Return Key.kmmacros (2.4 KB)

This is all you would need to do to keep typing Return in Injustice 2 every minute after your Mac has been idle for five minutes. However, if you want it to type Return more frequently (say, every 10 seconds) you could also set up a macro like this and set it to be triggered either manually or after a certain number of idle minutes:

Idle Return Key.kmmacros (3.4 KB)

Once this macro has been triggered, it will keep typing Return every 10 seconds (you can of course change the Pause action's duration to adjust this) and stop once you move the mouse, just like canceling the screen saver.

Hopefully this should get you started! Feel free to come back and post again if you have any other questions.

1 Like

Hey Gabe,
Just saw this email (I’ve been moving houses and it takes a while), and I
would like to say thank you, the second code you made works like a charm.

Many Thanks,
Josh

1 Like