如何监控一个窗口的关闭事件
本帖最后由 zym16621 于 2009-7-17 09:56 编辑在autoit中可以打开一个应用程序,请问如何能捕捉到该应用程序的关闭?
例如:在autoit中打开一个记事本。然后手动关闭该记事本,请问在autoit中能捕获这个事件吗? 能。。。。 $pid = Run("notepad.exe")
While 1
if ProcessExists($pid)=0 Then
MsgBox(0,"","已关闭")
Exitloop
endif
WEnd 雷锋精神传天下!谢谢分享!
页:
[1]