why
Dim i As Integerfor i=1 to 3 step 1
Window SetContext, "Caption=PhotoBase", ""
GenericObject DblClick, "Class=AfxFrameOrView;ClassIndex=1", "Coords=209+i*100,54"
Window SetContext, "Caption=PhotoBase4 图像浏览器/编辑器", ""
GenericObject Click, "Class=Afx:;ClassIndex=2", "Coords=997,21"
next
为什么循环里的i*100没有执行 啊????? 加多个变量可以暂时解决
我刚才试了下,确实不执行的,不知道是不是格式错误。等高手来解答吧 加多个变量可以暂时解决?
我试了还是不行啊,
s=i*100
Coords=209+s,54 你试试j=209+i*100
[ Last edited by ilovejolly on 2005-7-27 at 10:48 ] 仍然不行啊 试试 "Coords=209+&cnum(i*100),54" "Coords=209+i*100,54"是字符串的形式,所以你必须转化一下 我改成这样了,你看看可以运行么?
Dim i As Integer
for i=1 to 3 step 1
dim j
j=209+i*100
Window SetContext, "Caption=PhotoBase", ""
GenericObject DblClick, "Class=AfxFrameOrView;ClassIndex=1", "Coords="+j+",54"
Window SetContext, "Caption=PhotoBase4 图像浏览器/编辑器", ""
GenericObject Click, "Class=Afx:;ClassIndex=2", "Coords=997,21"
next 试了半天试出来了,"Coords="+str(i)+",66"
是字符串连接来的,SQA好弱
[ Last edited by ilovejolly on 2005-7-29 at 14:46 ] 谢谢大家啊 我改成这样了,你看看可以运行么?
Dim i As Integer
for i=1 to 3 step 1
dim j
j=209+i*100
Window SetContext, "Caption=PhotoBase", ""
GenericObject DblClick, "Class=AfxFrameOrView;ClassIndex=1", "Coords="+j+",54"
Window SetContext, "Caption=PhotoBase4 图像浏览器/编辑器", ""
GenericObject Click, "Class=Afx:;ClassIndex=2", "Coords=997,21"
next
successful
试了半天试出来了,"Coords="+str(i)+",66"
是字符串连接来的,SQA好弱
also successful
页:
[1]