Hacker News new | ask | show | jobs
by kstrauser 1693 days ago
If Lua scripting doesn't float your boat and you don't mind commercial software, Keyboard Maestro[0] is brilliant. I use it for:

* Expanding text macros (like TextExpander but not with a subscription)

* Automating web forms I have to fill out frequently (find the "Last Name" button; send "Smith"; hit "tab"; send "Joe"; find the "Submit this form" button and press it).

* Opening apps with hotkeys.

* Scripting stuff that isn't scriptable, like "find the Music app; right click on the ... menu; click Share; click Copy Link" to get the currently playing song's URL. (PS: If you know how to reliably get this another way, please let me know.)

* Doing really nifty things with OCR on the screen, like "send this set of keypresses, then look for the text that says 'I accept this', put the mouse over it, and click it" for apps that don't use native widgets.

Hammerspoon is super cool too, but I don't have the time to really tweak it as much as I can Keyboard Maestro.

[0] https://www.keyboardmaestro.com/main/