Live data from Hacker News

In Praise of AutoHotKey

hillelwayne.com

51–60 of 220 posts

Re: In Praise of AutoHotKey

#51
In a similar spirit, another very useful Windows tool is Windows Keyboard Layout Creator. I first started by editing the US English keyboard to have an AltGr key which produced Turkish letters like ğ and Ş, and just recently I added a Greek dead key which lets me type α, γ, Ω etc with two keystrokes. What's really nice is that the usual keyboard is a single Win+Space away so my friends don't need to struggle when using my PC.

Re: In Praise of AutoHotKey

#53
I've been writing AHK code almost every workday for the past year and a half to automate my job and I'm in love with it. The power that I have in comparison to my co-workers in completing tasks is almost unfair. The writer of the article didn't mention GUI's in ahk which are super simple and I encourage you to check them out.

Re: In Praise of AutoHotKey

#54
I had an AHK script that uses capslock+ijkl for navigation (plus a few other things like modal space-bar for select) but it wasn't reliable enough at speed. Maybe it was the way I programmed it.

So I wrote a Windows keyboard hook in C which turns out to be easy enough to do. I just hard-coded the key mappings in a switch statement. Been using it for about 10 years and find it hard to work without it.

Re: In Praise of AutoHotKey

#55
post #22

The hotstrings feature is also present in Linux, where they are known as compose sequences. The default compose sequences can be found in the Compose files under /usr/share/X11/locale and you can also have custom compose sequences in ~/.XCompose. Some of the compose sequences make use of a special Compose key (written in the rules). You may need to go to the keyboard settings to enable the compose key. https://en.wik…

For more, sxhkd is easy to configure and powerful: https://github.com/baskerville/sxhkd

or just use i3

Re: In Praise of AutoHotKey

#56
post #39

I love AutoHotkey, and it works wonderfully in the niche of writing a bunch of tiny UI- and workflow-smoothing functions, like how an Emacs user gradually builds up tweaks in their config file. The one time I tried to use it for scripting that required more than the most basic logic, I ran screaming back to Python. Over a decade of well-meaning development and reasonable design choices have resulted in AHK growing a…

AKH v2 has been "upcoming" for close to a decade now.

AutoHotkey started out as a fork of AutoIt by Chris Mallett, who stopped development around 2010 or so. Then Steve Gray (Lexikos) continued development under a fork called AHK_L, which later became AHK v1.1, and he's been the sole maintainer ever since. The GitHub repository is still fairly active, and I believe the v2 alpha is fairly stable, so I'm curious as to what changes still need to be made before it's done.

Re: In Praise of AutoHotKey

#57
what? windows is a second class citizen in the wider development world? The "wider" development world covers a lot of areas... though I notice in certain developer communities certain OS's are more dominant.

but yes autohotkey is great!

Re: In Praise of AutoHotKey

#58
post #29

I absolutely love AutoHotKey. I've been using it for over 15 years. I used to use it to format my HTML back when i only used a Text Editor (similar to what this link is using for Markdown. I never use my right-control key so I map a lot of stuff to it. I used to have macros on rightctrl+b = surround the selection with and later (yes, it was that long ago). I had some nifty ones with logic for adding s (looking for @…

What are all these websites that prevent pasting? I noticed a few people are using tools to get around these.

A common one I see is when you're entering in bank account information and they force you to retype the account and/or routing number, even though you never typed it in to begin with because you just copy-pasted it from your bank's website :/

Re: In Praise of AutoHotKey

#59
post #21

I've used AHK a fair bit, and while it's quite helpful I can't help but want for a better syntax and less limited core language. I think it would do much better as a lisp with more obviously defined syntax boundaries.

Try the AHK v2 alpha. It removes a lot of the cruft and weird inconsistencies of v1. Someone else on this page linked to a changelog.

Re: In Praise of AutoHotKey

#60
post #17

I've started[1] to do similar things on macOS using Hammerspoon[2]. So far I've set it up to let me: 1. Use shift when pasting something to simulate typing in the text instead, getting around websites that block pasting. 2. Use ";" as a hyper key. By holding it down and pressing another key, I can switch between specific programs without cycling. I can also use hjkl as arrow keys. 3. Automatically switch audio input…

The usage of ; as a hyper key is fascinating. This is the first time I've seen someone do something with Hammerspoon that's actually tempting me to try it out.

For paste blockers I've been using an Alfred workflow that types keys using AppleScript. It doesn't work with characters that require special input like ü, which is annoying, but it's sufficient for passwords. The benefit here is I'm not using up a global hotkey for such an infrequent use-case (especially not one actually used by other apps, such as Terminal.app).

Post reply on HN