按键精灵怎么清空赋值的变量?
DimaDimbDimwda=1:b=120Pluginwd=Window.Foreground()PluginWindow.Move(wd,0,0)Rem开始MoveT...
Dim a
Dim b
Dim wd
a=1:b=120
Plugin wd = Window.Foreground()
Plugin Window.Move(wd, 0, 0)
Rem 开始
MoveTo 675,607
Delay 500
LeftClick 1
MoveTo 490,258
Delay 500
LeftClick 1
MoveTo 675,607
Delay 500
LeftClick 1
Rem 计时1
Delay 1000
a=a
a=a+1
Plugin Msg.ShowScrTXT(0, 0, 1024, 768, a, "0000FF")
If a=b
Goto 2
Else
MoveTo 373,312
IfColor 373,312,7bfaff,0
Delay 500
LeftClick 1
Delay 500
LeftClick 1
Goto aaa
EndIf
EndIf
以上代码,当重复的时候,a的变量会继续累积的,我想等一次循环完了之后再把变量清空重新计算,到底应该怎么写那代码呢 展开
Dim b
Dim wd
a=1:b=120
Plugin wd = Window.Foreground()
Plugin Window.Move(wd, 0, 0)
Rem 开始
MoveTo 675,607
Delay 500
LeftClick 1
MoveTo 490,258
Delay 500
LeftClick 1
MoveTo 675,607
Delay 500
LeftClick 1
Rem 计时1
Delay 1000
a=a
a=a+1
Plugin Msg.ShowScrTXT(0, 0, 1024, 768, a, "0000FF")
If a=b
Goto 2
Else
MoveTo 373,312
IfColor 373,312,7bfaff,0
Delay 500
LeftClick 1
Delay 500
LeftClick 1
Goto aaa
EndIf
EndIf
以上代码,当重复的时候,a的变量会继续累积的,我想等一次循环完了之后再把变量清空重新计算,到底应该怎么写那代码呢 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询