I'm trying to create a macro in Keyboard Maestro that will randomly select one name from a list and type it. I already have multiple Insert Text by Typing actions, each containing a different name. My goal is for the macro to pick one random name and type it each time it's triggered.
I've tried different approaches, but I want to do it without using JavaScript or AppleScript—just using built-in Keyboard Maestro actions.
i have list of names inside separate Insert Text by Typing actions:
please i want When I trigger the macro, only one random name from the list should be typed.
I have a macro that requires a random selection for which I use switch/case because there are only around eight cases, so I was curious if there was a general solution for what appears to be a rather longish list of words. I still have regex on the brain and thus came up with this. Words can be added and removed from the list without affecting the macro. Perhaps not the most elegant solution, but surprisingly straightforward.