|
马上加入TC
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
function LkFindPic()
//dm =com("dm.dmsoft")
ts = com("ts.tssoft")
//dm.SetPath(help.getrcpath("rc:"))
ts.SetPath(help.getrcpath("rc:"))
int x,y,hald
hald = window.findwindow("xxx - Microsoft Internet Explorer")
//dm.BindWindow(hald,"normal","normal","normal",1)
ts.BindWindow(hald,"normal","normal","normal",1)
if(ts.IsBind()!=0)
while(1)
// x = 0,y=0
num=type.cint(ts.FindPic(0,0,1440,900,"111.bmp|222.bmp",000000,0.8,0,x,y))
if(num!=-1&&x>0&&y>0)
ts.MoveTo(x+50,y+15)
help.sleep(200)
ts.LeftClick()
help.sleep(3000)
endif
endwhile
endif
endfunction
|
|