且不可急躁
时不时的来个 Delay 一下
否则很有可能会出问题哟
,
比如:本人最近写脚本的过程中发现
Sub write log
//-----------------
//-----------------
return write log
Delay 2000
VbsCall FindPic(0,0,PixX,PixY,"image.bmp",similar,X,Y);
If X > 0
Moveto X+5,Y+5
Leftclick 1
Delay 1500
else
MsgBox "has not found the image.bmp"
StateString = "write erro info to log file "
Gosub write log
endScript
endif
以上这段代码 记得-Delay,否则有时候会找不到你想要的图片!!