AutoIt: WinGetClassList可以把当前窗口所有的handle全部列出来

WinGetClassList 是一个非常有用的函数,可以返回当前窗口中所有的handle。
返回的是一个字符串,可以使用split函数来拆分之。

Opt("WinTitleMatchMode")
$handle = WinGetHandle(".NET Reactor v4.5.9.8 - Full Version")
ConsoleWrite(WinGetClassList($handle))

运行上面的方法,我可以得到目前窗口所有的handle如下:

WindowsForms10.Window.8.app.0.1f550a4_r15_ad1
WindowsForms10.Window.8.app.0.1f550a4_r15_ad1
WindowsForms10.Window.8.app.0.1f550a4_r15_ad1
WindowsForms10.STATIC.app.0.1f550a4_r15_ad1
WindowsForms10.STATIC.app.0.1f550a4_r15_ad1
WindowsForms10.STATIC.app.0.1f550a4_r15_ad1
WindowsForms10.STATIC.app.0.1f550a4_r15_ad1
WindowsForms10.Window.8.app.0.1f550a4_r15_ad1
WindowsForms10.STATIC.app.0.1f550a4_r15_ad1
WindowsForms10.STATIC.app.0.1f550a4_r15_ad1
WindowsForms10.STATIC.app.0.1f550a4_r15_ad1
WindowsForms10.STATIC.app.0.1f550a4_r15_ad1
WindowsForms10.STATIC.app.0.1f550a4_r15_ad1
WindowsForms10.Window.8.app.0.1f550a4_r15_ad1
WindowsForms10.STATIC.app.0.1f550a4_r15_ad1
WindowsForms10.Window.8.app.0.1f550a4_r15_ad1
WindowsForms10.STATIC.app.0.1f550a4_r15_ad1
WindowsForms10.STATIC.app.0.1f550a4_r15_ad1
WindowsForms10.Window.8.app.0.1f550a4_r15_ad1
WindowsForms10.STATIC.app.0.1f550a4_r15_ad1
WindowsForms10.SysTabControl32.app.0.1f550a4_r15_ad1
WindowsForms10.Window.8.app.0.1f550a4_r15_ad1
WindowsForms10.Window.8.app.0.1f550a4_r15_ad1
WindowsForms10.Window.8.app.0.1f550a4_r15_ad1
WindowsForms10.BUTTON.app.0.1f550a4_r15_ad1
WindowsForms10.Window.8.app.0.1f550a4_r15_ad1
WindowsForms10.BUTTON.app.0.1f550a4_r15_ad1
WindowsForms10.Window.8.app.0.1f550a4_r15_ad1
WindowsForms10.Window.8.app.0.1f550a4_r15_ad1
WindowsForms10.Window.8.app.0.1f550a4_r15_ad1
WindowsForms10.Window.8.app.0.1f550a4_r15_ad1
WindowsForms10.BUTTON.app.0.1f550a4_r15_ad1
WindowsForms10.Window.8.app.0.1f550a4_r15_ad1
WindowsForms10.BUTTON.app.0.1f550a4_r15_ad1
WindowsForms10.BUTTON.app.0.1f550a4_r15_ad1
WindowsForms10.BUTTON.app.0.1f550a4_r15_ad1
WindowsForms10.BUTTON.app.0.1f550a4_r15_ad1
WindowsForms10.Window.8.app.0.1f550a4_r15_ad1
WindowsForms10.BUTTON.app.0.1f550a4_r15_ad1
WindowsForms10.Window.8.app.0.1f550a4_r15_ad1
WindowsForms10.Window.8.app.0.1f550a4_r15_ad1
WindowsForms10.COMBOBOX.app.0.1f550a4_r15_ad1
Edit
WindowsForms10.STATIC.app.0.1f550a4_r15_ad1
WindowsForms10.STATIC.app.0.1f550a4_r15_ad1
WindowsForms10.STATIC.app.0.1f550a4_r15_ad1
WindowsForms10.STATIC.app.0.1f550a4_r15_ad1
WindowsForms10.STATIC.app.0.1f550a4_r15_ad1
WindowsForms10.STATIC.app.0.1f550a4_r15_ad1
WindowsForms10.BUTTON.app.0.1f550a4_r15_ad1
WindowsForms10.Window.8.app.0.1f550a4_r15_ad1
WindowsForms10.Window.8.app.0.1f550a4_r15_ad1
WindowsForms10.Window.8.app.0.1f550a4_r15_ad1
WindowsForms10.BUTTON.app.0.1f550a4_r15_ad1
WindowsForms10.SysListView32.app.0.1f550a4_r15_ad1
SysHeader32
WindowsForms10.BUTTON.app.0.1f550a4_r15_ad1
WindowsForms10.BUTTON.app.0.1f550a4_r15_ad1
WindowsForms10.STATIC.app.0.1f550a4_r15_ad1
WindowsForms10.Window.8.app.0.1f550a4_r15_ad1
WindowsForms10.Window.8.app.0.1f550a4_r15_ad1
WindowsForms10.Window.8.app.0.1f550a4_r15_ad1

 

 

posted @ 2013-09-03 16:37  chenpassion  阅读(3254)  评论(0编辑  收藏  举报