10-06-2010, 05:58 PM
Yes as Sreekanth said, If u want the script to be executed once and on some conditions, you can call user defined function as:
Write the block of code in text file, save as xyz.vbs, add it in settings and call it inside If statement as:
If (Condition) Then
Call xyz()
End If
OR
Write the block in reusable "action2" and run that action inside the main action
If (Condition) Then
RunAction "Action2", oneIteration
End If
Write the block of code in text file, save as xyz.vbs, add it in settings and call it inside If statement as:
If (Condition) Then
Call xyz()
End If
OR
Write the block in reusable "action2" and run that action inside the main action
If (Condition) Then
RunAction "Action2", oneIteration
End If