Sunday, August 23, 2009

Arrays in AHK

To learn how to work with arrays in AHK, read

1) Help docs for StringSplit (tells you the convention - there's nothing set in stone, but you want to let var0 have the number of elements and var1,..,varN have the actual data

2) This great post from meister Infogulch : [lib] pgArray - A solution for Manipulating AHK's Arrays v2

3) Look at the help on Arrays - you can search the Index for that.

To create a string from an array, you're looking at something really nasty like

string =
Loop %var0%
{
string .= var%A_Index%
}

I know, you wish perl was easier to use on Windows, you with AHK was more like perl. But, what can you expect for $0.0? It's a great tool for the price.

No comments:

Post a Comment