Live data from Hacker News

In Praise of AutoHotKey

hillelwayne.com

191–200 of 220 posts

Re: In Praise of AutoHotKey

#191

Earlier quoted context omitted.

Its experiences like this that make me sad for people who can't code. Not full blown dev, just enough to automate the mundane. I can't imagine being at the mercy of computer tech in areas of being the master of it.

What advantage is it to the grunts if you automate stuff such that what took them an hour takes ten minutes? All that will happen is that either some will be laid off or the boss will find other ways of filling the time with other work.

Less mouse arm pain. And you can listen to podcasts, or something, in the 50 minutes.

Re: In Praise of AutoHotKey

#192
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…

> 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. Did you overload the ;-key, meaning it sends ; when pressed fast, and acts as modifier when hold and pressed with other keys? Is'nt that kidna painful to use and inflicts false input occasionaly? I too have some personal modifier-keys. I remaped Pause-key…

That's correct, but I've never gotten false input before. If my setup gave me false input even 0.5% of the time, I wouldn't use it at all. I give myself 250 milliseconds to release the ; key to type it as normal, and that has worked fine for me, both on my laptop keyboard and on my external keyboard.

I find it very easy to use since my pinky finger sits on the ; key by default.

Re: In Praise of AutoHotKey

#193

Earlier quoted context omitted.

Having used both Hammerspoon and AHK, the latter is somehow both terser and more ergonomic. I miss it dearly when I'm not on Windows. And I actually use caps lock as a "fn" key for hjkl/arrows. Who needs caps lock, really? I've actually gone kind of crazy with this idea and made my left ctrl, shift and alt behave as fn+ctrl, fn+shift and fn+alt, so that e.g. left ctrl+h actually does ctrl+left. Then I made fn+[ = pgu…

> And I actually use caps lock as a "fn" key for hjkl/arrows. Who needs caps lock, really? Caps Lock is quite useful, because it's the perfect location for remapping the Ctrl- and ESC-Keys. Which is no surprise, as they originally where located there. Under linux there is a nice tool for overloading keys, so they behave one way when pressed short, and another way when holded longer. With programmable keyboards you ev…

oh yeah. i remapped it to f15 and use it all the time now

Re: In Praise of AutoHotKey

#194
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…

What was wrong with Karabiner Elements? I am using it and am curious what are the downsides

I happily used Karabiner for years but only to handle my caps lock remapping. It's not bad. I just generally like having as few dependencies as possible. I definitely needed Hammerspoon for other stuff, so if it can cover my one use case for Karabiner as well, then I only need to use one program instead of two.

One specific reason I want to go with Hammerspoon in the long run for key remapping is that I plan to do more complicated things, like setting up key layers. And even if that's possible with Karabiner, I'd rather maintain the complexity with Lua code rather than Karabiner's JSON configuration, which is complicated enough that someone created a separate tool[1] just to generate the configuration.

I should note that one of the maintainers of Hammerspoon specifically recommended[2] using Karabiner instead of Hammerspoon for key remapping because Karabiner was built to do that. Hammerspoon has a much higher level view of key events, from what I understand. I don't plan to do any remapping with modifier keys though. I plan to only use the letter keys for everything. Something like: press and hold ;, then press and hold v, and then tap a. And that will re-arrange my current windows into my preferred arrangement. Stuff like that. Based on my initial experience, I should be able to do everything with just Hammerspoon.

[1]: https://github.com/yqrashawn/GokuRakuJoudo

[2]: https://github.com/Hammerspoon/hammerspoon/issues/1025#issue...

Re: In Praise of AutoHotKey

#195
post #72
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…

> including treating my monitor as a speaker for some reason (it doesn't have built-in speakers). This is quite common on HDMI monitors. Since the HDMI connection transmits both audio and video, the monitor just accepts both audio and video input. They would then have a 3.5-mm jack to allow you plug in an actual speaker or headphone to receive the audio output.

Ah, that makes sense. Thanks. I just checked and realized that I forgot my monitor has a headphone jack.

Re: In Praise of AutoHotKey

#197

Earlier quoted context omitted.

Its experiences like this that make me sad for people who can't code. Not full blown dev, just enough to automate the mundane. I can't imagine being at the mercy of computer tech in areas of being the master of it.

What advantage is it to the grunts if you automate stuff such that what took them an hour takes ten minutes? All that will happen is that either some will be laid off or the boss will find other ways of filling the time with other work.

Tedious work is very unpleasant. It's not just about how much time things take, but about how dreadfully boring the work can be.

Re: In Praise of AutoHotKey

#198
I love AHK!

It allows me to automate sentences or commands I frequently type. It also helps improve ergonomy of given websites (e.g. "page down" key rather than clicking on "next page").

It avoids the need to download dozens of software to do "this" or "that", piling up in the windows tray. If I need something, I write my AHK snippet.

And of course I have AHK shortcuts to Excel macros. And I have Excel macros that run AHK code :-)

Re: In Praise of AutoHotKey

#200

I had a low paid data entry job one summer at university well over a decade ago that involved a tortuous process for digitising gas mains installation information. I discovered ahk and found I was able to install it, so I began to script the repetitive entry screens spread between multiple different programs. It allowed you to write a simple GUI form to collect various data up front. There was a lot of window picking…

Your mistake here was not pitching the idea to someone more senior.
Post reply on HN