I have created an array as xArray:=[2, 3, 4]
I need to use these values one by one in a loop.
I have tried using a counter variable, but it didn't work.
There's even a predefined "A_Index" variable in ahk scripts. Can someone elaborate on that? It might be the solution.
Loop %ArrayCount% { element := Array%A_Index% }, (where ArrayCount is the size of the array) which seems to do an array traversal. Source: autohotkey.com/docs/misc/Arrays.htmelementseems to receive the value in the given position, similar toelement = Array[i];in C.