• 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

  • 相关阅读:
    tomcat配置数据源
    Spring 配置详解
    典型的软件开发模型
    600字让你读懂Git
    JVM的自愈能力
    Maven的pom.xml文件详解
    如何使用Log4j
    掌握jQuery插件开发,这篇文章就够了
    CSS Gradient详解
    CSS Transition
  • 原文地址:https://www.cnblogs.com/autotest/p/3299031.html
Copyright © 2020-2023  润新知