#include <WinAPISys.au3>
Opt("WinTitleMatchMode", 4)
Local $hWnd = WinGetHandle("Classname=Afx:00007FF7C4E30000:0") ;按需修改需检测的窗口
If Not IsHWnd($hWnd) Then Exit MsgBox(48, '', '获取窗口句柄错误')
While 1
Sleep(1000)
_WinAPI_SendMessageTimeout($hWnd, 0)
If @error Then MsgBox(48, '', '停止响应')
WEnd