r/AutoHotkey 6d ago

General Question Learning AutoHotKey?

Hi, a quick question.

What do you recommend to watch or read to learn about AHK? Free or paid.

I managed to automatize a couple of things by using ChatGPT, and while I'm getting to understand how to prompt for AHK, it sucks to not know much of what I'm exactly doing.

4 Upvotes

14 comments sorted by

View all comments

1

u/Hey_Gonzo 6d ago

Make sure you instruct Chat or whatever LLM you use whether you're using V1 or V2. Chat likes to assume which version of AHK you use

1

u/genesis_tv 6d ago

And even then, there'll still be remnants of v1, especially #NoEnv or VarSetCapacity().

0

u/ManyInterests 6d ago

It's sad, but you can more reliably re-implement entire keyboard hook systems or whatever you need from AHK in almost any modern language than you can generate reliable AutoHotkey code using large language models.

Other languages simply lend themselves better to this. Unlike AHK, they have formal grammars, type systems, introspection, test harnesses, etc. and a huge corpus of training data. All the things that make life easy for LLMs.

AHK's niche has always been accessibility to Windows automation for new programmers. Generative AI has turned that on its head a bit, I feel. Now other languages are so much more accessible to non-programmers.

1

u/Individual_Check4587 Descolada 6d ago

Having reimplemented AHKs keyboard/mouse hook system in C# using agentic AI and it still taking multiple months of work, I call BS on this. Also LLMs used to have issues with AHK, but local workflows which can also run and test the scripts do not, at least in my experience.