TC官方合作论坛

标题: 天使插件后台找字找不到,前台能找到 [打印本页]

作者: tanxinyu    时间: 2013-11-6 21:54
标题: 天使插件后台找字找不到,前台能找到
本帖最后由 tanxinyu 于 2013-11-6 21:56 编辑

天使插件自带测试工具绑定窗口句柄后,后台无法找到字,前台可以找到
  1. function mainthread(hwndid)
  2.     var x=0,y=0
  3.     ts=com("ts.tssoft")
  4.     system.getscreen(x,y)  
  5.     ts.SetDict(0,help.getrcpath("rc:字库.txt"))
  6.     ts.BindWindow(type.cint(hwndid,0),"normal","windows","windows",0)
  7.     help.messagebox(ts.FindStrFastEx(0,0,x,y,"再玩","ffffff-f33c5b",1.0))
  8.     return 0
  9.    
  10.    
  11. endfunction
  12. function start_click()
  13.     var hwnds,hwnd,cnt
  14.     ts=com("ts.tssoft")
  15.     hwnds=ts.EnumWindow(0,"欢迎来到天猫双十一狂欢城","",1+4+8+16)
  16.     if(str.strleng(hwnds)==0)
  17.         help.messagebox("请打开天猫抢红包网页")
  18.         return 0
  19.     else
  20.         str.split(hwnds,",",hwnd)
  21.         arraysp.size(hwnd,cnt)
  22.         for(i=0;i<cnt;i++)
  23.             thread.beginthread("天猫双11抢红包辅助.mainthread",hwnd[i])
  24.             help.sleep(100)
  25.         endfor
  26.         
  27.         
  28.     endif
  29.     return 0
  30.    
  31.    
  32. endfunction
复制代码
其他功能函数未贴出,这是主要找字的功能函数



作者: tanxinyu    时间: 2013-11-6 21:55
本帖最后由 tanxinyu 于 2013-11-6 21:56 编辑



作者: tao201309    时间: 2013-11-9 19:29
绑定的模式不一样吧  
作者: tanxinyu    时间: 2013-11-10 16:41
tao201309 发表于 2013-11-9 19:29
绑定的模式不一样吧

模式都一样也不行
作者: tao201309    时间: 2013-11-10 16:52
你可以用天使的工具  一个个试试  很多模式都是要把窗口移动部分到左面外的  
ts.BindWindow(hwnd,"gdi","dx","dx",1)

作者: tao201309    时间: 2013-11-10 16:55
主要是是前面的图色模式  该下试试 前提是要把你有用的窗口部分脱出左面 不行就加我QQ  517496322 我帮你看看
作者: tanxinyu    时间: 2013-11-10 16:59
tao201309 发表于 2013-11-10 16:52
你可以用天使的工具  一个个试试  很多模式都是要把窗口移动部分到左面外的  
ts.BindWindow(hwnd,"gdi","d ...

可以了,谢谢!




欢迎光临 TC官方合作论坛 (http://bbs.52tc.co/) Powered by Discuz! X3.1