I've tried that extensively, with no luck.
I have some experience with AHK1 and wanted ChatGPT to basically convert scripts to AHK2.
It's pretty much a loop: first response gives a syntax error. When I reply with the error message, it apologizes, explains where the error is, and gives another solution. That solution has different errors. When pasting the error message, it apologizes again, and gives a third version with syntax errors. And then it starts with the first version again, and I can repeat the loop.