|
发表于 2012-5-29 08:35:51
|
显示全部楼层
- function int jbhq()///////////////////////////////////////游戏窗口句柄获取
- int c
- string[] jbfj
- int fjb=web.gethwnd("exp0")
- string jb=dm.EnumWindow(fjb,"","MacromediaFlashPlayerActiveX",2+16)
- if(jb!="")
- string fgf=","
- bool cg=str.split(jb,fgf,jbfj)
- if(cg)
- array.size(jbfj,c)
- else
- return 0
- endif
- endif
- c=c-1
- while(c>0)
- int w,h
- dm.GetClientSize(convert.strtoint(jbfj[c],0),w,h)
- if(w>=700&&h>=500)
- return convert.strtoint(jbfj[c],0)
- endif
- c=c-1
- endwhile
- return 0
- endfunction
复制代码 源码给你了 自己分析吧
|
|