var point = 找图('小图');
click(point.x,point.y)
function 找图(name){
while(true){
var img = captrueScreen();
var templ = images.read("/sdcard/"+ name +".png");
var p = findImage(img, templ);
if(p){
toast("找到啦:" + p);
break;
}else{
toast("没找到");
sleep(1000)
}
}
return p;
}