This example will close a window with a window title beginning with the word 哲ote.
Sub Main
'This script will close the Notepad window
'using the AutoMate CloseWind Action, note that
'only a partial title was specified
Action.CloseWind("Note", "0", "")
End Sub