Welcome to the AHK forums but please don't post broken AI-generated code - which is against the current forum rules.
We have already seen worse AI code but this was not a good starting point, especially since this seems to be an AHK v2 request (at least this is the v2 help subforum). The broken code was a mixture of deprecated v1 and a bit of invented array and hex color syntax.
I would recommend to start fresh by using the v2 docs and the collected knowledge of these forums. Current AI systems are simply not of much use regarding v2 code creation.
We have already seen worse AI code but this was not a good starting point, especially since this seems to be an AHK v2 request (at least this is the v2 help subforum). The broken code was a mixture of deprecated v1 and a bit of invented array and hex color syntax.
I would recommend to start fresh by using the v2 docs and the collected knowledge of these forums. Current AI systems are simply not of much use regarding v2 code creation.
Statistics: Posted by gregster — Today, 16:19