Here's an example of iterating through a set of coordinates in a loop from one of my scripts:
Code:
; This holds the counts.
TotalGoodRegulars := 0
; These hold the coordinates of the notes icons for each seat.
VarNotesX := "322|440|468|436|311|150|33|9|37|154"
VarNotesY := "70|107|170|270|287|287|259|173|93|70"
StringSplit, ArrayNotesX, VarNotesX, |,
StringSplit, ArrayNotesY, VarNotesY, |,
; Lets go round each seat and check for their notes icon being present.
Loop, 10
{
; Check notes icon.
xx := x + (ArrayNotesX%a_index% * (w/533))
yy := y + (ArrayNotesY%a_index% * (h/396))
PixelGetColor, col, xx, yy
if (col = 0x0000FF)
TotalGoodRegulars := TotalGoodRegulars + 1
}
You should be able to adapt that to do what you want.
Juk