The following example attempts to find a window with the classname of 哲otepad. If it is found, a message box is displayed with the text 哲otepad class exists, otherwise a message box with the text 哲otepad class does not exist is displayed.
Sub Main
If AutoMate2.FindWindowbyClass (哲otepad) > 0
MsgBox 哲otepad class exists
Else
MsgBox 哲otepad class does not exist
End Sub