|
马上加入TC
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 tanxinyu 于 2013-11-6 21:56 编辑
天使插件自带测试工具绑定窗口句柄后,后台无法找到字,前台可以找到
- function mainthread(hwndid)
- var x=0,y=0
- ts=com("ts.tssoft")
- system.getscreen(x,y)
- ts.SetDict(0,help.getrcpath("rc:字库.txt"))
- ts.BindWindow(type.cint(hwndid,0),"normal","windows","windows",0)
- help.messagebox(ts.FindStrFastEx(0,0,x,y,"再玩","ffffff-f33c5b",1.0))
- return 0
-
-
- endfunction
- function start_click()
- var hwnds,hwnd,cnt
- ts=com("ts.tssoft")
- hwnds=ts.EnumWindow(0,"欢迎来到天猫双十一狂欢城","",1+4+8+16)
- if(str.strleng(hwnds)==0)
- help.messagebox("请打开天猫抢红包网页")
- return 0
- else
- str.split(hwnds,",",hwnd)
- arraysp.size(hwnd,cnt)
- for(i=0;i<cnt;i++)
- thread.beginthread("天猫双11抢红包辅助.mainthread",hwnd[i])
- help.sleep(100)
- endfor
-
-
- endif
- return 0
-
-
- endfunction
复制代码 其他功能函数未贴出,这是主要找字的功能函数
|
|