找回密码
 加入
搜索
查看: 1873|回复: 2

[AU3基础] 为什么WinGetClassList一点反应也没?

[复制链接]
发表于 2012-5-27 00:10:59 | 显示全部楼层 |阅读模式
下面这个程序用handle做参数,wingetclasslist无任何显示
#include <WinAPI.au3>
#include <SendMessage.au3>

Opt('WinSearchChildren', 1)

While 1
        Sleep(500)
        Local $pos = MouseGetPos()
        Local $tXY = DllStructCreate("long X;long Y")
        DllStructSetData($tXY, "X", $pos[0])
        DllStructSetData($tXY, "Y", $pos[1])
        Local $hwnd = _WinAPI_WindowFromPoint($tXY)
        ToolTip(WinGetClassList($hwnd))
WEnd
 楼主| 发表于 2012-5-27 00:48:53 | 显示全部楼层
看来这个函数有较大问题,用WinGetClassList("[ACTIVE]")就有显示。
但是很多class他依然get不到。比如CLASS为#32768的右键菜单,比如AHK的帮助。
autoit自己的帮助他能取到class。
 楼主| 发表于 2012-5-27 01:23:32 | 显示全部楼层
本帖最后由 magusneo 于 2012-5-27 01:24 编辑

补充,此函数用handle的话似乎只能和WinGetHandle("")搭配使用。其他方式获取的handle会异常。但依然有的class取不到。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-6-2 10:17 , Processed in 0.079046 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表