VBRun
VBRun>Subroutine[,Parm1,Parm2,...]
Not supported in Macro Scheduler Lite.
Executes the specified VBScript subroutine in the proceeding VBScript code block. Parameters can be passed to the subroutine. Macro Scheduler allows up to 25 parameters to be passed. The number of parameters passed must equal the number expected by the subroutine, otherwise a run time error will occur.
Macro Scheduler variables may be used in any part of the command.
It is possible to set the VBScript code timeout using the VBS_TIMEOUT variable. By default VBScript code will never timeout. To set a timeout, set VBS_TIMEOUT to a value in milliseconds.
Abbreviation : VBR
See also: VBEval
Links to VBScript Documentation: http://www.mjtnet.com/resources.htm
Example
VBSTART
Function MultiplyNums (d,a)
MultiplyNums = d * a
End Function
Sub DisplayMessage (msg)
MsgBox msg
End Sub
Function GetName
GetName = InputBox("Enter Your Name : ")
End Function
VBEND
Let>a=5
VBEval>MultiplyNums(%a%,2),answer
MessageModal>answer
VBRun>DisplayMessage,Hello World
VBEval>GetName,name
MessageModal>Your Name is : %name%