without using the variable i used to write the name of the variable
if i do message>nColor_%S%
it tells me the value of the variable
but if i write it as nColor_0(one of the values of S)
its value is nColor_0
I've i tried working around it a bit here, however this didnt have any positive effect
Code: Select all
ScreenCapture>0,0,sx,sy,c:\cap\screen.bmp
FindImagePos>C:\cap\rock.bmp,C:\cap\screen.bmp,50,1,XArr8,YArr8,NumFound8
wait>3
if>NumFound8>0
Let>S=0
While>S<NumFound8>XArr8_%S%,YArr8_%S%
LClick
wait>.2
GetPixelColor>XArr8_%S%,YArr8_%S%,nColor_%S%
message>nColor_%S%
wait>2
Let>S=S+1
EndWhile
wait>1
Let>S=0
Let>base=nColor_%S%
Let>baseX=XArr8_%S%
Let>baseY=YArr8_%S%
//message>base
While>S<NumFound8>base=nColor_%S%
wait>2
MouseMove>baseX,baseY
LClick
wait>2
MouseMove>XArr8_%S%,XArr8_%S%
LClick
//ask>match,yes
endif
Let>S=S+1
EndWhile