Live data from Hacker News

AutoHotKey V2 (Breaking Upgrade)

autohotkey.com

11–20 of 124 posts

Re: AutoHotKey V2 (Breaking Upgrade)

#11

I'm surprised no one has mentioned this; AHK broke compatibility with this upgrade. I tried upgrading autohotkey and it braked my scripts. It seems to have an auto-regress feature, which is nice. If someone knows where there is a comprehensive this-for-that upgrade guide, that would be nice; I didn't see such a thing on the site.

Well, it is the second sentence on the page:

> AutoHotkey v2 aims to improve the usability and convenience of the language and command set by sacrificing backward compatibility. As such, scripts written for v1 generally will not work without changes on v2

Re: AutoHotKey V2 (Breaking Upgrade)

#12
The bit about the anti-malware is sad. Does anyone remember a true positive from their AV? I can recall countless incidents caused by false positives, but can’t remember a single true positive.

The latest was Crowdstrike Falcon (AI POWERED!!1) flagging signtool.exe as malware. The one from the Windows SDK. By Microsoft. Signed with Microsoft keys.

Re: AutoHotKey V2 (Breaking Upgrade)

#14
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?

Uhh it’s a bit hacky at the moment but I can clean it up a but and release what I got.

Really it isn’t much more than an abuse of the Hotkey function and (effectively) function pointers.

I’ll put it up this evening though if people want to peep at it.

[Edit] In case people miss the other reply it's here: https://github.com/url00/ModalAHK

Re: AutoHotKey V2 (Breaking Upgrade)

#15
post #12

The bit about the anti-malware is sad. Does anyone remember a true positive from their AV? I can recall countless incidents caused by false positives, but can’t remember a single true positive. The latest was Crowdstrike Falcon (AI POWERED!!1) flagging signtool.exe as malware. The one from the Windows SDK. By Microsoft. Signed with Microsoft keys.

The latest was Crowdstrike Falcon (AI POWERED!!1) flagging signtool.exe as malware.

For more than 99% of their install base its presence on a system may be a decent indicator of compromise. Maybe not worth flagging by itself but worth investigating anything that bundled it.

Re: AutoHotKey V2 (Breaking Upgrade)

#16
This is a bit of a PITA for me as most people use AHK to handle shortcuts for komorebi[1], which led to me generating an AHK library[2] to help people write their configs. Turns out every single line of that generated library (not to mention the entire sample config for newcomers) is now invalid syntax in v2.

I'm taking a month off from development while I'm traveling, maybe I'll feel less salty about this when I get back.

The biggest issue right now is that the Run and RunWait commands require strings for the commands to be executed, and AHK v2 has absolutely garbage support for string interpolation.

Honestly I'm not sure if I'll continue supporting AHK or just develop my own sxhkd (swhkd?) and recommend that for users going forward.

[1]: https://github.com/LGUG2Z/komorebi

[2]: https://github.com/LGUG2Z/komorebi/blob/master/komorebic.lib...

Re: AutoHotKey V2 (Breaking Upgrade)

#19
AHK has the distinction of being an absolutely indispensible tool and a horrendously terribly designed language. It's probably the worst-designed programming language I've ever seen. Whenever I'm frustarted with how slow and conservative Python development is, I remind myself that this is the main thing keeping us from reaching the same state as AHK.

I hope that this upgrade will fix some of these problems. I'll probably take a few years before I upgrade my AHK scripts.

Re: AutoHotKey V2 (Breaking Upgrade)

#20
post #13

AHK is what keeps me on Windows

I was a Windows guy: And when I moved to Linux I made some notes that I might have problems because of:

AutoCAD - true

Photoshop - true

SketchUp - true

AHK - not so much.

Autokey does what I need. But I still have great time for AHK - which is why I looked at this thread. Yeah, there's GIMP and Blender and SU online but these applications were really ace on Windows. I found a way to live without them all.

Post reply on HN