|
6#
楼主 |
发表于 2004-12-16 10:47:36
|
只看该作者
这是我的代码,是不是我的那个函数使用的不对啊??
那个label中是caption中有我要的数值,所以我想获取它的值。不知道是不是我的函数使用方法不对?
Sub Main
Dim Result As Integer
Dim sMyProtocolNo as Variant
'Initially Recorded: 2004-12-16 10:37:32
'Script Name: f04
Window SetContext, "Caption=Program Manager", ""
ListView DblClick, "ObjectIndex=1;\;ItemText=快捷方式 ClassicsA.exe", "Coords=31,24"
Window SetContext, "Name=frmExistingLogin", ""
PushButton Click, "Name=cmdOK"
Window SetContext, "Name=frmMain", ""
PushButton Click, "Name=cmdOrder"
Window SetContext, "Name=frmOrder", ""
InputKeys "1"
EditBox Click, "Name=txtExpirationDate", "Coords=40,2"
InputKeys "1"
Result = SQAGetProperty("ClassName = Label;Name = lblTotal", "Caption",sMyProtocolNo)
msgbox sMyProtocolNo
PushButton Click, "Name=cmdOrder"
Window SetContext, "Name=frmConfirm", ""
PushButton Click, "Name=cmdOK"
Window SetContext, "Name=frmMain", ""
MenuSelect "File->Exit"
End Sub |
|