![]()
end,end1,end2,end3,bmpx,bmpy
help.sleep(500)
//查找左边 "方括号" 的X坐标
bmp= color.findpic(0,0,400,400,"rc:sss.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
help.sleep(500)
else
help.messagebox("没找到")
endif
dou=bmpx
//查找 [ 右边 X 的第一位坐标
bmp= color.findpic(dou,0,dou+11,300,"rc:000.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end1=0
endif
bmp= color.findpic(dou,0,dou+11,300,"rc:001.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end1=1
endif
bmp= color.findpic(dou,0,dou+11,300,"rc:002.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end1=2
endif
bmp= color.findpic(dou,0,dou+11,300,"rc:003.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end1=3
endif
bmp= color.findpic(dou,0,dou+11,300,"rc:004.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end1=4
endif
bmp= color.findpic(dou,0,dou+11,300,"rc:005.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end1=5
endif
bmp= color.findpic(dou,0,dou+11,300,"rc:006.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end1=6
endif
bmp= color.findpic(dou,0,dou+11,300,"rc:007.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end1=7
endif
bmp= color.findpic(dou,0,dou+11,300,"rc:008.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end1=8
endif
bmp= color.findpic(dou,0,dou+11,300,"rc:009.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end1=9
endif
//查找 [ 右边 X 的第二位坐标
bmp= color.findpic(dou+10,0,dou+17,300,"rc:000.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end2=0
endif
bmp= color.findpic(dou+10,0,dou+17,300,"rc:001.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end2=1
endif
bmp= color.findpic(dou+10,0,dou+17,300,"rc:002.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end2=2
endif
bmp= color.findpic(dou+10,0,dou+17,300,"rc:003.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end2=3
endif
bmp= color.findpic(dou+10,0,dou+17,300,"rc:004.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end2=4
endif
bmp= color.findpic(dou+10,0,dou+17,300,"rc:005.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end2=5
endif
bmp= color.findpic(dou+10,0,dou+17,300,"rc:006.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end2=6
endif
bmp= color.findpic(dou+10,0,dou+17,300,"rc:007.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end2=7
endif
bmp= color.findpic(dou+10,0,dou+17,300,"rc:008.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end2=8
endif
bmp= color.findpic(dou+10,0,dou+17,300,"rc:009.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end2=9
endif
//查找 [ 右边 X 的第三位坐标
bmp= color.findpic(dou+16,0,dou+24,300,"rc:000.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end3=0
endif
bmp= color.findpic(dou+16,0,dou+24,300,"rc:001.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end3=1
endif
bmp= color.findpic(dou+16,0,dou+24,300,"rc:002.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end3=2
endif
bmp= color.findpic(dou+16,0,dou+24,300,"rc:003.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end3=3
endif
bmp= color.findpic(dou+16,0,dou+24,300,"rc:004.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end3=4
endif
bmp= color.findpic(dou+16,0,dou+24,300,"rc:005.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end3=5
endif
bmp= color.findpic(dou+16,0,dou+24,300,"rc:006.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end3=6
endif
bmp= color.findpic(dou+16,0,dou+24,300,"rc:007.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end3=7
endif
bmp= color.findpic(dou+16,0,dou+24,300,"rc:008.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end3=8
endif
bmp= color.findpic(dou+16,0,dou+24,300,"rc:009.bmp",#000000,1.0,0,bmpx,bmpy)
if(bmp>=0)
end3=9
endif
//输出 X 的坐标
out=end1&end2&end3
help.messagebox(out)
return 0
endfunction
|