; Scan the digits in Area 1
Loop, 10
{
PixelSearch, FoundX, FoundY, X1, Y1, X2, Y2, Color, Variation, Fast
if ErrorLevel = 0
{
; Search for the digits in Area 2
Loop, 10
{
PixelSearch, FoundX2, FoundY2, X3, Y3, X4, Y4, Color2, Variation2, Fast
if ErrorLevel = 0
{
; Click on the first digit found in Area 2
Click %FoundX2%, %FoundY2%
break
}
Sleep, 2000 ; Wait for 2 seconds before searching again
}
break
}
Sleep, 100 ; Wait for 100 milliseconds before searching again
}
я хз