Sign in to follow this  
Followers 0
amakrkr

Aplication error handling

5 posts in this topic

Hello,

I curently have a script that monitor other application. If it crash it restarts the application ... so far so good.

But sometis application hangs with an error MSG box. Now i was wondering if there is a simple way to detect that.

I know i could do a search "if win exsist" but i want a better solution.

I hope you have an idea how to make this work.

Regards,

Share this post


Link to post
Share on other sites



ProcessExists look that up in the help file.


 

Spoiler

shoot_zpsfd329d66.png
dontbelieveeverythingyouthink_zps0e1e900

Madness is the first step to understanding...

Share this post


Link to post
Share on other sites

WinExists is the only way to handle the message box.

Share this post


Link to post
Share on other sites

Hi i was wondering if you waould share your script with us. i would be interested in learining how to do it.

thanks


Drunken Frat-Boy Monkey Garbage

Share this post


Link to post
Share on other sites

That depends on the application. If it does something like write a log file every 5 seconds, you can simply check if the application has done its job every 5 seconds by checking if the log file has changed. Otherwise, you'll probably have to write a generic messagebox error handler.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0