alex8
New Member
Posts: 1
|
Post by alex8 on Dec 16, 2018 10:39:15 GMT
I'm trying to recognize location of some random numbers(10px height).
There's part of the code:
r, g, b = getColor(Location(1,1)) usePreviousSnap(true) x=31 y=300 while( y < 900) do x=31 while( x < 710) do r, g, b = getColor(Location(x,y))
if ( r > 200 and g > 200 and b < 20) then --toast("x-" .. x .. " y-" .. y .. " r-" .. r .. " g-" .. g .. " b-" ..b) click(Location(x-30,y+30)) x=x+40 end x=x+1 end y=y+8 end usePreviousSnap(false)
How to make script executing faster?
I also tried to use exists function with yellow1x1.png file, but nothing to happend.
|
|