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