找回密码
 加入
搜索
查看: 2275|回复: 1

[AU3基础] 求助:帮忙看看下列代码错在哪里?[已解决]

[复制链接]
发表于 2014-7-11 17:05:37 | 显示全部楼层 |阅读模式
本帖最后由 jiaosc 于 2014-7-12 10:41 编辑

$hWnd = ControlGetHandle("系统", "", "[CLASS:SysTreeView32; INSTANCE:1]") ;控件句柄
$hWndxmmr = _GUICtrlTreeView_FindItem($hWnd, "测试");返回项目“测试”的句柄
              _GUICtrlTreeView_ClickItem($hWnd, $hWndxmmr);点击项目"测试"
        $xdts= _GUICtrlTreeView_GetChecked($hWnd, $hWndxmmr)   →这里“测试”项目已经点中变蓝,可是$xdts总是等于"False",何故?代码错了吗?
          if    $xdts="True"  then
              ................................
          Endif;
 楼主| 发表于 2014-7-12 10:39:38 | 显示全部楼层
已解决,函数用错了.

将:$xdts= _GUICtrlTreeView_GetChecked($hWnd, $hWndxmmr)

改成:$xdts = _GUICtrlTreeView_GetSelected($hWnd, $hWndxmmr)

$xdts ="True"

一切OK!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-4-26 18:31 , Processed in 0.075496 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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