Hacker News new | ask | show | jobs
by ibly31 2386 days ago
I have limited experience with Keyboard Maestro but I do have some with AppleScript. It lets you do as you described, get windows, titles, UI elements. However this only works on native apps, you cant, for example, click a button on a webpage with a CSS selector or by scanning pixels of the window, ad far as I know. Can AHK do that? That would be super useful
2 comments

While I've never done it, AHK seems to have an API for being able to interact with DOM elements.

Check the marked answer here: https://stackoverflow.com/questions/49516638/ahk-web-element...

The above answer shows both navigating to a new page that isn't open yet or interacting with an already loaded page based on the title of the tab.

Yes, Autohotkey can search for pixels and stuff:

https://www.autohotkey.com/docs/commands/PixelSearch.htm