简体   繁体   English

监控python中的进程

[英]Monitoring the process in python

I am using pywinauto to open a application and closing the dialogue box.我正在使用 pywinauto 打开应用程序并关闭对话框。 I am able to do that but i want to check for the dialogue box from the time I start the application until the app closes..what is the best way to implement that?我能够做到这一点,但我想从我启动应用程序到应用程序关闭时检查对话框......实现它的最佳方法是什么?

This guide contains all necessary methods: Waiting for Long Operations .本指南包含所有必要的方法: 等待长时间操作 What you need is method dialog_spec.wait_not('exists', timeout=20) which waits till dialog is closed during 20 seconds.您需要的是方法dialog_spec.wait_not('exists', timeout=20) ,它会等到对话框在 20 秒内关闭。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM