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窗口的状态,然后判断执行不同脚本.为什么我获得不了,难道我的识别方法有问题?该如何改正.
请大家指教作者: Vitamin 时间: 2005-4-26 08:32
result的返回值是多少?作者: pcl2004_27 时间: 2005-4-28 22:26
下边的代码 使用验证点的例子(其他人写的)
Sub Main
Window SetContext, "Caption=about:blank - Microsoft Internet Explorer", ""
Window WMaximize, "", ""
Result = WindowVP (CompareProperties, "Caption=about:blank - Microsoft Internet Explorer", "VP=Object Properties")
if result =1 then
msgbox("现在最大化了~~")
end if
Window CloseWin, "", ""