11-13-2012, 02:40 AM
i found this in other post
RECT r; r.left=100; r.top=100; r.right=300; r.bottom=300
rep
,if(!scan("test.bmp" 0 r))
,,break ;;exit loop when not found
,;found
,out "x=%i y=%i width=%i height=%i" r.left r.top r.right-r.left r.bottom-r.top
,;...
,0.5 ;;wait
do you think it will work? all i need it to do is find a number between 2-6 in a small section of the screen. let say if i just use the pic of those number and make the macro keep searching that image of number it till found.
RECT r; r.left=100; r.top=100; r.right=300; r.bottom=300
rep
,if(!scan("test.bmp" 0 r))
,,break ;;exit loop when not found
,;found
,out "x=%i y=%i width=%i height=%i" r.left r.top r.right-r.left r.bottom-r.top
,;...
,0.5 ;;wait
do you think it will work? all i need it to do is find a number between 2-6 in a small section of the screen. let say if i just use the pic of those number and make the macro keep searching that image of number it till found.
