检查指定的窗口是否存在.
WinExists ( "窗口标题" [, "窗口文本"] )
| 窗口标题 | 目标窗口标题.参考 标题特殊定义. | 
| 窗口文本 | [可选参数] 要检查的窗口所包含的文本. | 
| 成功: | 返回 1,窗口存在. | 
| 失败: | 返回 0,窗口不存在. | 
Example()
Func Example()
    ; Run Notepad
    Run("notepad.exe")
    ; Wait 10 seconds for the Notepad window to appear.
    WinWait("[CLASS:Notepad]", "", 10)
    ; Test if the window exists and display the results.
    If WinExists("[CLASS:Notepad]") Then
        MsgBox(4096, "", "记事本窗口存在")
    Else
        MsgBox(4096, "", "记事本窗口不存在")
    EndIf
EndFunc   ;==>Example