找回密码
 加入
搜索
查看: 1689|回复: 0

au3 如何对非标准控件的识别?特别是对treelist控件的识别。

[复制链接]
发表于 2009-5-7 11:27:56 | 显示全部楼层 |阅读模式
本帖最后由 dvcz38 于 2009-5-7 11:29 编辑

au3 如何对非标准控件的识别?特别是对treelist控件的识别。
嗯,treeview 是标准控件吧。
但treelist 没怎么见过,测试的几个treeview函数对treelist也没起作用。
大家有什么想法思路吗?

我把测试treelist软件上传在附件中了,希望好心的大家能帮帮我看下哈..谢谢哈

以下是我用_GUICtrlTreeView_FindItem()函数对treelist控件的操作,但不起作用.

MY CODE: AutoIt
#include <GuiTreeView.au3>
$in1="Form1"
$htree = ControlGetHandle($in1, "", "TdxTreeList1")
$node = _GUICtrlTreeView_FindItem($htree, "Q")
If $node Then
_GUICtrlTreeView_Expand($htree, $node)
$node_child = _GUICtrlTreeView_GetFirstChild($htree, $node)
_GUICtrlTreeView_SelectItem($htree, $node_child)
Else
MsgBox(0,'Error', 'Item not found in treeview',1)
EndIf

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-23 03:25 , Processed in 0.085222 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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