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

如何判断控件存在

[复制链接]
发表于 2009-12-25 16:09:58 | 显示全部楼层 |阅读模式
如何在一个窗口判断 "button1" 是否存在  是否 可用?????高手帮帮忙
发表于 2009-12-25 16:17:00 | 显示全部楼层
If ControlCommand("窗口标题", "窗口文本", "button1", "IsEnabled", "") Then MsgBox(0, 0, '可用')
发表于 2009-12-25 19:15:04 | 显示全部楼层
afan 发表于 2009-12-25 16:17



    金钱+30, 贡献+10
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-22 15:37 , Processed in 0.076354 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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