I am surprised how bad it is with ahk scripts and wonder why. What is indeed "original" is that it gives code with unexisting functions, which it never does for the other languages (in my experience).
Perhaps the language is not that famous compared to js or C but i doubt. There are tons of forums discussing issues... Strange.
ChatGPT relies on examples to get the idea of what to do. Likely that ChatGPT don't have enough samplings across the web to know how to convert it. Even through there are documentations and man pages, but they tend to lack examples of how to do it. Usually I see in forums and discussion board that they are snippets of code that didn't provide enough context of the whole script. ChatGPT is doing its best to provide the code based on the knowledge it has. Perhaps it didn't scrap AHK scripts enough to provide a better code? Possible it didn't have enough information of how to convert ahk1 to ahk2? If that is the case, then it would be best to start fresh.
I am surprised how bad it is with ahk scripts and wonder why. What is indeed "original" is that it gives code with unexisting functions, which it never does for the other languages (in my experience).
Perhaps the language is not that famous compared to js or C but i doubt. There are tons of forums discussing issues... Strange.