这个变量如何设置?
Sub Maindim i as long
for i=110 to 120
Window SetContext, "Caption=ExGate", ""
ListView Click, "ObjectIndex=1;\;ItemText=变量i", "Coords=176,5"
ListView Right_Click, "ObjectIndex=1;\;ItemText=变量i", "Coords=179,6"
PopupMenuSelect "删除所选检查"
Window SetContext, "Caption=ExGate", ""
PushButton Click, "ObjectIndex=18"
next i
End Sub
上面的ItemText值,我想把它设置为变量 i,怎么才能在回放的时候被识别。并且从110一直到120顺序执行!
谢谢朋友们能多多帮助,谢谢!~
[ 本帖最后由 pq_cao 于 2007-11-20 17:42 编辑 ] 邀请热心人~!
此情况是不是需要在设置一些插件? 多半是程序对此进行安全控制了。问问你们的开发人员吧! 试试这个?
dim i as long
dim szObject as string
for i=110 to 120
szObject ="ObjectIndex=1;\;ItemText=变量" &i
Window SetContext, "Caption=ExGate", ""
ListView Click, szObject, "Coords=176,5"
ListView Right_Click, szObject, "Coords=179,6"
PopupMenuSelect "删除所选检查"
Window SetContext, "Caption=ExGate", ""
PushButton Click, "ObjectIndex=18"
next i 有没有关于参数化的相关文档共享一下啊,谢谢啦
很简单
这样就行了,和开发得处理方式一样,拼字符串。"...生成得代码... "&变量名&" "
如果还不行,换成加号“+”
页:
[1]