Live data from Hacker News

AutoHotKey V2 (Breaking Upgrade)

autohotkey.com

111–120 of 124 posts

Re: AutoHotKey V2 (Breaking Upgrade)

#111
post #90
post #7

As someone who has been using Macs since 2006 and recently moved to Windows, I cannot recommend AHK enough.

It's one of the few things I miss from Windows as a Linux user. Some of it can be done using xdotool and other utilities, but nothing works the way AHK does.

Have you tried AHK for Linux?

Discussion and link at https://news.ycombinator.com/item?id=32654023

Re: AutoHotKey V2 (Breaking Upgrade)

#112
post #89

Earlier quoted context omitted.

It's gone longer without a breaking change than Python, for one...

Let me start by saying that I appreciate the humour here :) However, in actuality... Python is from 1991. Python 2 (from 2000) was not a breaking change if I'm skimming the "what's new in python 2.0" correctly. Python 2 was supported until 2020 (29 years). Autohotkey from 2003 (19 years old now). Unless AHKv1 is still maintained, Python wins by a decade.

Ahh, I was supposing if AHK had been written in Python, starting in 2003 because that's when AHK started, it would've experienced a breaking change in either 2008 or 2020, when Python 3 came out or when Python 2 ended support.

Either way, yes it was just a cheap attempt at a joke, thank you for seeing it as such! Python pedantry isn't my strong suit, obviously.

Re: AutoHotKey V2 (Breaking Upgrade)

#113

Would a tool like Auto hotkey if it were implemented on Linux work with Wayland?

Some parts will work. Some parts won't. AHK lets you run arbitrary code in response to global hotkeys. There is no wayland protocol for applications to register global hotkeys for themselves. Compositors can choose to provide their own hotkey configurations, and what you can do in response to those hotkeys being pressed depends on the compositor. For example in Sway you can register hotkeys to run arbitrary executabl…

Wow! So this really is a blocking issue for accessibility and automation framework.

Re: AutoHotKey V2 (Breaking Upgrade)

#114
post #107

Earlier quoted context omitted.

I have a mixed experience. Sometimes I got an insulting answer, and sometimes a throughout one. My personal baseline for a toxic community is the Golang one on Stack Overflow. So far the AHK form is better.

AHK is great from what I've seen. It's AutoIt that's the problem. AHK was originally a fork of the FOSS version of AutoIt, before AutoIt went closed and proprietary. A lot of the toxicity on the AutoIt forum seems to come from the grossly overinflated egos of few core participants (some of which appear to be employees in some capacity). Reading through the forum, you can easily get the impression these people believe…

I dunno, I find AHK's syntax really hard to wrap my head around, whereas AutoIt is simplistic enough that I never had to even bother with the forums in the first place, the built-in helpfile basically has everything I needed.

Re: AutoHotKey V2 (Breaking Upgrade)

#115
post #107

Earlier quoted context omitted.

AHK is great from what I've seen. It's AutoIt that's the problem. AHK was originally a fork of the FOSS version of AutoIt, before AutoIt went closed and proprietary. A lot of the toxicity on the AutoIt forum seems to come from the grossly overinflated egos of few core participants (some of which appear to be employees in some capacity). Reading through the forum, you can easily get the impression these people believe…

I dunno, I find AHK's syntax really hard to wrap my head around, whereas AutoIt is simplistic enough that I never had to even bother with the forums in the first place, the built-in helpfile basically has everything I needed.

Objectively, the syntax for both are horrible (based on BASIC I believe, but still). Magic numbers, hex numbers, huge number of function parameters, obfuscated parameter/variable names, etc. It all leads to barely readable spaghetti code even in the most well-written UDF examples. And... good luck trying to get anything but the blessed-but-insufficient-for-serious-work IDE to work for you.

Help files are decent... but if you need help with a concept/idea/implementation - you are much better served to seek that help anywhere except from AutoIt or their forums. Which is sad.

Re: AutoHotKey V2 (Breaking Upgrade)

#116
post #90

Earlier quoted context omitted.

It's one of the few things I miss from Windows as a Linux user. Some of it can be done using xdotool and other utilities, but nothing works the way AHK does.

Have you tried AHK for Linux? Discussion and link at https://news.ycombinator.com/item?id=32654023

Good to know! Posted four months ago, "first functional implementation", nope that wasn't around yet >10 years ago when I switched and missed AHK.

Re: AutoHotKey V2 (Breaking Upgrade)

#117
post #5
post #4

As someone who recently dove back into AHK, I must say v2 has been fantastic! So many great quality of life improvements and overall the documentation is top notch. I cobbled together a launcher app and modal-hotkey system from scratch in a couple of afternoons of enjoyable work. If you're looking to try stuff out, having an autoreload function is a very nice addition to your script while developing. A very pragmatic…

Is the modal hotkey system public code?

Here's a modal remap I've been using for the past few years. It's a bit rough around the edges, but should work reasonably well: https://github.com/MatejKafka/KeyboardRemap

Re: AutoHotKey V2 (Breaking Upgrade)

#118
Wow! This is exciting! While in my dreams I would still prefer a Rust alternative, sadly there isn't one.

I have a ~5000loc script that I've been planning to rewrite, but there was never much reason except stability. But I guess now is the right time!

I am still looking for some modern AI OCR for AHK, because the solutions that I've found this far hasn't really worked well.

I must say, working with AHK is always fun, even though not implementing press ESC to exit the script can be quite fun.

Re: AutoHotKey V2 (Breaking Upgrade)

#120
post #90
post #7

As someone who has been using Macs since 2006 and recently moved to Windows, I cannot recommend AHK enough.

It's one of the few things I miss from Windows as a Linux user. Some of it can be done using xdotool and other utilities, but nothing works the way AHK does.

You can run AHK on Linux with Wine.
Post reply on HN