This example will focus the Notepad window using the AutoMateÖ Focus Action.
Sub Main
'This script will focus the Notepad window
'using the AutoMateÖ Focus Action
Action.Focus("Untitled - Notepad")
End Sub