马上加入TC
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
- namespace test
- ts=com("ts.tssoft")
- function start_click()
- //这里添加你要执行的代码
- hnwd=window.findwindow("qq")
- if (hnwd==0)
- help.messagebox("没有找到游戏窗口")
- else
- window.activate(hnwd)
- endif
- help.sleep(500)
- ts.SetPath(help.getrcpath("rc:"))
- ret,intX,intY
- ret=ts.FindPic(0,0,1440,900,"dt.bmp","000000",0.8,0,intX,intY)
- if(intX>0)
- mouse.mousemove(intX,intY)
- mouse.leftclick(1)
- else
- help.messagebox("no")
- endif
- endfunction
复制代码 用天使或者window.findpic(hnwd,0,0,1440,900,"rc:\\dt.bmp",#000000",0.8,intX,intY) 都找不到图,但是用 图像.找图却可以找到,请问各位大神为什么?ps:图像.找图的英文是什么?
|