- int hwnd = window.findwindow("ppp89") // 目标窗口也就是父窗口
- if(hwnd ==0) // 判断窗口句柄是否为0
- help.messagebox("dsdasd")
- return false
- endif
- string hwndstr = system.enum(convert.inttostr(hwnd),3) // 枚举父窗口的子窗口
- string[] arr =string[20] // 定义一个大小为20的字符型数组
- str.split(hwndstr,"|",arr) //以 | 为分隔符对hwndstr字符型数据进行分割并保存到arr数组里
- int a1,a2,a3
- 数组.大小(arr,a1,a2,a3) // 获得数组的大小
- int i=0
- while(true)
- if(i>=a1)
- break
- endif
- string title = window.getwindowcaption(convert.strtoint(arr[i],10)) // 获取窗口句柄的窗口标题
- i = i+1
- help.messagebox(title)
- endwhile
- help.messagebox(hwndstr)
复制代码 自己去好好理解下吧。。。
|