Live data from Hacker News

In Praise of AutoHotKey

hillelwayne.com

111–120 of 220 posts

Re: In Praise of AutoHotKey

#111

Earlier quoted context omitted.

"Shamed", come on. You don't ask the guy in charge of maintenance to validate new tools. That person's job revolves around stability, and they will always make the safest possible call. If a new tool is needed, a steering committee of some kind should be used, and IT will be one part of that.

Where I work, IT in general has little say about what tool I use on my PC. They do periodic scans to check that I don't have any known unsafe tools, or tools that are known not to be OK without a formal license. But otherwise, as long as I'm not violating a license and not circumventing my virus scanner, I can use whatever tool I want. Work would come to a crawl if IT had to validate every single tool used in our com…

Would they get in trouble when someone used an automation tool that submitted hundreds of thousands of empty or even worse completely incorrect records, with no reconciliation plan?

If so, then they're completely right to stop some novice programmer from bringing their scripts to bear. There's no reason to take that risk if they have the funding for the current human solution. Bring it up to the superiors and pitch it, talk to some devs. I've seen groups lose hundreds of millions of dollars when one of these excel vbscript python enthusiast AHK things go off the rails. It's a mess, and - again - risk aversion is the most reasonable stance from a business standpoint. He's not a hacker founder, he's a business IT manager.

Edit to say, it sounds like you work at a company with <500 engineers, maybe even <500 employees total. That's fine! It's good even, but it's not an experience that's easily exported to the realm of Actual Business, at least not exactly. As a consultant, I've had billion dollar companies that need the fast fix (python script with a csv datastore to keep some account info or whatever) and I've worked for companies where this sort of approach would get you insta-canned. They're both right enough, but assuming one size fits all is absolutely crazy. It sounds like the mega oil corp above was the latter, at least to me.

Re: In Praise of AutoHotKey

#112

AutoHotKey (in addition to WSL and VS Code) was enough to make me Windows-curious and eventually try a Windows laptop again after 10+ years on Mac. I first found out about AHK via Tom Scott's similar ode here: https://www.youtube.com/watch?v=lIFE7h3m40U He describes it as “a bodge that helps you make other bodges”, which is beautifully put. [For those outside the UK, a “bodge” is a clumsy hack or repair.]

The odd thing about that video is that Tom claims he uses Windows because 1) it is cheaper, and 2) it allows him to "bodge" (aka create quick hacks). And he explicitly dismissed Linux.

But his example, creating an emoji keyboard, would be far easier with Linux. And Linux is cheaper (in terms of money, not necessarily time). Someone in the YouTube comments actually posted how to do it in Linux, which is basically:

    xinput list
    xkbcomp $DISPLAY mapping.xkb
    vim mapping.xkb
    xkbcomp -i  mapping.xkb $DISPLAY

Re: In Praise of AutoHotKey

#113

AutoHotKey (in addition to WSL and VS Code) was enough to make me Windows-curious and eventually try a Windows laptop again after 10+ years on Mac. I first found out about AHK via Tom Scott's similar ode here: https://www.youtube.com/watch?v=lIFE7h3m40U He describes it as “a bodge that helps you make other bodges”, which is beautifully put. [For those outside the UK, a “bodge” is a clumsy hack or repair.]

The American version of "bodge" is the similar "kludge". And yes, AHK is a kludge that makes kludges. Kludges are wonderful.

Re: In Praise of AutoHotKey

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

> getting around websites that block pasting.

This one really drives me mad. Is there really any legit reason to this?

By the way my hack is I paste it in the address bar, then just drag-drop into the field. Works 50% of the time or more (fails when a lot of these stupid websites don't use placeholder attribute but rather use some sort of Javascript for the placeholder text)

Re: In Praise of AutoHotKey

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

Sounds like AHKv2 is doing the grave mistake of "cleaning up" by breaking all the scripts and work that people have put towards using the tool.

Re: In Praise of AutoHotKey

#117
Best thing about autohotkey is the minimal boiler plate required and no walled garden approach to welcoming non professional programmers.

Its free, light weight, and has an excellent user manual.

Re: In Praise of AutoHotKey

#118
post #38
post #15

Here's what we really need - a tool that monitors the various user actions like specific application functionality used, website actions taken, and maybe keystrokes too (but that gets dicey), and then every month or so it recommends the most frequently done actions that you should automate with AHK or some other tool. What does the community think of this? PS - I use Alfred and Keyboard Maestro to get functionality s…

It would be the best privacy invading tool you could come up with :)

As long as it is only running locally and doesn't send any data anywhere it wont be privacy invading.

Re: In Praise of AutoHotKey

#119
post #4

“Let’s start with a simple one. I use Dragon voice to text for writing as I can speak prose a lot faster than I can type.“ I often use Siri on my iPhone to write messages, etc. It’s pretty good but at times frustrating. How does Dragon on Windows compare? I like the tablet form factor. Does Dragon work well on a Surface Go?

Dragon works much better than Siri for me.

Re: In Praise of AutoHotKey

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

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+[ = pgup, fn+] = pgdn, fn+; = home, fn+' = end and fn+\ = delete, with the same augmented fn+LHS modifiers.

Took me about a week for the muscle memory to catch up and allow me to correctly hit ctrl+L with the right hand when I want to go to the address bar, but now I'm ridiculously fast moving around in Excel without having to touch the arrow keys.

Only downside is I have a relatively problematic left wrist and this set up added to the already LHS stress to the already very imbalanced qwerty layout, so it forced me off mechanical keyboards to a low profile logitech right around the time COVID-19 hit.

If only Excel had vim bindings!!

Post reply on HN