Keyboard Maestro 10 Features in a Video

Whoops, that makes more sense! I find tokens a bit confusing as well since there is some overlap between tokens and KM's functions. For me, the biggest difference between tokens and functions is where they can be used. If I'm working in a text context, then I use a token, and if I'm working in a numeric context then I know I will have to use a function.

Either way, functions and tokens are a way of asking KM for information about the current state of the system. So, I can ask for information about the frontmost app, the screen resolution, current time, etc.

I have a style preference where if Iā€™m going to use a token more than once in a macro, then I will use the token to set the value of a local variable. Then, I use my local variable everywhere else. This allows me to self-document the macro by choosing descriptive variable names. It also means that I can adjust the macro very easily since I can change the token in a single location if I need to.

1 Like

Nice, I love learning tips and tricks like this that makes a lot of sense and looks like something I will be putting into practice as I start using Tokens.

Thank you, that is great info to know and you are a very fun teacher, that is why I would absolutely love taking a class with you!

Thank you for the reference page!

Thanks for the pictures, those are helpful to dicect things. I will dive into all of these even deeper and test out next week.

1 Like