zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    佛经中的 云何梵 什么意思?
    论节拍器的重要性,一定要习惯使用。
    Linux文件系统分析
    uboot启动内核分析
    Linux内核启动流程分析
    Linux内核配置机制与编译过程分析
    Linux内核源码目录结构分析
    Kconfig文件分析
    Ubuntu下安装make
    Ubuntu下交叉编译器gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12的安装和使用
  • 原文地址:https://www.cnblogs.com/autotest/p/3299031.html
Copyright © 2011-2022 走看看