|
Sub Main
Dim Result As Integer
Dim state as string
'Initially Recorded: 2006-1-8 14:23:10
'Script Name: dianji
Window SetContext, "Caption=Program Manager", ""
ListView DblClick, "Text=FolderView;\;ItemText=Internet Explorer", "Coords=40,12"
delayfor (3000)
Result=SQAGetProperty("Caption=about:blank - Microsoft Internet Explorer","WindowState",state)
select case state
case "Maximized"
callscript "recovery1"
case "Normal"
callscript"recovery2"
end select
End Sub
我通过SQAGetproperty 函数想获得IE窗口的状态,然后判断执行不同脚本.为什么我获得不了,难道我的识别方法有问题?该如何改正.
请大家指教 |
|