Lurker News
Hello HN,

this is the first functional reimplementation of AutoHotkey [1] for Unix-like systems, as far as I am aware. Half the commands are still missing, but everything important is done, as I have worked a lot on it over the past two months. Converting scripts into stand alone binaries is also supported. Hope this will find some adoption eventually. :-) - This implementation focuses on v1.0-like classic syntax from 2004 (!). This is a significant subset of the popular current v1.1 syntax from Windows (AHK_L). The reason this does not (yet?) target the full Windows spec is how complex it is. Notably, there's also another ongoing project which targets v2 called KeySharp [2].
If you are not aware of what AHK is, it is an easy but capable scripting language for automation and Hotkeys, and all sorts of visual things like GUIs.
If you want to learn more, there plenty of info on the repo, the docs html, and there's an active AHK Discord too, and I am personally also checking the forums and HN of course.
[1] https://www.autohotkey.com/ [2] https://bitbucket.org/mfeemster/keysharp/

Comments (183) 43 threads

Earlier comments
entropie1 reply#
Nice.

I installed autohotkey on windows because I wanted to duplicate subcommands that I use with linux for ages (xmonad has it more or less built in)

    meta m n # next track
    meta m space # play/pause
Was relatively easy to implement, after i got help in r/autohotkey
llllllllllll9#
you can implement the wm manager of your dreams in ahk ... in like 500 lines. it's amazing stuff.

you can also go all out: https://github.com/fuhsjr00/bug.n

DavidD#
Does autohotkey have keyboard and mouse recording function when I first learned about scripting 20 years ago Winbatch had that function which took a non-programmer who just wanted to speed up repetitive tasks into an entry level programmer after a few weeks of use.
georgewsinger1 reply#
Does this support converting new keys into new modifiers? IIRC AHK allows you to do things like:

  - If CapsLock is pressed, treat it as a new modifier.
  - If CapsLock is released, send "ESCAPE".
If so, that would be swell.
llllllllllll9#
you can do this with devinput alone, so for sure. see ydotool, xcape, or it's not hard to write your own.
arthurofcharn2 replies#
Wonderful news. Now we have hope of convincing Tom Scott to join the winning team.
smorrebrod#
Cross platform emoji keyboard!
taink#
For those unaware, here is the video: https://yewtu.be/watch?v=lIFE7h3m40U

I wonder if it is actually possible to just "connect the flumberboozle to the GKX virtual port"

Load more comments