按键精灵a=1 如果a=1就执行goto 1出错
发布网友
发布时间:2024-10-23 22:18
我来回答
共1个回答
热心网友
时间:2024-10-24 08:30
Rem a
If lb="lb1"
Goto lb1
ElseIf lb="lb2"
Goto lb2
ElseIf lb="lb3"
Goto lb3
EndIf
Rem lb1
VBSCall FindCenterColor(600,400,700,500,"000000",x,y)
If x>=0 and y>=0
lb="lb2"
MessageBox "1"
Goto a
Else
EndIf
Rem lb2
VBSCall FindCenterColor(600,400,700,500,"000000",x,y)
If x>=0 and y>=0
lb="lb3"
MessageBox "11"
Goto a
Else
EndIf
Rem lb3
VBSCall FindCenterColor(600,400,700,500,"000000",x,y)
If x>=0 and y>=0
lb="lb4"
MessageBox "111"
Goto a
Else
EndIf
给ib赋值时加 “” 不然会被认为是变量.而且你是没有值的变量