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