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

[系统综合] 如何检测excel文档已完全打开?

[复制链接]
发表于 2015-1-16 14:04:23 | 显示全部楼层 |阅读模式
本帖最后由 lin6051 于 2015-1-17 10:52 编辑

我想监测excel文档标题 'Microsoft Excel - 资料.xls' 然后改标题成 '资料.xls'
但是有些xls文件比较大,打开要几十秒,这个时间段文档未就绪,用WinSetTitle无法改标题

用循环的话也不行

excel在刚打开完毕 和切换工作表的时候标题会被重置

while 1
if WinExists('Microsoft Excel','') then
ToolTip ('存在',333,1)
while WinExists('Microsoft Excel','')
sleep(1000)
WinSetTitle('Microsoft Excel','','xxx')
wend
exit
else
ToolTip ('不存在',333,1)
endif
wend
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-3-29 18:24 , Processed in 0.071510 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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