|
在用Robot录入鼠标的右击操作的时候,可以记录下来,但在回放的时候却报错,脚本代码如下:
Sub Main
Dim Result As Integer
'Initially Recorded: 2007-9-7 14:04:12
'Script Name: input wddz
Window SetContext, "Name=frmMain", ""
TreeView Right_Click, "Name=tvwDB;\;ItemText=总行->广东省分行(440010000)", ""
PopupMenuSelect "添加子节点"
Window SetContext, "Name=frmaddNode", ""
InputKeys "001005{ENTER}{CAPSLOCK}T{CAPSLOCK}est001005+{ENTER}{END}????"
PushButton Click, "Name=cmdConfirm"
Window SetContext, "Caption=添加子节点;Class=#32770", ""
PushButton Click, "Text=确定"
End Sub
TreeView Right_Click, "Name=tvwDB;\;ItemText=总行->广东省分行(440010000)", ""
这句在回放的时候不会出现右击后显示的画面,导致后一句话出错!
PopupMenuSelect "添加子节点"
有什么方法解决吗?请教各位了 |
|