Back to Blog
Keyboard maestro tap7/21/2023 Ironically, I’d not actually in favor of visual programming languages for most purposes because, as seen above, the text version is not much harder to understand. Keyboard Maestro is simply a visual programming language. LastControl = NowControl // remember the time this tap of the Control key If LastControl > NowControl - 1.0 then // if the last tap of the Control key happened less than 1.0 seconds ago LastControl = 0 // if the variable LastControl is undefined, set it to 0 If you were going to write this in a text programming language, it would look something like this: NowControl = SECONDS() // get the current time in seconds since boot. ![]() Subscribers get access to an exclusive podcast, members-only stories, and a special community.The macro is very simple if you know any programming languages at all. If you appreciate articles like this one, support us by becoming a Six Colors subscriber. If you want to automate actions on your Mac, especially if you never want to write a line of AppleScript or any other code, you owe it to yourself to check it out. Keyboard Maestro costs $36 and there’s a free trial. ![]() But its power can’t be denied, and its ability to find specific items on the screen has solved several automation problems that I thought were unsolvable. Keyboard Maestro’s interface could use a refresh-it still drives me batty that I can’t leave its library of Actions open all the time, and that they appear in a slide-up pane that covers my library of macros. At which point I can run the rest of the macro using keyboard shortcuts and menu items. But Keyboard Maestro will match my sample image against the contents of the screen, find the right area, and then click on it. To do this, I’ve taken a screenshot of that session to use as the example:ĭepending on the placement of the window and the number of sessions in Audio Hijack, that block could be anywhere. This set of commands looks on my screen to see if a particular Audio Hijack session appears in the app’s Sessions window, and if it does, it clicks on it. Here’s a portion of a Keyboard Maestro macro of mine: Keyboard Maestro has an answer: it looks at your screen for you, finds what it’s looking for, and lets you act on it. And if that thing isn’t in the exact same place on the screen every time, how can you automate it? Something you would probably use your human eyes and human brain to find. But sometimes you can’t avoid needing to automate clicking on a something specific on the screen. And you can do an awful lot with those features. It’ll open apps, move and resize windows, emulate keystrokes and simulate the pulling down of menu items. ![]() Keyboard Maestro does a zillion different things, including most of the things you can think of. I’ve been meaning to write more about Keyboard Maestro for a while now, because what it does is nothing short of amazing. It owes its power to some mind-boggling methods, like emulating keyboard shortcuts, invoking menu items, and monitoring what’s displayed on the screen itself. Keyboard Maestro has been the solution to almost every this-seems-impossible problem I’ve encountered on my Mac. In my recent piece about automation on macOS and iOS, I mentioned the witchcraft that is possible on the Mac with Keyboard Maestro: Note: This story has not been updated since 2021. ![]() Keyboard Maestro’s most mind-blowing feature
0 Comments
Read More
Leave a Reply. |