/* auto-execute section */ Loop, 3 ; repeat three times { If checkPixel(A_Index) = red GoSub, harvest } ; end of auto-execute section Return /* subroutines */ harvest: ; ... put commands here (e.g. incessant clicking) Return /* functions */ checkPixel(xPos) { ; ... put commands here (e.g. get color value) Return var ; e.g. return color value }