The following example sets the current task to trigger only when the window with the title of ôUntitled û Notepadö appears.
Sub Main
CurrentTask.Triggers = 4
CurrentTask.WindowName = ôUntitled û Notepadö
End Sub