Dim i
i = 0
while (Window("Text:=Yahoo! - Microsoft Internet Explorer", "index:="&i).exist)
Window("Text:=Yahoo! - Microsoft Internet Explorer", "index:="&i).close
i = i +1
wend
运行结果显示没有找到
Object Details Result Time
[ Window ].Exist "Object does not exist" Done 2010-5-28 - 15:52:29