The following example will insert a ôSend Keystrokesö step into the current task as the fourth step.
Sub Main
CurrentTask.InsertTaskStep (3, ôSEND: AutoMateÖ Version 4ö)
End Main
This example will copy the third step, and place the copy above itself.
Sub Main
Dim StepToCopy As Variant
StepToCopy = CurrentTask.GetTaskStep (2)
CurrentTask.InsertTaskStep (2, StepToCopy)
End Sub