找回密码
 加入
搜索
查看: 3965|回复: 6

[系统综合] 如何用ControlListView 点击桌面的 我的电脑图标?

  [复制链接]
发表于 2011-1-7 13:40:55 | 显示全部楼层 |阅读模式
WinActivate("Program Manager", "FolderView")
$a1 = ControlListView("Program Manager", "FolderView", "SysListView321", "SelectClear")


        $a1 = ControlListView("Program Manager", "FolderView", "SysListView321", "FindItem", "我的电脑")

ControlListView("Program Manager", "FolderView", "SysListView321", "Select", $a1)


然后我用send 有时候会点不进去 有没有更好的办法?
发表于 2011-1-7 17:25:19 | 显示全部楼层
WinActivate("Program Manager", "FolderView")
$a1 = ControlListView("Program Manager", "FolderView", "SysListView321", "FindItem", "我的电脑")
ControlListView("Program Manager", "FolderView", "SysListView321", "Select", $a1)
发表于 2011-1-7 19:53:34 | 显示全部楼层
学习
 楼主| 发表于 2011-1-7 23:22:51 | 显示全部楼层
回复 2# lixiaolong
WinActivate("Program Manager", "FolderView")


ControlListView("Program Manager", "FolderView", "SysListView321", "Select", $a1)


只能选择 不能双击啊
发表于 2011-1-7 23:54:40 | 显示全部楼层
本帖最后由 lixiaolong 于 2011-1-7 23:58 编辑

回复 4# lele9013

这个不行吗?
WinActivate("Program Manager", "FolderView")
$a1 = ControlListView("Program Manager", "FolderView", "SysListView321", "FindItem", "腾讯QQ")
ControlListView("Program Manager", "FolderView", "SysListView321", "Select", $a1)
Send("{Enter}")
 楼主| 发表于 2011-1-8 12:39:09 | 显示全部楼层
回复 5# lixiaolong


    x可以  但有时候会打不开  准确率不高 所以想问下有没有其他方法


在win7里面 是肯定不能打开了
发表于 2011-1-8 13:19:50 | 显示全部楼层
回复 6# lele9013

加个判断,先试这个,如果打不开加个Sleep试试.
WinActivate("Program Manager", "FolderView")
$a1 = ControlListView("Program Manager", "FolderView", "SysListView321", "Select", "计算机")
;~ Sleep(500)
If $a1 = 1 Then Send("{Enter}");Send("{Enter 2}")
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-11-11 05:09 , Processed in 0.074232 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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