StartTask Example

 

This example first checks to see if the currently active window is titled 填ntitled Notepad. If it is, it starts the task 鼎lose Notepads, and waits for that task to complete before displaying a message box that says 鼎lose Notepads Task Complete.

 

Sub Main

 If Action2.GetFocusedWindowName = 填ntitled Notepad Then

  Action2.StartTask (鼎lose Notepads, 1, 0)

  MsgBox 鼎lose Notepads Task Complete

 End If

End Sub