Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Very cool! Is there an equivalent for those of us in the Windows world?


Autohotkey[1] has some of the functionality at least:

[1] https://www.google.com/?q=autohotkey


Thanks for the prompt reply! I was looking for more of a you can do things in Lua and get to Windows functions. AutoHotKey looks cool, but it appears to be it's own little language.

I'm pretty fluent in Lua, so being able to leverage ability like Hammerspoon does would be great.


AHK is a terribly designed language, but holy hell, you can do some nifty stuff with it. For instance, I like to download music from YouTube and SoundCloud using youtube-dl but I disliked having to open up and manually copy and pasting the URL, etc. I found an AHK script that gets the URL name of the current active Firefox window, edited it a little so that it pipes that URL into a batch file, and now if I find a song I like, all I have to do is hit a hotkey chord and after about 30 seconds, it's in my Music folder. It is a total hack - the kind of thing AHK was made for - but somehow it works!


pywinauto exposes a lot of the same functions to Python.

https://pywinauto.github.io/


There is RobotJS which is cross platform https://github.com/octalmage/robotjs




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: