Live data from Hacker News

AutoHotKey V2 (Breaking Upgrade)

autohotkey.com

51–60 of 124 posts

Re: AutoHotKey V2 (Breaking Upgrade)

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

Honestly I love the AHK documentation.

Some of the scripts I use daily are in Python, and some are in AHK. The AHK documentation is much easier to follow than the Python documentation IMO.

Re: AutoHotKey V2 (Breaking Upgrade)

#52
post #9

Earlier quoted context omitted.

Well, C++ has lambdas with explicit capture list. A captureless lambda is basically a function (it even converts to a function pointer), otherwise it's a closure.

Well, what? My objection is calling a closure for “nested function”, a term I’ve never seen for such a thing.

C# has "local functions" [1], and i feel like "nested function" is an equally good name for the concept

[1] https://learn.microsoft.com/en-us/dotnet/csharp/programming-...

Re: AutoHotKey V2 (Breaking Upgrade)

#56

I love AutoHotKey but why do I have to learn a new language to use it? Why can't it use an established language like js or python?

Likely surface area and dependencies. Nothing is stopping you from using Python with some of the GUI automation packages. Sadly I'm not aware of any that are cross platform, then again neither is AHK or Auto it.

Re: AutoHotKey V2 (Breaking Upgrade)

#57
Very useful program.

We had an old Tadiran phone system, and it was losing time. Randomly through the day it would lose anywhere from five minutes to two hours.

Of course, the system wasn't under maintenance any longer, and the phone place wanted $4,000 for a new motherboard (the crystal was bad so the clock was wrong, or so they said). Considering everything else worked fine, we just manually set the clock here and there.

And then I found AHK, and wrote a quick script that logged into the phone software, entered the correct time, and saved it to the system. Set that to run every hour and ever heard anyone complain about it again.

Re: AutoHotKey V2 (Breaking Upgrade)

#60

Somewhat timely. AHK is one of those utilities I absolutely cannot go without. I've been running it on all my Windows machines for 15 years now. Just a few days ago I was complaining¹ about how Excel handles formula input. After some back and forth on my yak-shaving attempt, I realized I could shave it myself with AHK. With this little bit of code, my [Enter] and [Tab] keys work the way I want them to in Excel. This…

...holy crap. You just blew my mind.

I have HUNDREDS of little AHK hotkeys. I use some of them dozens of times a day. I've been wanting some way to directly target Excel like this for literal years.

Thank you!!!

Post reply on HN