News for hackers. Stuff that matters.
Re:Learn AutoHotKey by stealing my scripts by poisonborz on Tuesday August 22, 2023 @03:54AM (#37219837)
That's why Autohotkey v2 exists, which is... AHK's own Python3 moment, since it was available for years. Well, ok, stable release was only like a year ago, but I don't see much adoption.
Re:Learn AutoHotKey by stealing my scripts by wruza on Tuesday August 22, 2023 @05:11AM (#37220293)
I believe I’m using v2, since I written most of my scripts last year by most recent documentation which mentioned “old ways” sometimes. But it didn’t make a big difference in that regard.
Re:Learn AutoHotKey by stealing my scripts by hwayne on Tuesday August 22, 2023 @12:13PM (#37224811)
Couple of ways to tell

1. Do your multiline hotkeys have `Return` in them, or are they in braces?

2. Do you write `Send Foo` or `Send "Foo"`?

If you're doing the former, then I really recommend upgrading to v2, it makes a huge difference.

Re:Learn AutoHotKey by stealing my scripts by wruza on Tuesday August 22, 2023 @12:41PM (#37225234)
[delayed]
Re:Learn AutoHotKey by stealing my scripts by layer8 on Tuesday August 22, 2023 @05:47AM (#37220525)
TFA uses V2. I also started using AHK just in time to use V2. Of course it will take time for all the V1 users to migrate, but for anyone starting now it makes little sense to use V1.
Re:Learn AutoHotKey by stealing my scripts by eviks on Tuesday August 22, 2023 @06:45AM (#37220884)
it's just a bit tedious to convert even with the help of a converter, especially when you're dealing with libraries which you didn't write, but still very much worth it (you could maybe also do a lot of the conversion piecemeal and just run both for some time)
Re:Learn AutoHotKey by stealing my scripts by hwayne on Tuesday August 22, 2023 @12:14PM (#37224827)
Part of the problem IMO is that AHKv2 is magnitudes better if you're a programmer, because it makes the entire language consistent and sane. But if most users aren't programmers, so they don't have the same burning incentive to switch.