检查指定窗口是否存在.
WinExists ( "标题" [, "文本"] )
If WinExists("[CLASS:Notepad]") Then MsgBox(0, "", "窗口存在") EndIf