按键精灵录制了5个脚本,如何设置可以每次随机运动其中一个脚本,随机循环
你可以将这5个脚本写成5个函数过程,然后用另一个函数,rnd随机来做随机调用
Randomizea=int(rnd*5)+1
MsgBox(a)
If?a?=?1?Then?
Call?fun1
ElseIf?a?=?1?Then?
Call?fun1
End?If
Function?fun1()
'函数代码1
End?Function
Function?fun2()
'函数代码2
End?Function
你可以将这5个脚本写成5个函数过程,然后用另一个函数,rnd随机来做随机调用
Randomizea=int(rnd*5)+1
MsgBox(a)
If?a?=?1?Then?
Call?fun1
ElseIf?a?=?1?Then?
Call?fun1
End?If
Function?fun1()
'函数代码1
End?Function
Function?fun2()
'函数代码2
End?Function